Tokens in Language Simple
In this
table, "alpha" refers to any alphabetic character, "num" refers to any
numeric character, "any" refers to any character, [a|b] means a OR b, "*" means 0 or more times, and "+" means one or more times.
| Token
| Description
| Token
| Description
|
| alpha [alpha | num]*
| id/keyword
| )
| right paren
|
| num+
| integer
| +
| plus
|
| num+.num+
| real
| -
| minus
|
| :
| colon
| *
| times
|
| :=
| assign
| /
| divides
|
| <
| less
| =
| equal
|
| <=
| less/equal
| .
| dot
|
| <>
| not eq
| ;
| semicolon
|
| >
| greater
| 'any*'
| string
|
| >=
| greater/equal
| [
| left bracket
|
| (
| left paren
| ]
| right bracket
|