-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAST
32 lines (32 loc) · 750 Bytes
/
AST
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
AST(NULL, 0, "null")
AST(IF, 'i', "if")
AST(WHILE, 'w', "while")
AST(RETURN, 'r', "return")
AST(GREAT, '>', ">")
AST(LOW, '<', "<")
AST(ASSIGN, '=', "=")
AST(EQUAL, 'q', "==")
AST(LEQUAL, 'l', "<=")
AST(GEQUAL, 'g', ">=")
AST(NEQUAL, 'n', "!=")
AST(NOT, '!', "!")
AST(AND, '&', "&&")
AST(OR, '|', "||")
AST(ADD, '+', "+")
AST(SUB, '-', "-")
AST(DIV, '/', "/")
AST(MUL, '*', "*")
AST(POW, '^', "^")
AST(DEFINE, 'd', "define")
AST(STMT, 's', "statement")
AST(PARAM, 'p', "parameter")
AST(CALL, 'c', "call")
AST(DECISN, '?', "decision")
AST(FUNC, 'f', "function")
AST(CONST, 'C', "const")
AST(COS, 0xDED25, "cos")
AST(SIN, 0xDED26, "sin")
AST(IN, 0xDED27, "scan")
AST(OUT, 0xDED29, "print")
AST(SHOW, 0xDED31, "show")
AST(INT, 0xDED33, "int")