summaryrefslogtreecommitdiff
path: root/easm
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki <koriakin@0x04.net>2012-07-27 18:40:56 +0200
committerMarcin Koƛcielnicki <koriakin@0x04.net>2012-07-27 18:40:56 +0200
commit0ed6495675f6c9a4ebe72599b96a675a9d0afc25 (patch)
tree434da5561e75290933783c4c7fdb371bc3a9c70b /easm
parent41c8ef9ec56c770d0220aa7ec5ee781538e9d5f2 (diff)
easm: Allow empty ';' statements.
Diffstat (limited to 'easm')
-rw-r--r--easm/easm_parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/easm/easm_parse.y b/easm/easm_parse.y
index d8aafbcc..0e0e091b 100644
--- a/easm/easm_parse.y
+++ b/easm/easm_parse.y
@@ -113,7 +113,7 @@ file: /**/ { $$ = calloc(sizeof *$$, 1); }
line: direct eol { $$ = calloc(sizeof *$$, 1); $$->loc = @$; $$->type = EASM_LINE_DIRECTIVE; $$->directive = $1; }
line: insn eol { $$ = calloc(sizeof *$$, 1); $$->loc = @$; $$->type = EASM_LINE_INSN; $$->insn = $1; }
line: T_WORDC { $$ = calloc(sizeof *$$, 1); $$->loc = @$; $$->type = EASM_LINE_LABEL; $$->lname = $1; }
-line: '\n' { $$ = 0; }
+line: eol { $$ = 0; }
eol: '\n'
eol: ';'