-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible bug with parse_interactive
and unknown_param_0
?
#42
Comments
I tried modifying the relevant Javascript bit to be:
And it appears to work now. But I'm not familiar enough with the code to know whether doing so introduces other bugs. |
It's just a bug in the automatic conversion. I think this fix should be okay, though I'll have to check to make sure. You're welcome to open a PR for it. |
PR opened here: #44 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When calling
.exhaust_lexer()
I'm seeing differing behavior between Python and Javascript.I think I've narrowed it down to this bit of code:
https://github.com/lark-parser/Lark.js/blob/master/larkjs/lark.js#L3761
Which sets
LexerThread.state
to:Later on,
next_token
is called here, which calls this:Which seems to imply that it expects
text
to be a string, but in facttext
is{ unknown_param_0: text, start: start, }
.The text was updated successfully, but these errors were encountered: