Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify syntax with alignof with other language components #106

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 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.

2 changes: 1 addition & 1 deletion src/main/java/com/spicelang/intellij/spice/Spice.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ assertStmt ::= ASSERT assignExpr SEMICOLON
builtinCall ::= printfCall | sizeOfCall | alignOfCall | lenCall | panicCall | sysCall
printfCall ::= PRINTF LPAREN STRING_LIT (COMMA assignExpr)* RPAREN
sizeOfCall ::= SIZEOF (LPAREN assignExpr RPAREN | LESS dataType GREATER LPAREN RPAREN)
alignOfCall ::= ALIGNOF LPAREN (assignExpr | TYPE dataType) RPAREN
alignOfCall ::= ALIGNOF (LPAREN assignExpr RPAREN | LESS dataType GREATER LPAREN RPAREN)
lenCall ::= LEN LPAREN assignExpr RPAREN
panicCall ::= PANIC LPAREN assignExpr RPAREN
sysCall ::= SYSCALL LPAREN assignExpr (COMMA assignExpr)* RPAREN
Expand Down