forked from PLSE-Lab/go2rascal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtokenConversions
More file actions
58 lines (54 loc) · 1.23 KB
/
tokenConversions
File metadata and controls
58 lines (54 loc) · 1.23 KB
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
branchType
token.Token
token.BREAK "breakBranch()"
token.CONTINUE "continueBranch()"
token.GOTO "gotoBranch()"
token.FALLTHROUGH "fallthroughBranch()"
declType
token.Token
token.IMPORT "importDecl()"
token.CONST "constDecl()"
token.TYPE "typeDecl()"
token.VAR "varDecl()"
assignmentOp
token.Token
token.ADD_ASSIGN "addAssign()"
token.SUB_ASSIGN "subAssign()"
token.MUL_ASSIGN "mulAssign()"
token.QUO_ASSIGN "quoAssign()"
token.REM_ASSIGN "remAssign()"
token.AND_ASSIGN "andAssign()"
token.OR_ASSIGN "orAssign()"
token.XOR_ASSIGN "xorAssign()"
token.SHL_ASSIGN "shiftLeftAssign()"
token.SHR_ASSIGN "shiftRightAssign()"
token.AND_NOT_ASSIGN "andNotAssign()"
token.DEFINE "defineAssign()"
token.ASSIGN "assign()"
token.ILLEGAL "noKey()"
op
token.Token
token.ADD "add()"
token.SUB "sub()"
token.MUL "mul()"
token.QUO "quo()"
token.REM "rem()"
token.AND "and()"
token.OR "or()"
token.XOR "xor()"
token.SHL "shiftLeft()"
token.SHR "shiftRight()"
token.AND_NOT "andNot()"
token.LAND "logicalAnd()"
token.LOR "logicalOr()"
token.ARROW "arrow()"
token.INC "inc()"
token.DEC "dec()"
token.EQL "equal()"
token.LSS "lessThan()"
token.GTR "greaterThan()"
token.NOT "not()"
token.NEQ "notEqual()"
token.LEQ "lessThanEq()"
token.GEQ "greaterThanEq()"
token.TILDE "tilde()"