Skip to content

Commit

Permalink
Revert "add grammar fix from 3874"
Browse files Browse the repository at this point in the history
This reverts commit 4820822.
  • Loading branch information
tserg committed Mar 26, 2024
1 parent 31d9af9 commit f66ade2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions vyper/ast/grammar.lark
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module: ( DOCSTRING
| event_def
| function_def
| immutable_def
| transient_def
| exports_decl
| _NEWLINE )*

Expand Down Expand Up @@ -48,13 +47,9 @@ constant_def: (constant_private | constant_with_getter) "=" expr
immutable: "immutable" "(" type ")"
immutable_def: NAME ":" immutable

// transient definitions
transient: "transient" "(" type ")"
transient_def: NAME ":" transient

variable: NAME ":" type
// NOTE: Temporary until decorators used
variable_with_getter: NAME ":" "public" "(" (type | immutable | transient) ")"
variable_with_getter: NAME ":" "public" "(" (type | immutable) ")"
variable_def: variable | variable_with_getter

// A decorator "wraps" a method, modifying it's context.
Expand Down

0 comments on commit f66ade2

Please sign in to comment.