-
Notifications
You must be signed in to change notification settings - Fork 1
/
keyword.txt
72 lines (71 loc) · 1.66 KB
/
keyword.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
71
72
EOF,
NEWLINE,
NUMBER,
IDENT,
STRING,
// Keywords.
AND,
AS,
ASSERT,
BREAK,
CLASS,
CONTINUE,
DEF,
DEL,
DO, // new keyword
ELIF,
ELSE,
EXCEPT,
FINALLY,
FN,
FOR,
FROM,
GLOBAL, // maybe instead of global we can use PUB
IF,
IMPORT, // maybe instead of import we can use USE
IN,
IS,
LAMBDA,
LET,
LOOP,
MUT,
//NONLOCAL, // maybe instead of nonlocal we can use PRIV
NOT,
OR,
OPEN,
PASS,
PRINT,
PUB,
RAISE,
RETURN,
STRUCT,
TRY,
WHILE,
WITH,
YIELD,
// Operators.
EQ, //
PLUS, // + // addition
MINUS, // - // soustraction
ARROW, // -> // arrow assignement ??
ASTERISK, // * // multiplication
SLASH, // / // division
MOD,
POINT, // . // point
COLON, // : // 2 point
DCOLON, // :: // double colon
SEMICOLON, // ; // point virgule
COMMA, // , // virgule
LPAREN, // ( // left parenthesis
RPAREN, // )
LSQUAREBRACET, // [
RSQUAREBRACET, // ]
LCURBRACET, // {
RCURBRACET, // }
EQEQ, // == // equivalence
NOTEQ, // != // pas egal
LT, // < // inferieur
LTEQ, // <= // inferieur ou égal
SUIVANT, // => // suivant
GT, // > // plus grand
GTEQ,