diff options
author | sanine-a <sanine.not@pm.me> | 2023-05-22 14:58:52 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-05-22 14:58:52 -0500 |
commit | 9e8703d07e2e49d14e3d2092d77f8f7e75ee7e04 (patch) | |
tree | 548572958e4f368d7d1dbe0144c9e27a160c2ec3 /src/parser/grammar.jison | |
parent | f2a515a940ea5e66c9fbc9669e6293ae32b7041a (diff) |
fix line labels ordering
Diffstat (limited to 'src/parser/grammar.jison')
-rw-r--r-- | src/parser/grammar.jison | 4 |
1 files changed, 2 insertions, 2 deletions
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 |