night199uk
d845aa3bf1
Add debug flag to Early and XEarley to allow dumping the SPPF
5 years ago
Erez Shinan
7e8488d1a0
Fixed issue #425 , keeping in mind unicode issue #411
5 years ago
Erez Shinan
d5036eefdd
Serialize tool: Multiple start symbols + bugfix
5 years ago
Erez Sh
3cdee35af5
Version bump
5 years ago
Erez Shinan
9ca74d7f67
Added the serialize tool for exporting Lark state & analysis
5 years ago
Erez Shinan
71c4abfb24
Fixed error message (Issue #380 )
5 years ago
Fábio Macêdo Mendes
1e4dbac58c
Fix undetected newlines on ignored tokens
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
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
aa75d50bd5
End symbol working for lalr + fixed validation for undefined %ignore
5 years ago
Erez Shinan
bcc4e67bce
CYK also working
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
f814d91f9d
Removed possibly problematic code (Issue #372 )
5 years ago
Erez Shinan
e79689dce7
Remove unused rules (Issue #384 )
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
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
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
PJCampi
b055bc6399
import_grammar now include base_path in recursive call to load_grammar
5 years ago
PJCampi
4889013404
get_namespace_name now preserves leading underscore on relative import
5 years ago
Erez Shinan
9420bce40a
BUGFIX: v_args didn't wrap overwritten inherited methods (Issue #350 )
5 years ago
Erez Shinan
65bde7e15f
@ instead of __memo__
5 years ago
Erez Shinan
5ab12b031c
Added transformer, postlex arguments to standalone
5 years ago
Erez Shinan
ae51402cc7
Added serializer test
5 years ago
Erez Shinan
6efa6b4fa0
Still working
5 years ago
Erez Shinan
3c64c56bcd
All tests passing
5 years ago
Erez Shinan
94e15fb6f7
Mid work. Almost stable
5 years ago
Erez Shinan
e52cc46fc5
Minor cleanup
5 years ago
Erez Shinan
d13ebb9c15
Using a mostly-generic serialization method
5 years ago
Erez Shinan
dd84f6c0a8
Tiny refactor
5 years ago