You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should produce two Junk entries in the AST. Right now they're are merged into a single one because junk is first parsed line-by-line (junk_line) and it's only combined in abstract.mjs. We'll likely need two grammar productions, junk_first_line and junk_follow_line, so that we can distinguish between them in abstract.mjs and only join the first line with its follow lines.
The text was updated successfully, but these errors were encountered:
stasm
changed the title
Adjacent broken entries shouldn't be merged into a signle Junk
Adjacent broken entries shouldn't be merged into a single Junk
Oct 19, 2018
In #211 I implemented an approach which is much closer to how our tooling parsers deal with error recovery: the junk is parsed until a new line which looks like it may be an Entry start is encountered.
should produce two Junk entries in the AST. Right now they're are merged into a single one because junk is first parsed line-by-line (
junk_line
) and it's only combined inabstract.mjs
.We'll likely need two grammar productions,junk_first_line
andjunk_follow_line
, so that we can distinguish between them inabstract.mjs
and only join the first line with its follow lines.The text was updated successfully, but these errors were encountered: