-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtokens.txt
70 lines (70 loc) · 952 Bytes
/
tokens.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
63
64
65
66
67
68
69
70
UNKNOWN # Begin with unknown
CONSTANT
IDENTIFIER # identifiers
END # end
FUN_MAKE
CLASS_MAKE
ELIF
ELSE
WHILE
FOR
BREAK
CONT
IF
RETURN
NEWLINE
LPARA # (
RPARA # )
LBRACK # [
RBRACK # ]
LBRACE # {
RBRACE # }
COMMA # -- set1 start
DOT # .
SEMICOLON # ;
COLON # set1 finish
RSHIFT # >> assignment and binary operators start from here
LSHIFT # <<
STARSTAR # **
SLASHSLASH # //
PLUS # +
MINUS # -
STAR # *
SLASH # /
CARET # ^
PERCENT # % assignment finish
LOEQ # <=
GREQ # >=
EQEQ # ==
NOTEQ # !=
LOWER # <
GREATER # >
PIPE # |
AMPERSAND # & binary finish
EXCLAMATION # !
TILDE # ~
UPLUS # +
UMINUS # -
ASSIGN # = assignment ops start from here
RSHIFT_ASSIGN # >>=
LSHIFT_ASSIGN # <<=
STARSTAR_ASSIGN # **=
SLASHSLASH_ASSIGN # //=
PLUS_ASSIGN # +=
MINUS_ASSIGN # -=
STAR_ASSIGN # *=
SLASH_ASSIGN # /=
CARET_ASSIGN # ^=
PERCENT_ASSIGN # %=
ASSIGN_SUBSCRIPT
LEN
JUMP
FOR_BEGIN
FUN_CALL
BUILD_TUPLE
BUILD_MATRIX
POP_TOP
ROW
LOAD_SUBSCRIPT
CLASS_CALL
CLASS_SELF