Commit | Line | Data |
---|---|---|
1 | module Token : sig | |
2 | type t = | |
3 | | AND | |
4 | | ARRAY | |
5 | | ASSIGN | |
6 | | BREAK | |
7 | | COLON | |
8 | | COMMA | |
9 | | DIVIDE | |
10 | | DO | |
11 | | DOT | |
12 | | ELSE | |
13 | | END | |
14 | | EOF | |
15 | | EQ | |
16 | | FOR | |
17 | | FUNCTION | |
18 | | GE | |
19 | | GT | |
20 | | ID of string | |
21 | | IF | |
22 | | IN | |
23 | | INT of int | |
24 | | LBRACE | |
25 | | LBRACK | |
26 | | LE | |
27 | | LET | |
28 | | LPAREN | |
29 | | LT | |
30 | | MINUS | |
31 | | NEQ | |
32 | | NIL | |
33 | | OF | |
34 | | OR | |
35 | | PLUS | |
36 | | RBRACE | |
37 | | RBRACK | |
38 | | RPAREN | |
39 | | SEMICOLON | |
40 | | STRING of string | |
41 | | THEN | |
42 | | TIMES | |
43 | | TO | |
44 | | TYPE | |
45 | | VAR | |
46 | | WHILE | |
47 | ||
48 | val to_string : t -> string | |
49 | end |