Skip to content

Commit

Permalink
Fix inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Aug 9, 2024
1 parent 5474cab commit b378f04
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 88 deletions.
26 changes: 7 additions & 19 deletions src/main/gen/com/spicelang/intellij/spice/SpiceParser.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions src/main/gen/com/spicelang/intellij/spice/psi/SpiceExprStmt.java

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/gen/com/spicelang/intellij/spice/psi/SpiceStmt.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions src/main/gen/com/spicelang/intellij/spice/psi/SpiceTypes.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/main/java/com/spicelang/intellij/spice/Spice.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ enumItemLst ::= enumItem (COMMA enumItem)*
enumItem ::= TYPE_IDENTIFIER (ASSIGN INT_LIT)?
field ::= dataType IDENTIFIER (ASSIGN assignExpr)?
signature ::= specifierLst? (F LESS dataType GREATER | P) IDENTIFIER (LESS typeLst GREATER)? LPAREN typeLst? RPAREN SEMICOLON
stmt ::= (declStmt | assignExpr | returnStmt | breakStmt | continueStmt | fallthroughStmt | exprStmt) SEMICOLON
stmt ::= (declStmt | assignExpr | returnStmt | breakStmt | continueStmt | fallthroughStmt) SEMICOLON
declStmt ::= dataType IDENTIFIER (ASSIGN assignExpr)?
exprStmt ::= assignExpr
specifierLst ::= specifier+
specifier ::= CONST | SIGNED | UNSIGNED | INLINE | PUBLIC | HEAP | COMPOSE
modAttr ::= MOD_ATTR_PREAMBLE LBRACKET attrLst RBRACKET
Expand All @@ -87,7 +86,7 @@ lenCall ::= LEN LPAREN assignExpr RPAREN
panicCall ::= PANIC LPAREN assignExpr RPAREN

// Expression loop
assignExpr ::= ternaryExpr | prefixUnaryExpr assignOp assignExpr
assignExpr ::= prefixUnaryExpr assignOp assignExpr | ternaryExpr
ternaryExpr ::= logicalOrExpr (QUESTION_MARK logicalOrExpr? COLON logicalOrExpr)?
logicalOrExpr ::= logicalAndExpr (LOGICAL_OR logicalAndExpr)*
logicalAndExpr ::= bitwiseOrExpr (LOGICAL_AND bitwiseOrExpr)*
Expand Down

0 comments on commit b378f04

Please sign in to comment.