Fábio Macêdo Mendes
e8c67839c2
Test if lexer correctly detects newlines
5 years ago
Erez Shinan
8466981c08
Cleanup
5 years ago
Erez Shinan
de24fa055d
Saving _hash for symbols isn't necessary
5 years ago
Raekye
0c59cba3f5
implement DeRemer and Pennello's lookahead algorithm for LALR(1)
5 years ago
Raekye
6f412c25b7
LALR optimizations and profiling
5 years ago
Raekye
fe2869bd63
merge lalr parser
5 years ago
Raekye
21c41e54a9
lalr parser
5 years ago
Erez Shinan
dd3a812fea
Version bump (0.7.2)
5 years ago
Erez Shinan
7add0e1f3f
Memoize get_regexp_width (Issue #413 )
5 years ago
Erez Shinan
0d164bd344
Added get_terminal() method (Issue #412 )
5 years ago
Erez Shinan
d952f2a069
Token values are now always unicode (resolves issue #411 )
5 years ago
Erez Shinan
8e9da6a6d6
Minor optimization in LALR (and fix for last commit)
5 years ago
Erez Shinan
39b0d76914
Minor optimization in LALR (thanks to @Raekye )
5 years ago
Erez Shinan
c87cbc6322
Removed some dead code
5 years ago
Erez Shinan
e3cbd7aadc
Negative priority now allowed in rules and tokens. Updated docs about priority
5 years ago
Erez Shinan
94e7e82a19
Updated docstrings for multiple start symbols
5 years ago
Erez Shinan
79ca7616dd
Merge branch 'master' into lalr_refactor2
5 years ago
Erez Shinan
505c46e9ba
Cleaned up a test
5 years ago
Erez Sh
be2e860c83
Added to tests: Make sure the standalone parser is reusable
6 years ago
Erez Shinan
bcc4e67bce
CYK also working
5 years ago
Erez Shinan
2625d68869
multi start, all tests passing except cyk
5 years ago
Erez Shinan
71fe87964a
Small refactor in grammar analysis
5 years ago
Erez Shinan
f1e844accd
Mid work. Not promising
5 years ago
Erez Shinan
39a17f1d56
Fixed broken link in docs (Issue #399 )
5 years ago
Erez Shinan
f814d91f9d
Removed possibly problematic code (Issue #372 )
5 years ago
Erez Shinan
db4ae9d20b
Merge pull request #393 from davaya/master
Clarify handling of filtered terminals
5 years ago
David Kemp
6a14e25f40
Update description of terminals
5 years ago
David Kemp
9a64d2124b
Clarify handling of filtered terminals
5 years ago
Erez Shinan
335be9d289
Update README.md
5 years ago
Erez Shinan
8e81dc0061
Update "Projects using Lark"
5 years ago
Erez Shinan
c85e7f4f48
Merge pull request #371 from pvinci/master
Fix DeprecationWarning in lalr_analysis.py
5 years ago
Erez Shinan
7b43742afd
Fixed IMAG_NUMBER in the Python3 grammar (Issue #387 )
5 years ago
Erez Shinan
e79689dce7
Remove unused rules (Issue #384 )
5 years ago
Erez Shinan
80fd20facb
Merge branch 'elektito-embedded-inplace-transformer'
5 years ago
Erez Shinan
a9106df824
Corrected thee Transformer's whole_tree interface, for both internal and external use
5 years ago
Erez Shinan
f71df240b6
Removed Python2 incompatibility
5 years ago
Mostafa Razavi
e5868415eb
Implement embedded in-place transformers. See #378 .
As discussed in issue #378 , when an embedded transformer (that is, one
passed to the Lark class using the transformer argument), is an
inplace transformer (either a subclass of Transformer_InPlace, or with
the @v_args(tree=True) decorator), the in-place transformer was not
working correctly and in-fact Lark used it like a normal non-in-place
transformer, expecting it to return the transformed value.
5 years ago
Erez Shinan
0f9dfdd623
Re-implemented CustomLexer after regression (Issue #377 )
5 years ago
Erez Shinan
29ef3efeb9
Merge pull request #373 from fbindel/pydot-more-attributes
Allow any graph attribute in `pydot__tree_to_png`.
5 years ago
fbindel
09afcfcfc7
Allow any graph attribute in `pydot__tree_to_png`.
Keeping the explicit `rankdir="LR"` as default, add `kwargs`
to `pydot__tree_to_png` and `pydot.Dot` so that all graphviz
attributes are available for the graph.
5 years ago
Paul Vinciguerra
28e571f1c6
Fix DeprecationWarning in lalr_analysis.py
Under python 3.3+, logging.warn is deprecated.
Use logging.warning instead.
Fixes: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/lark/parsers/lalr_analysis.py:87: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
5 years ago
Erez Shinan
4d8301f73c
Version Bump
5 years ago
Erez Shinan
a798dec779
Fix to new serializer code (Discussed in issue #349 )
5 years ago
Erez Shinan
c5cb79307b
Fixes for new standalone (Issue #349 )
5 years ago
Erez Shinan
e2c87369c0
Merge pull request #365 from PJCampi/bugfix/364-reconstruction-update-start-symbol-of-parser-instead-of-recreating-it
Bugfix/364 reconstruction update start symbol of parser instead of recreating it
5 years ago
Erez Shinan
c91e093d40
Merge pull request #360 from PJCampi/bugfix/348-import-rules-dependencies-only-once
load_grammar now collects all imports to make before loading them to …
5 years ago
PJCampi
c5218b185e
reconstructor creates parser at instantiation and update start_symbol in _reconstruct step.
5 years ago
PJCampi
ccbaebdc6f
load_grammar now collects all imports to make before loading them to namespace
5 years ago
Erez Shinan
1e9979183c
Merge pull request #352 from michael-k/python3.7
Run tests against Python 3.7 and pypy 6.0
5 years ago
Erez Shinan
4e1d781926
Merge pull request #357 from PJCampi/bugfix/347-add-grammar-path-to-recursive-grammar-load
import_grammar now include base_path in recursive call to load_grammar
5 years ago