forked from xjuric29/ifj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tokenlist.txt
62 lines (61 loc) · 1.85 KB
/
tokenlist.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
KW_as, /// Keyword "As"
KW_asc, /// Keyword "Asc"
KW_declare, /// Keyword "Declare"
KW_dim, /// Keyword "Dim"
KW_do, /// Keyword "Do"
KW_double, /// Keyword "Double"
KW_else, /// Keyword "Else"
KW_end, /// Keyword "End"
KW_chr, /// Keyword "Chr"
KW_function, /// Keyword "Function"
KW_if, /// Keyword "If"
KW_input, /// Keyword "Input"
KW_integer, /// Keyword "Integer"
KW_length, /// Keyword "Length"
KW_loop, /// Keyword "Loop"
KW_print, /// Keyword "Print"
KW_return, /// Keyword "Return"
KW_scope, /// Keyword "Scope"
KW_string, /// Keyword "String"
KW_subStr, /// Keyword "SubStr"
KW_then, /// Keyword "Then"
KW_while, /// Keyword "While"
KW_and, /// Reserved keyword "And"
KW_boolean, /// Reserved keyword "Boolean"
KW_continue, /// Reserved keyword "Continue"
KW_elseif, /// Reserved keyword "Elseif"
KW_exit, /// Reserved keyword "Exit"
KW_false, /// Reserved keyword "False"
KW_for, /// Reserved keyword "For"
KW_next, /// Reserved keyword "Next"
KW_not, /// Reserved keyword "Not"
KW_or, /// Reserved keyword "Or"
KW_shared, /// Reserved keyword "Shared"
KW_static, /// Reserved keyword "Static"
KW_true, /// Reserved keyword "True"
TOK_identifier,
TOK_integer,
TOK_decimal,
TOK_string,
TOK_lParenth, /// Left parenthesis = "("
TOK_rParenth, /// Right parenthesis ")"
TOK_startBlock,
TOK_endBlock,
TOK_plus, /// Operator "+"
TOK_minus, /// Operator "-"
TOK_mul, /// Operator "*"
TOK_div, /// Operator "/"
TOK_divInt, /// Operator "\"
TOK_equal, /// Operator "="
TOK_notEqual, /// Operator "<>"
TOK_less, /// Operator "<"
TOK_lessEqual, /// Operator "<="
TOK_greater, /// Operator ">"
TOK_greaterEqual, /// Operator ">="
TOK_comma, /// Operator ","
TOK_semicolon, /// Operator ";"
TOK_endOfLine, /// "\n"
TOK_endOfFile
Pro rychlej prevod enum hodnoty na typ tokenu
radek = enum+1
Enum hodnota = radek-1