Closed hackwaly closed 5 months ago
Hmm, I don't think EOF
can be automatically added to all follows
set.
Not all parsing rules may terminate with EOF
, normally it is only the root one.
Can you try explicitly adding $.CONSUME(EOF)
at the end of your root rule?
Does it solve your issue?
$.RULE("json", () => {
$.OR([
{ ALT: () => $.SUBRULE($.object) },
{ ALT: () => $.SUBRULE($.array) },
]);
// explicitly consume End Of File.
$.CONSUME(EOF);
});
closing, re-open if this workaround does not work.
Because EOF never appears in follows