closer
This commit is contained in:
+4
-2
@@ -46,7 +46,7 @@ declarations
|
|||||||
|
|
||||||
// multiple labels can occur on the same line
|
// multiple labels can occur on the same line
|
||||||
declaration
|
declaration
|
||||||
: label* (instruction | assignment | expression)?
|
: label* (instruction | assignment | expression)*
|
||||||
;
|
;
|
||||||
|
|
||||||
instruction
|
instruction
|
||||||
@@ -198,6 +198,7 @@ opcode
|
|||||||
| 'sys'
|
| 'sys'
|
||||||
| 'czm'
|
| 'czm'
|
||||||
| 'irss'
|
| 'irss'
|
||||||
|
| 'dsm'
|
||||||
;
|
;
|
||||||
|
|
||||||
LOC
|
LOC
|
||||||
@@ -235,8 +236,9 @@ LABEL
|
|||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
// the period is considered a letter
|
||||||
IDENTIFIER
|
IDENTIFIER
|
||||||
: [a-zA-Z] [a-zA-Z0-9]*
|
: [a-zA-Z] [a-zA-Z0-9.]*
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user