Skip to content

Commit

Permalink
Introduce EventParametersDeclaration in v0/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Nov 15, 2023
1 parent 18a8962 commit b716ed0
Show file tree
Hide file tree
Showing 32 changed files with 150 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,24 @@
sequence:
- reference: "EventKeyword"
- reference: "Identifier"
- delimitedBy:
open:
reference: "OpenParen"
parser:
optional:
reference: "EventParametersList"
close:
reference: "CloseParen"
- reference: "EventParametersDeclaration"
- optional:
reference: "AnonymousKeyword"
terminator:
reference: "Semicolon"

- name: "EventParametersDeclaration"
kind: "Parser"
unversioned:
delimitedBy:
open:
reference: "OpenParen"
parser:
optional:
reference: "EventParametersList"
close:
reference: "CloseParen"

- name: "EventParametersList"
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 @@ -277,7 +277,9 @@ slang_grammar! {

parser ErrorParametersList = { introduced in "0.8.4" (ErrorParameter separated by Comma) } ;

parser EventDefinition = ((EventKeyword Identifier ((EventParametersList ?) delimited by OpenParen and CloseParen) (AnonymousKeyword ?)) terminated by Semicolon) ;
parser EventDefinition = ((EventKeyword Identifier EventParametersDeclaration (AnonymousKeyword ?)) terminated by Semicolon) ;

parser EventParametersDeclaration = ((EventParametersList ?) delimited by OpenParen and CloseParen);

parser EventParameter = (TypeName (IndexedKeyword ?) (Identifier ?)) ;

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.

53 changes: 31 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.

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.

53 changes: 31 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.

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 b716ed0

Please sign in to comment.