Compare commits
No commits in common. "895fe86c0983f4496cf6d8f9cddf5e964f0df177" and "4bc44f6d439b26120795e1e8c43bdc686f02a869" have entirely different histories.
895fe86c09
...
4bc44f6d43
13
parser.y
13
parser.y
@ -107,16 +107,11 @@ stmts
|
|||||||
| stmt { $$ = $1; }
|
| stmt { $$ = $1; }
|
||||||
;
|
;
|
||||||
|
|
||||||
newlines
|
|
||||||
: newlines NEWLINE
|
|
||||||
|
|
|
||||||
;
|
|
||||||
|
|
||||||
stmt
|
stmt
|
||||||
: expr NEWLINE newlines { $$ = concatenate($1, ";"); }
|
: expr NEWLINE { $$ = concatenate($1, ";"); }
|
||||||
| if newlines { $$ = $1; }
|
| if { $$ = $1; }
|
||||||
| while newlines { $$ = $1; }
|
| while { $$ = $1; }
|
||||||
| BREAK newlines { $$ = new std::string("break;"); }
|
| BREAK NEWLINE { $$ = new std::string("break;"); }
|
||||||
;
|
;
|
||||||
|
|
||||||
expr
|
expr
|
||||||
|
Loading…
Reference in New Issue
Block a user