Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarTawfik committed Aug 11, 2024
1 parent 9545003 commit 319c80a
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 64 deletions.
18 changes: 10 additions & 8 deletions crates/solidity/inputs/language/src/definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4161,21 +4161,23 @@ codegen_language_macros::compile!(Language(
Enum(
name = YulStatement,
variants = [
// Variants that can be identified using the first token:
EnumVariant(reference = YulBlock),
EnumVariant(reference = YulBreakStatement),
EnumVariant(reference = YulContinueStatement),
EnumVariant(reference = YulForStatement),
EnumVariant(reference = YulFunctionDefinition),
EnumVariant(reference = YulVariableDeclarationStatement),
EnumVariant(reference = YulVariableAssignmentStatement),
EnumVariant(reference = YulIfStatement),
EnumVariant(reference = YulLabel, enabled = Till("0.5.0")),
EnumVariant(reference = YulLeaveStatement, enabled = From("0.6.0")),
EnumVariant(
reference = YulStackAssignmentStatement,
enabled = Till("0.5.0")
),
EnumVariant(reference = YulIfStatement),
EnumVariant(reference = YulForStatement),
EnumVariant(reference = YulSwitchStatement),
EnumVariant(reference = YulLeaveStatement, enabled = From("0.6.0")),
EnumVariant(reference = YulBreakStatement),
EnumVariant(reference = YulContinueStatement),
EnumVariant(reference = YulLabel, enabled = Till("0.5.0")),
// These variants are more complex, and require backtracking:
EnumVariant(reference = YulVariableDeclarationStatement),
EnumVariant(reference = YulVariableAssignmentStatement),
EnumVariant(reference = YulExpression)
]
),
Expand Down

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.

16 changes: 8 additions & 8 deletions crates/solidity/outputs/spec/generated/grammar.ebnf

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.

0 comments on commit 319c80a

Please sign in to comment.