Skip to content

Fix ParserInteractive.accepts#40

Open
thekevinscott wants to merge 1 commit into
lark-parser:masterfrom
thekevinscott:master
Open

Fix ParserInteractive.accepts#40
thekevinscott wants to merge 1 commit into
lark-parser:masterfrom
thekevinscott:master

Conversation

@thekevinscott

@thekevinscott thekevinscott commented Feb 19, 2024

Copy link
Copy Markdown
Contributor

@erezsh

erezsh commented Feb 19, 2024

Copy link
Copy Markdown
Member

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

@thekevinscott

thekevinscott commented Feb 19, 2024

Copy link
Copy Markdown
Contributor Author

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.

@erezsh

erezsh commented Jan 26, 2025

Copy link
Copy Markdown
Member

So, do you think it's correct now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants