Skip to content

Commit

Permalink
Merge pull request #98 from bytecodealliance/fix-grammar
Browse files Browse the repository at this point in the history
Fix `resource-decl` rule in grammar.
  • Loading branch information
peterhuene committed Apr 28, 2024
2 parents b41f683 + 7677319 commit ac04147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LANGUAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ world-include-item ::= id 'as' id
world-ref ::= package-path | id
type-decl ::= variant-decl | record-decl | flags-decl | enum-decl | type-alias
item-type-decl ::= resource-decl | type-decl
resource-decl ::= 'resource' id '{' resource-item* '}'
resource-decl ::= 'resource' id (';' | '{' resource-item* '}')
resource-item ::= constructor | method
constructor ::= 'constructor' param-list ';'
method ::= id ':' 'static'? func-type ';'
Expand Down

0 comments on commit ac04147

Please sign in to comment.