-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKEYWORDS
52 lines (48 loc) · 1.13 KB
/
KEYWORDS
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
/*
* 'assert' language keywords
* This file is used by assert lexer.
*
* They are separated into 2 parts:
*
* 'linkable' -- can be a part of the identifier
* 'unlinkable' -- can't be a part of the identifier
*/
LINKABLE(
KEYWORD(ELSE, 'e', "else")
KEYWORD(IF, 'i', "if")
KEYWORD(WHILE, 'w', "while")
KEYWORD(RETURN, 'r', "return")
KEYWORD(CONST, 'c', "inv")
KEYWORD(DEFINE, 'f', "dump")
KEYWORD(ASSERT, 'a', "assert")
KEYWORD(IN, 0x10003, "in")
KEYWORD(OUT, 0x10005, "out")
)
UNLINKABLE (
KEYWORD(NULL, 0, "null")
KEYWORD(STOP, '$', "$")
KEYWORD(ELLIPSIS, '3', "...")
KEYWORD(EQUAL, 'q', "==")
KEYWORD(LEQUAL, 'l', "<=")
KEYWORD(GEQUAL, 'g', ">=")
KEYWORD(NEQUAL, 'n', "!=")
KEYWORD(NOT, '!', "!")
KEYWORD(ASSIGN, '=', "=")
KEYWORD(GREAT, '>', ">")
KEYWORD(LOW, '<', "<")
KEYWORD(AND, '&', "&&")
KEYWORD(OR, '|', "||")
KEYWORD(ADD, '+', "+")
KEYWORD(SUB, '-', "-")
KEYWORD(DIV, '/', "/")
KEYWORD(MUL, '*', "*")
KEYWORD(POW, '^', "^")
KEYWORD(BEGIN, '{', "{")
KEYWORD(END, '}', "}")
KEYWORD(QOPEN, '[', "[")
KEYWORD(QCLOSE, ']', "]")
KEYWORD(SEMICOL, ';', ";")
KEYWORD(COMMA, ',', ",")
KEYWORD(OPEN, '(', "(")
KEYWORD(CLOSE, ')', ")")
)