From 1462ad2a319fbd02a94b1d29b49e2d0172babd46 Mon Sep 17 00:00:00 2001 From: Tom Everett Date: Tue, 1 Mar 2016 17:48:38 -0700 Subject: [PATCH] multiple labels per line --- antlr/pdp7asm.g4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/antlr/pdp7asm.g4 b/antlr/pdp7asm.g4 index 7954709..03827b1 100644 --- a/antlr/pdp7asm.g4 +++ b/antlr/pdp7asm.g4 @@ -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