Skip to content

Commit

Permalink
Only support a address built-in/keyword in the Yul path
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Apr 24, 2024
1 parent 04541c7 commit 7587230
Show file tree
Hide file tree
Showing 156 changed files with 1,255 additions and 1,434 deletions.
3 changes: 2 additions & 1 deletion crates/solidity/inputs/language/src/definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4353,7 +4353,8 @@ codegen_language_macros::compile!(Language(
variants = [
EnumVariant(reference = YulIdentifier),
EnumVariant(
reference = YulBuiltInFunction,
// Upstream grammar accepts built-ins but only `address` is valid:
reference = YulAddressKeyword,
enabled = From("0.8.10")
)
]
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.

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

2 changes: 1 addition & 1 deletion 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.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is generated automatically by infrastructure scripts. Please don't edit by hand.

Source: >
1 │ add := 0 │ 0..8
Errors: # 1 total
- >
Error: Expected YulAddressKeyword or YulIdentifier.
╭─[crates/solidity/testing/snapshots/cst_output/YulAssignmentStatement/identifier_add/input.sol:1:1]
1 │ add := 0
│ ────┬────
│ ╰────── Error occurred here.
───╯
Tree:
- (SKIPPED): "add := 0\n" # (0..9)

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is generated automatically by infrastructure scripts. Please don't edit by hand.

Source: >
1 │ addmod := 0 │ 0..11
Errors: # 1 total
- >
Error: Expected YulAddressKeyword or YulIdentifier.
╭─[crates/solidity/testing/snapshots/cst_output/YulAssignmentStatement/identifier_addmod/input.sol:1:1]
1 │ addmod := 0
│ ──────┬─────
│ ╰─────── Error occurred here.
───╯
Tree:
- (SKIPPED): "addmod := 0\n" # (0..12)

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Tree:
- (YulAssignmentStatement): # "address := 0\n" (0..13)
- (names꞉ YulPaths): # "address" (0..7)
- (item꞉ YulPath): # "address" (0..7)
- (item꞉ YulPathComponent) ► (variant꞉ YulBuiltInFunction) ► (variant꞉ YulAddressKeyword): "address" # (0..7)
- (item꞉ YulPathComponent) ► (variant꞉ YulAddressKeyword): "address" # (0..7)
- (assignment꞉ YulAssignmentOperator): # " :=" (7..10)
- (leading_trivia꞉ Whitespace): " " # (7..8)
- (variant꞉ ColonEqual): ":=" # (8..10)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is generated automatically by infrastructure scripts. Please don't edit by hand.

Source: >
1 │ and := 0 │ 0..8
Errors: # 1 total
- >
Error: Expected YulAddressKeyword or YulIdentifier.
╭─[crates/solidity/testing/snapshots/cst_output/YulAssignmentStatement/identifier_and/input.sol:1:1]
1 │ and := 0
│ ────┬────
│ ╰────── Error occurred here.
───╯
Tree:
- (SKIPPED): "and := 0\n" # (0..9)

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is generated automatically by infrastructure scripts. Please don't edit by hand.

Source: >
1 │ balance := 0 │ 0..12
Errors: # 1 total
- >
Error: Expected YulAddressKeyword or YulIdentifier.
╭─[crates/solidity/testing/snapshots/cst_output/YulAssignmentStatement/identifier_balance/input.sol:1:1]
1 │ balance := 0
│ ──────┬──────
│ ╰──────── Error occurred here.
───╯
Tree:
- (SKIPPED): "balance := 0\n" # (0..13)

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is generated automatically by infrastructure scripts. Please don't edit by hand.

Source: >
1 │ basefee := 0 │ 0..12
Errors: # 1 total
- >
Error: Expected YulAddressKeyword or YulIdentifier.
╭─[crates/solidity/testing/snapshots/cst_output/YulAssignmentStatement/identifier_basefee/input.sol:1:1]
1 │ basefee := 0
│ ──────┬──────
│ ╰──────── Error occurred here.
───╯
Tree:
- (SKIPPED): "basefee := 0\n" # (0..13)

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is generated automatically by infrastructure scripts. Please don't edit by hand.

Source: >
1 │ blockhash := 0 │ 0..14
Errors: # 1 total
- >
Error: Expected YulAddressKeyword or YulIdentifier.
╭─[crates/solidity/testing/snapshots/cst_output/YulAssignmentStatement/identifier_blockhash/input.sol:1:1]
1 │ blockhash := 0
│ ───────┬───────
│ ╰───────── Error occurred here.
───╯
Tree:
- (SKIPPED): "blockhash := 0\n" # (0..15)

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is generated automatically by infrastructure scripts. Please don't edit by hand.

Source: >
1 │ byte := 0 │ 0..9
Errors: # 1 total
- >
Error: Expected YulAddressKeyword or YulIdentifier.
╭─[crates/solidity/testing/snapshots/cst_output/YulAssignmentStatement/identifier_byte/input.sol:1:1]
1 │ byte := 0
│ ─────┬────
│ ╰────── Error occurred here.
───╯
Tree:
- (SKIPPED): "byte := 0\n" # (0..10)

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is generated automatically by infrastructure scripts. Please don't edit by hand.

Source: >
1 │ call := 0 │ 0..9
Errors: # 1 total
- >
Error: Expected YulAddressKeyword or YulIdentifier.
╭─[crates/solidity/testing/snapshots/cst_output/YulAssignmentStatement/identifier_call/input.sol:1:1]
1 │ call := 0
│ ─────┬────
│ ╰────── Error occurred here.
───╯
Tree:
- (SKIPPED): "call := 0\n" # (0..10)

This file was deleted.

Loading

0 comments on commit 7587230

Please sign in to comment.