multiple labels per line

This commit is contained in:
Tom Everett
2016-03-01 17:48:38 -07:00
parent b3cf1cc313
commit 1462ad2a31
+3 -1
View File
@@ -44,8 +44,9 @@ declarations
: declaration (';' declaration)*
;
// multiple labels can occur on the same line
declaration
: label? (instruction | assignment | expression)?
: label* (instruction | assignment | expression)?
;
instruction
@@ -200,6 +201,7 @@ opcode
| 'crrb'
| 'sys'
| 'czm'
| 'irss'
;
LOC