forked from amrsaeedhosny/mini-java-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
regex_table.txt
82 lines (82 loc) · 1.57 KB
/
regex_table.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
73
74
75
76
77
78
79
80
81
82
STRING_LITERAL ".*?"
S_COMMENTS \/\/.*
M_COMMENTS \/\*(.|(\r\n|\r|\n))*?\*\/
EOL (\r\n|\r|\n)
PLUS \+
LEFT_CURLY_B \{
RIGHT_CURLY_B \}
LEFT_SQUARE_B \[
RIGHT_SQUARE_B \]
LEFT_ROUND_B \(
RIGHT_ROUND_B \)
COMMA ,
SEMICOLON ;
NOT !
ASSIGNMENT =
EQUAL ==
NOT_EQUAL !=
AND &&
OR \|\|
MINUS -
MULTIPLY \*
DIV \/
MOD %
LESSTHAN <
GREATERTHAN >
LESS_EQ <=
GREATER_EQ >=
IF \bif\b
INT \bint\b
ELSE \belse\b
MAIN \bmain\b
THIS \bthis\b
TRUE \btrue\b
VOID \bvoid\b
CLASS \bclass\b
FALSE \bfalse\b
WHILE \bwhile\b
LENGTH \blength\b
PUBLIC \bpublic\b
PRIVATE \bprivate\b
PROTECTED \bprotected\b
RETURN \breturn\b
STATIC \bstatic\b
NEW \bnew\b
STRING \bString\b
FLOAT \bfloat\b
CHARACTER \bchar\b
BOOLEAN \bboolean\b
EXTENDS \bextends\b
NULL \bnull\b
ABSTRACT \babstract\b
ASSERT \bassert\b
BREAK \bbreak\b
CONTINUE \bcontinue\b
BYTE \bbyte\b
CASE \bcase\b
CATCH \bcatch\b
CONST \bconst\b
DEFAULT \bdefault\b
DO \bdo\b
DOUBLE \bdouble\b
ENUM \benum\b
FINAL \bfinal\b
FINALLY \bfinally\b
FOR \bfor\b
GOTO \bgoto\b
IMPLEMENTS \bimplements\b
IMPORT \bimport\b
PACKAGE \bpackage\b
INSTANCEOF \binstanceof\b
INTERFACE \binterface\b
SHORT \bshort\b
SUPER \bsuper\b
SWITCH \bswitch\b
THROW \bthrow\b
TRY \btry\b
SYSTEM.OUT.PRINTLN \bSystem\.out\.println\b
DOT \.
INTEGRAL_LITERAL \b\d+\b
FLOAT_LITERAL \b\d+\.\d+\b
A_CHAR ('.'|'\\(b|t|n|f|r|"|'|\\)')
ID \b[a-zA-Z_]\w*\b