From 9e8703d07e2e49d14e3d2092d77f8f7e75ee7e04 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Mon, 22 May 2023 14:58:52 -0500 Subject: fix line labels ordering --- src/parser/grammar.jison | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parser/grammar.jison') diff --git a/src/parser/grammar.jison b/src/parser/grammar.jison index 2f5b30a..83255e0 100644 --- a/src/parser/grammar.jison +++ b/src/parser/grammar.jison @@ -51,8 +51,8 @@ %% program - : lines END coda { yy.start = 0; return $lines; } - | lines END label coda { yy.start = yy.getLabel($label); return $lines; } + : lines END coda { return { start: 0, program: $lines }; } + | lines END label coda { return { start: yy.getLabel($label), program: $lines }; } ; coda -- cgit v1.2.1