delete print statement

This commit is contained in:
2020-03-09 14:19:43 +01:00
parent e297a7d2e8
commit ac6cb22e45
8 changed files with 1 additions and 63 deletions

View File

@@ -28,8 +28,7 @@ braced_block
// Only the first child of a rule alternative will be visited!
// i.e. SCOL won't be visited, but thats unneccesary anyway
statement
: print
| if_statement
: if_statement
| variable_declaration SCOL
| variable_assignment SCOL
| return_statement
@@ -38,10 +37,6 @@ statement
| forLoop
;
print
: PRINT expression SCOL
;
if_statement
: IF OPAR cond = expression CPAR then = braced_block (ELSE (alt = braced_block | elif = if_statement) )?
;
@@ -123,7 +118,6 @@ forLoop
step = variable_assignment CPAR braced_block
;
PRINT: 'print';
IF: 'if';
ELSE: 'else';
FUNC: 'function';