Compare commits

..

No commits in common. "895fe86c0983f4496cf6d8f9cddf5e964f0df177" and "4bc44f6d439b26120795e1e8c43bdc686f02a869" have entirely different histories.

View File

@ -107,16 +107,11 @@ stmts
| stmt { $$ = $1; }
;
newlines
: newlines NEWLINE
|
;
stmt
: expr NEWLINE newlines { $$ = concatenate($1, ";"); }
| if newlines { $$ = $1; }
| while newlines { $$ = $1; }
| BREAK newlines { $$ = new std::string("break;"); }
: expr NEWLINE { $$ = concatenate($1, ";"); }
| if { $$ = $1; }
| while { $$ = $1; }
| BREAK NEWLINE { $$ = new std::string("break;"); }
;
expr