-
-
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
Interegular integration, allowing checks for intersections between regexes. #715
Conversation
A few notes:
I see you already cache the FSMs, so all that's required to prevent duplicate work is to call
|
P.S. re point 3, you can do something like |
Update __main__.py
Just a minor change
Added lark syntax highlighting and a few tiny changes.
Since 1.0 isn't Python 2 compatible (according to Reddit post) which makes "& 3" redundant too :)
Generator is memory efficient approach.
Also improve performance of "iter_subtrees_topdown" Performance of "iter_subtrees_topdown" method reduce as size of tree increases. Using instance of list method improve the performance.
Fix EOF line information in InteractiveParser.resume_parse()
Use generator instead of list expand or add method
use fromkeys
Improve logic and performance
Previous version used `_testlist_comp` which allowed for either one `test` or 2 and more `test_or_star_expr` This version allows a list with one `star_expr` which is valid both in Python and in official Python grammar. Moreover it merges rules used in set and list (since those terminals differ only in one thing: set literal cannot be empty)
Updated Python grammar list literal to support `[*x]`
Examples: Update version for PyQt5
Support for Python-style comments in Lark grammar
[M:grammar.md] doc: added Python-style comments.
… messages can still be displayed
…teregular-integration # Conflicts: # lark/lexer.py # lark/load_grammar.py # setup.py
Well, this is now a messed up git history. |
Fixes #76.
This is a first attempt.
You can install
interegular
via pip:pip install interegular
. If you want, you can also take a look at the interegular source code.