Lexical conventions: Syntax definitions use
Extended Backus-Naur Form (EBNF). This means that vertical bars
separate two or more alternatives, curly braces {} indicate
zero or more copies of what they enclose (``Kleene-closure''), and
square brackets
specify zero or one instances of their enclosed
contents. Round parentheses () are used for grouping. Non-terminal
symbols appear in this typeface; terminal symbols are
underlined.
The following set of rules defines the syntax for CM's preprocessor expressions ( ppexp):
| aatom | number |
|
| aprod | { aatom (* |
|
| asum | { aprod (+ |
|
| ns | structure |
|
| mlsym | ns mlid | |
| query | defined ( cmid ) |
|
| acmp | asum (< |
|
| batom | query |
|
| bcmp | batom [(= |
|
| bconj | { bcmp (andalso |
|
| bdisj | { bconj (orelse |
|
| ppexp | bdisj |