token |
= |
Kwd |
of string
|
| |
Ident |
of string
|
| |
Int |
of int
|
| |
Float |
of float
|
| |
String |
of string
|
| |
Char |
of char
The type of tokens. The lexical classes are: Int and Float
for integer and floating-point numbers; String for
string literals, enclosed in double quotes; Char for
character literals, enclosed in single quotes; Ident for
identifiers (either sequences of letters, digits, underscores
and quotes, or sequences of ``operator characters'' such as
+ , * , etc); and Kwd for keywords (either identifiers or
single ``special characters'' such as ( , } , etc).
|
|