Skip to content

Commit

Permalink
Changing name
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosavian committed May 5, 2024
1 parent 4f7f6f9 commit 80b39e9
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions simplex/SimplexParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ parser grammar SimplexParser;
options { tokenVocab=SimplexLexer; }

program
: debuger
| statement*
: statement*
;

inlineStatement
: returnStatement
| breakStatement
| continueStatement
| exprStatement
| varDeclaration
| varAssignment
| variableDeclaration
| variableAssignment
;

returnStatement
Expand All @@ -38,19 +37,15 @@ statement
| scope
;

debuger
: DEBUG
;

varDeclaration
variableDeclaration
: identifierList COLON typeExpression (EQ expressionList)?
;

identifierList
: ID (COMMA ID)*
;

varAssignment
variableAssignment
: expressionList EQ expressionList
;

Expand Down

0 comments on commit 80b39e9

Please sign in to comment.