Skip to content

Commit 2b1d26b

Browse files
committed
Update project
1 parent bf36001 commit 2b1d26b

File tree

760 files changed

+38218
-7302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

760 files changed

+38218
-7302
lines changed

.idea/.gitignore

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/PPL_223.iml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/antlr_4_9_2_complete.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/antlr_4_9_2_complete1.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/jasmin.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vscode/launch.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "2.0.0",
3+
"configurations": [
4+
{
5+
"name": "Debug ANTLR4 grammar",
6+
"type": "antlr-debug",
7+
"request": "launch",
8+
"input": "input.txt",
9+
"grammar": "./assignment1/src/main/bkool/parser/BKOOL.g4",
10+
"actionFile": "",
11+
// "startRule": "start",
12+
"printParseTree": true,
13+
"visualParseTree": true
14+
}
15+
]
16+
}

assignment1/src/main/bkool/parser/.antlr/BKOOL.interp

+126-111
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,112 @@
1-
LINE_COMMAT=1
2-
BLOCK_COMMAT=2
3-
BOOLEAN=3
4-
BREAK=4
5-
CLASS=5
6-
CONTINUE=6
7-
DO=7
8-
ELSE=8
9-
EXTENDS=9
10-
FLOAT=10
11-
IF=11
12-
INT=12
13-
NEW=13
14-
STRING=14
15-
THEN=15
16-
FOR=16
17-
RETURN=17
18-
VOID=18
19-
NIL=19
20-
THIS=20
21-
FINAL=21
22-
STATIC=22
23-
TO=23
24-
DOWNTO=24
25-
ADD=25
26-
SUB=26
27-
MUL=27
28-
DIV=28
29-
INT_DIV=29
30-
MOD=30
31-
NOT_EQUAL=31
32-
EQUAL=32
33-
LT=33
34-
GT=34
35-
LE=35
36-
GE=36
37-
OR=37
38-
AND=38
39-
NOT=39
40-
CONCATENATION=40
41-
NEW_OP=41
42-
ASSINGMENT=42
43-
ASSIGN=43
44-
LSB=44
45-
RSB=45
46-
LP=46
47-
RP=47
48-
LB=48
49-
RB=49
50-
SEMI=50
51-
CL=51
52-
DOT=52
53-
COMMA=53
54-
BOOLLIT=54
55-
STRINGLIT=55
56-
FLOATLIT=56
57-
INTLIT=57
58-
ID=58
59-
WS=59
60-
NEWLINE=60
61-
UNCLOSE_STRING=61
62-
ILLEGAL_ESCAPE=62
63-
ERROR_CHAR=63
64-
'boolean'=3
65-
'break'=4
66-
'class'=5
67-
'continue'=6
68-
'do'=7
69-
'else'=8
70-
'extends'=9
71-
'float'=10
72-
'if'=11
73-
'int'=12
74-
'new'=13
75-
'string'=14
76-
'then'=15
77-
'for'=16
78-
'return'=17
79-
'void'=18
80-
'nil'=19
81-
'this'=20
82-
'final'=21
83-
'static'=22
84-
'to'=23
85-
'downto'=24
86-
'+'=25
87-
'-'=26
88-
'*'=27
89-
'/'=28
90-
'\\'=29
91-
'%'=30
92-
'!='=31
93-
'=='=32
94-
'<'=33
95-
'>'=34
96-
'<='=35
97-
'>='=36
98-
'||'=37
99-
'&&'=38
100-
'!'=39
101-
'^'=40
102-
':='=42
103-
'='=43
104-
'['=44
105-
']'=45
106-
'{'=46
107-
'}'=47
108-
'('=48
109-
')'=49
110-
';'=50
111-
':'=51
112-
'.'=52
113-
','=53
1+
BOOL=1
2+
INT=2
3+
FLOAT=3
4+
STRING=4
5+
VOID=5
6+
IF=6
7+
ELSE=7
8+
THEN=8
9+
FOR=9
10+
TO=10
11+
DOWNTO=11
12+
DO=12
13+
BREAK=13
14+
CONTINUE=14
15+
CLASS=15
16+
EXTENDS=16
17+
FINAL=17
18+
STATIC=18
19+
THIS=19
20+
RETURN=20
21+
NEW=21
22+
NIL=22
23+
ADD_OP=23
24+
SUB_OP=24
25+
MUL_OP=25
26+
FLOAT_DIV_OP=26
27+
INT_DIV_OP=27
28+
MOD_OP=28
29+
NEQ_OP=29
30+
EQ_OP=30
31+
LT_OP=31
32+
GT_OP=32
33+
LEQ_OP=33
34+
GEQ_OP=34
35+
OR_OP=35
36+
AND_OP=36
37+
NOT_OP=37
38+
CONCAT_OP=38
39+
ASSIGN_OP=39
40+
INIT_OP=40
41+
LP=41
42+
RP=42
43+
LSB=43
44+
RSB=44
45+
LCB=45
46+
RCB=46
47+
SEMI=47
48+
COLON=48
49+
DOT=49
50+
COMMA=50
51+
INTEGER_LITERAL=51
52+
FLOAT_LITERAL=52
53+
BOOLEAN_LITERAL=53
54+
STRING_LITERAL=54
55+
UNCLOSE_STRING=55
56+
ILLEGAL_ESCAPE=56
57+
ID=57
58+
WS=58
59+
COMMENT=59
60+
BLOCK_COMMENT=60
61+
LINE_COMMENT=61
62+
ERROR_CHAR=62
63+
'boolean'=1
64+
'int'=2
65+
'float'=3
66+
'string'=4
67+
'void'=5
68+
'if'=6
69+
'else'=7
70+
'then'=8
71+
'for'=9
72+
'to'=10
73+
'downto'=11
74+
'do'=12
75+
'break'=13
76+
'continue'=14
77+
'class'=15
78+
'extends'=16
79+
'final'=17
80+
'static'=18
81+
'this'=19
82+
'return'=20
83+
'new'=21
84+
'nil'=22
85+
'+'=23
86+
'-'=24
87+
'*'=25
88+
'/'=26
89+
'\\'=27
90+
'%'=28
91+
'!='=29
92+
'=='=30
93+
'<'=31
94+
'>'=32
95+
'<='=33
96+
'>='=34
97+
'||'=35
98+
'&&'=36
99+
'!'=37
100+
'^'=38
101+
':='=39
102+
'='=40
103+
'('=41
104+
')'=42
105+
'['=43
106+
']'=44
107+
'{'=45
108+
'}'=46
109+
';'=47
110+
':'=48
111+
'.'=49
112+
','=50

0 commit comments

Comments
 (0)