lark-parser / Lark.js

Live port of Lark's standalone parser to Javascript
MIT License
71 stars 12 forks source link

Fix ParserInteractive.accepts #40

Open thekevinscott opened 6 months ago

thekevinscott commented 6 months ago
erezsh commented 6 months ago

(Yes, the failure is due to the Lark python version not being pinned. We'll try again later)

thekevinscott commented 6 months ago

Though this fixes the specific bug I encountered, I may have introduced another bug.

Should t refer to the key of the choices dictionary, or the value?

It seems like it should be referencing the key, as far as I can tell from poking around my generated parser, but in this PR I have it referencing the dict's value.