Adjust grammar so that it never depends on newline tokens

This commit is contained in:
omicron 2025-04-01 19:26:27 +02:00
parent ed1491db33
commit 988b54aee3

View File

@ -1,6 +1,6 @@
/* string literals are lexer identifier tokens with that particular value */
<program> ::= <statement>*
<statement> ::= ( <label> | <directive> | <instruction> ) <newline>
<statement> ::= <label> | <directive> | <instruction>
<label> ::= <identifier> <colon>