Skip to content

Commit

Permalink
Re-introduce AssemblyFlagsDeclaration from v2 to v0/v1 (#659)
Browse files Browse the repository at this point in the history
Follow-up to #653, I didn't notice this was not defined in v0/v1 before
as well
  • Loading branch information
Xanewok authored Nov 15, 2023
1 parent 5aa988f commit b5f59c5
Show file tree
Hide file tree
Showing 32 changed files with 147 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@
- optional:
reference: "AsciiStringLiteral" # label: "evmasm"
- optional:
delimitedBy:
open:
reference: "OpenParen"
parser:
reference: "AssemblyFlagsList"
close:
reference: "CloseParen"
reference: "AssemblyFlagsDeclaration"
- reference: "YulBlock"

- name: "AssemblyFlagsDeclaration"
kind: "Parser"
unversioned:
delimitedBy:
open:
reference: "OpenParen"
parser:
reference: "AssemblyFlagsList"
close:
reference: "CloseParen"

- name: "AssemblyFlagsList"
kind: "Parser"
unversioned:
Expand Down
4 changes: 3 additions & 1 deletion crates/solidity/inputs/language/src/dsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ slang_grammar! {

parser AssemblyFlagsList = (AsciiStringLiteral separated by Comma) ;

parser AssemblyStatement = (AssemblyKeyword (AsciiStringLiteral ?) ((AssemblyFlagsList delimited by OpenParen and CloseParen) ?) YulBlock) ;
parser AssemblyStatement = (AssemblyKeyword (AsciiStringLiteral ?) (AssemblyFlagsDeclaration ?) YulBlock) ;

parser AssemblyFlagsDeclaration = (AssemblyFlagsList delimited by OpenParen and CloseParen) ;

inline parser AssignmentOperator = (
Equal | BarEqual | PlusEqual | MinusEqual | CaretEqual | SlashEqual | PercentEqual | AsteriskEqual | AmpersandEqual |
Expand Down
2 changes: 2 additions & 0 deletions crates/solidity/outputs/cargo/crate/src/generated/kinds.rs

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

55 changes: 33 additions & 22 deletions crates/solidity/outputs/cargo/crate/src/generated/language.rs

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.

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

2 changes: 2 additions & 0 deletions crates/solidity/outputs/npm/crate/src/generated/kinds.rs

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

55 changes: 33 additions & 22 deletions crates/solidity/outputs/npm/crate/src/generated/language.rs

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

2 changes: 2 additions & 0 deletions crates/solidity/outputs/npm/package/src/generated/index.d.ts

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

Loading

0 comments on commit b5f59c5

Please sign in to comment.