From 511361fbb00d3dcdb088d93c64a0f645bdb21e58 Mon Sep 17 00:00:00 2001 From: Tom Everett Date: Tue, 1 Mar 2016 18:18:52 -0700 Subject: [PATCH] closer --- antlr/pdp7asm.g4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/antlr/pdp7asm.g4 b/antlr/pdp7asm.g4 index 5f13066..a752f9a 100644 --- a/antlr/pdp7asm.g4 +++ b/antlr/pdp7asm.g4 @@ -46,7 +46,7 @@ declarations // multiple labels can occur on the same line declaration - : label* (instruction | assignment | expression)? + : label* (instruction | assignment | expression)* ; instruction @@ -198,6 +198,7 @@ opcode | 'sys' | 'czm' | 'irss' + | 'dsm' ; LOC @@ -235,8 +236,9 @@ LABEL ; +// the period is considered a letter IDENTIFIER - : [a-zA-Z] [a-zA-Z0-9]* + : [a-zA-Z] [a-zA-Z0-9.]* ;