Contents | Prev | Next | Index
Oberon-2 represents its terminal symbols in terms of characters using the ASCII set. Symbols are identifiers, numbers, strings, operators, and delimiters. Blanks and line breaks must not occur within symbols (except for blanks in strings). They are are ignored unless they are essential to separate two consecutive symbols. Upper-case and lower-case letters are considered distinct because Oberon-2 identifiers and keywords are case-sensitive.
Here is how the terminal symbols are defined:
1991 | INTEGER | 1991 |
0DH | SHORTINT | 13 |
12.3 | REAL | 12.3 |
4.567E8 | REAL | 456700000 |
0.57712566D-6 | LONGREAL | 0.0000005771256 |
+ | := | ARRAY | IMPORT | RETURN |
- | ^ | BEGIN | IN | THEN |
* | = | BY | IS | TO |
/ | # | CASE | LOOP | TYPE |
~ | < | CONST | MOD | UNTIL |
& | > | DIV | MODULE | VAR |
. | <= | DO | WHILE | |
, | >= | ELSE | OF | WITH |
; | .. | ELSIF | OR | |
| | : | END | POINTER | |
( | ) | EXIT | PROCEDURE | |
[ | ] | FOR | RECORD | |
{ | } | IF | REPEAT |
Note: Unlike other Oberon-2 implementations, this compiler treats symbol
NIL as a standard
identifier and not as a reserved word.
Contents | Prev | Next | Index
Canterbury Oberon-2 for JVM (Last documentation update
Jun 2, 2000)
Copyright © 1998 Mill Hill &
Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to
mhc@webcom.com