Adjust grammar so that it never depends on newline tokens
This commit is contained in:
parent
ed1491db33
commit
988b54aee3
@ -1,6 +1,6 @@
|
|||||||
/* string literals are lexer identifier tokens with that particular value */
|
/* string literals are lexer identifier tokens with that particular value */
|
||||||
<program> ::= <statement>*
|
<program> ::= <statement>*
|
||||||
<statement> ::= ( <label> | <directive> | <instruction> ) <newline>
|
<statement> ::= <label> | <directive> | <instruction>
|
||||||
|
|
||||||
<label> ::= <identifier> <colon>
|
<label> ::= <identifier> <colon>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user