Grammar
- Updated `module` to have all `decl`(s) (if any) followed by a `";"`
This commit is contained in:
parent
191ac41b6c
commit
0bca21937b
|
@ -52,7 +52,7 @@ Statements are inevitably the building blocks of a program and make use
|
|||
of all the former defined sections of the grammar and more of themsleves
|
||||
in some cases as well.
|
||||
|
||||
module ::= "module", ident, ";", {decl};
|
||||
module ::= "module", ident, ";", {decl, ";"};
|
||||
decl ::= vdecl | funcDecl;
|
||||
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ use of all the former defined sections of the grammar and more of
|
|||
themsleves in some cases as well.
|
||||
|
||||
```
|
||||
module ::= "module", ident, ";", {decl};
|
||||
module ::= "module", ident, ";", {decl, ";"};
|
||||
decl ::= vdecl | funcDecl;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue