Skip to content
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

Rename lexer_state->lexer_thread, and make a few adjustments for the benefit of Lark-Cython #1118

Merged
merged 1 commit into from
Feb 26, 2022

Conversation

erezsh
Copy link
Member

@erezsh erezsh commented Feb 26, 2022

"lexer_state" was confusing, as the instance is always LexerThread, whereas lexer_thread.state is a LexerState

LexerThread._Token might be just a temporary solution, but for now it's needed so InteractiveParser knows what Token class to instanciate.

Changing the init/copy is needed for Cython, but is the right thing to do regardless.

@erezsh erezsh merged commit 5772e18 into master Feb 26, 2022
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.

None yet

2 participants