-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
Added TextSlice; Lark can now parse/lex a text-slice #1452
base: master
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
@MegaIng I basically used your code, with very little changes. I didn't encounter any complications, so maybe I missed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! No comments on the implementation itself. (It is after all a version of my implementation :-)) However, I think a bit of documentation would be nice:
- Make sure
TextSlice
appears in the doc pages - Add a docstring for it
- Mention the ability to deal with
TextSlice
in the parsing methods, and especially mention thatlexer='dynamic'
can't (yet) deal with it.
Based on previous PR by MegaIng
Added. Let me know if I forgot to mention something. |
If no one objects, I will merge this soon. @MegaIng |
Based on previous PR by MegaIng. See #1429