-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
650 additions
and
900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,66 @@ | ||
Program (1) | ||
ExtDefList (1) | ||
ExtDef (1) | ||
Specifier (1) | ||
TYPE: int | ||
FunDec (1) | ||
ID: test_1_r01 | ||
LP | ||
VarList (1) | ||
ParamDec (1) | ||
Specifier (1) | ||
TYPE: int | ||
VarDec (1) | ||
ID: a | ||
COMMA | ||
VarList (1) | ||
ParamDec (1) | ||
Specifier (1) | ||
TYPE: int | ||
VarDec (1) | ||
ID: b | ||
RP | ||
CompSt (2) | ||
LC | ||
StmtList (3) | ||
Stmt (3) | ||
Exp (3) | ||
Exp (3) | ||
ID: c | ||
ASSIGN | ||
Exp (3) | ||
CHAR: 'c' | ||
SEMI | ||
Stmt (4) | ||
IF | ||
LP | ||
Exp (4) | ||
Exp (4) | ||
ID: a | ||
GT | ||
Exp (4) | ||
ID: b | ||
RP | ||
Stmt (5) | ||
CompSt (5) | ||
LC | ||
StmtList (6) | ||
Stmt (6) | ||
RETURN | ||
Exp (6) | ||
ID: a | ||
SEMI | ||
RC | ||
ELSE | ||
Stmt (9) | ||
CompSt (9) | ||
LC | ||
StmtList (10) | ||
Stmt (10) | ||
RETURN | ||
Exp (10) | ||
ID: b | ||
SEMI | ||
RC | ||
RC | ||
Program (1) | ||
ExtDefList (1) | ||
ExtDef (1) | ||
Specifier (1) | ||
TYPE: int | ||
FunDec (1) | ||
ID: test_1_r01 | ||
LP | ||
VarList (1) | ||
ParamDec (1) | ||
Specifier (1) | ||
TYPE: int | ||
VarDec (1) | ||
ID: a | ||
COMMA | ||
VarList (1) | ||
ParamDec (1) | ||
Specifier (1) | ||
TYPE: int | ||
VarDec (1) | ||
ID: b | ||
RP | ||
CompSt (2) | ||
LC | ||
StmtList (3) | ||
Stmt (3) | ||
Exp (3) | ||
Exp (3) | ||
ID: c | ||
ASSIGN | ||
Exp (3) | ||
CHAR: 'c' | ||
SEMI | ||
StmtList (4) | ||
Stmt (4) | ||
IF | ||
LP | ||
Exp (4) | ||
Exp (4) | ||
ID: a | ||
GT | ||
Exp (4) | ||
ID: b | ||
RP | ||
Stmt (5) | ||
CompSt (5) | ||
LC | ||
StmtList (6) | ||
Stmt (6) | ||
RETURN | ||
Exp (6) | ||
ID: a | ||
SEMI | ||
RC | ||
ELSE | ||
Stmt (9) | ||
CompSt (9) | ||
LC | ||
StmtList (10) | ||
Stmt (10) | ||
RETURN | ||
Exp (10) | ||
ID: b | ||
SEMI | ||
RC | ||
RC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
Error type B at Line 5: Missing semicolon int | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
Error type A at Line 4: unknown lexeme 0x77G; | ||
Error type A at Line 4: unknown lexeme 0x77G; | ||
int _wrong_h | ||
Error type A at Line 5: unknown lexeme 0xCS; | ||
Error type A at Line 5: unknown lexeme 0xCS; | ||
int _right_h | ||
Error type A at Line 6: unknown lexeme 0xdeadbeef; | ||
Error type A at Line 6: unknown lexeme 0xdeadbeef; | ||
|
||
Error type B at Line 6: Missing semicolon char |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
Error type A at Line 5: unknown lexeme 0xFFF; | ||
Error type A at Line 5: unknown lexeme 0xFFF; | ||
|
||
Error type B at Line 5: Missing semicolon char |
Oops, something went wrong.