| ident | ::= | letter { letter | 0...9| _| '} |
| letter | ::= | A ... Z | a ... z |
| integer-literal | ::= | [ -] { 0...9 }+ |
| | | [ -] ( 0x| 0X) { 0...9| A...F| a...f }+ | |
| | | [ -] ( 0o| 0O) { 0...7 }+ | |
| | | [ -] ( 0b| 0B) { 0...1 }+ |
| Prefix | Radix |
| 0x, 0X | hexadecimal (radix 16) |
| 0o, 0O | octal (radix 8) |
| 0b, 0B | binary (radix 2) |
| string-literal | ::= | " { string-character } " |
| string-character | ::= | regular-char |
| | | \ ( \ | " | n | t | b | r) | |
| | | \ ( 0...9) ( 0...9) ( 0...9) |
| Sequence | Character denoted |
| \\ | backslash (\) |
| \" | double quote (") |
| \n | newline (LF) |
| \r | return (CR) |
| \t | horizontal tabulation (TAB) |
| \b | backspace (BS) |
| \ddd | the character with ASCII code ddd in decimal |
| infix-symbol | ::= | < { operator-char } | > { operator-char } | < > | no-inf-no-sup { operator-char } |
| operator-char | ::= | < | > | no-inf-no-sup |
| no-inf-no-sup | ::= | ! | # | $ | % | & | * | + | - | . | / | = | ? | @ | ^ | | | ~ |
and do else end external
false if in init let
loc open primitive reply spawn
then to true type val
where with
The following character sequences are also keywords:
-> . |