MegaIng
46339c112e
Merge branch 'master' into custom_import_sources
4 years ago
Erez Sh
d433c00fa9
Merge branch 'MegaIng-standalone_options'
4 years ago
Erez Sh
f2a6feddf1
Tiny fixes
4 years ago
Erez Sh
dbeb724c51
Merge branch 'standalone_options' of https://github.com/MegaIng/lark into MegaIng-standalone_options
4 years ago
Erez Sh
c196f99cd4
Better reduce/reduce errors
4 years ago
MegaIng1
ee9857cabb
Added backwards-compatibility property with DeprecationWarning
4 years ago
MegaIng1
bd22a2f79e
Removed _LOAD_BLOCKED_OPTIONS
4 years ago
Erez Shinan
e4001d5e11
Merge pull request #708 from MegaIng/always_accept_filter
4 years ago
Erez Shinan
9af9a71029
Merge pull request #709 from rec/master
Guard Lark.__doc__ assignment for tools.standalone
4 years ago
MegaIng1
acd04442bc
Fix for cache
4 years ago
MegaIng1
e1b572c3a9
Allows the standalone parser to take more options.
4 years ago
Tom Ritchford
fb925f8b31
Guard Lark.__doc__ assignment for tools.standalone
4 years ago
MegaIng1
9370fb5aa5
Fix for tree_matcher
4 years ago
MegaIng1
dcde0bcbe9
Prevent terminals from being filtered out when used in always_accept
4 years ago
MegaIng1
5f7a5d428a
renamed `source_code` -> `source_grammar`
4 years ago
MegaIng1
ed5c8ec51c
Merge remote-tracking branch 'origin/custom_import_sources' into custom_import_sources
# Conflicts:
# lark-stubs/lark.pyi
4 years ago
MegaIng1
a4260110ff
added PackageResource
4 years ago
MegaIng1
f7d466dc7d
added PackageResource
4 years ago
MegaIng1
a50fc10773
import_paths->sources, source->source_path, various implementation changes
4 years ago
Erez Shinan
809b0308a4
Merge pull request #702 from ldbo/fix-debug-cache-incompatibility
4 years ago
Erez Sh
8ac74d73e3
Merge branch 'ldbo-fix-debug-cache-incompatibility'
4 years ago
Erez Shinan
4dc6b0c914
Merge branch 'master' into fix-debug-cache-incompatibility
4 years ago
Erez Sh
aac21d4d19
Minor version bump + Adjustments to PR
4 years ago
Louis Dubois
a423097362
fix: Propagate debug flag on loading grammar from cache
The debug flag is already saved in the cached file, but is not
resumed on loading the dumped file. To solve that,
- add argument `debug` to parser_fronteds.WithLexer.deserialize
- add argument `debug` lalr_parser.LALR_Parser.deserialize
- propagate the value of the `debug` option on resuming a cached
grammar, in lark.Lark._load
4 years ago
Louis Dubois
c6f2b023f3
chg: Force pickle to use highest protocol
Python2.7 uses protocol 1 by default, which is not compatible with
class defining __slots__. On the other hand, all the Python versions
support versions >= 2.
4 years ago
Erez Sh
798a7026b4
Minor version bump + Adjustments to PR
4 years ago
Erez Sh
e5cf495230
Merge branch 'fix-debug-cache-incompatibility' of https://github.com/ldbo/lark into ldbo-fix-debug-cache-incompatibility
4 years ago
MegaIng1
009cc10590
Added `FromPackageLoader` and `open_from_package`
4 years ago
MegaIng1
c9b5443127
Fix for python2.7
4 years ago
MegaIng1
53b3e12bba
Added `import_sources`
4 years ago
Louis Dubois
abdbabe429
fix: Propagate debug flag on loading grammar from cache
The debug flag is already saved in the cached file, but is not
resumed on loading the dumped file. To solve that,
- add argument `debug` to parser_fronteds.WithLexer.deserialize
- add argument `debug` lalr_parser.LALR_Parser.deserialize
- propagate the value of the `debug` option on resuming a cached
grammar, in lark.Lark._load
4 years ago
Louis Dubois
d41e3cdfb9
chg: Force pickle to use highest protocol
Python2.7 uses protocol 1 by default, which is not compatible with
class defining __slots__. On the other hand, all the Python versions
support versions >= 2.
4 years ago
Erez Shinan
7c8d6ee787
Merge pull request #698 from michael-k/python3.9
Run tests against Python 3.9
4 years ago
Michael Käufl
db2354a9eb
Run tests against Python 3.9
4 years ago
Erez Sh
9f3d611022
Version bump to 0.10.0
4 years ago
Erez Shinan
a9ef2d2221
Merge pull request #695 from chanicpanic/forest-docs-fix
4 years ago
Chanic Panic
2198113a71
Fix missing handles_ambiguity docstring
4 years ago
Erez Shinan
84b195d5f0
Merge pull request #691 from starwarswii/patch-1
updated lark.lark with two small fixes
4 years ago
Erez Shinan
6688366020
Merge pull request #693 from chanicpanic/forest-docs
4 years ago
Chanic Panic
f8a51ca087
Write examples for ForestVisitor and TreeForestTransformer
4 years ago
Chanic Panic
24434ec5ff
Add documentation for working with the SPPF
4 years ago
starwarswii
d385d10739
added tests for lark.lark changes
4 years ago
starwarswii
082e0f3de7
fixed lark.lark requiring newline at the end of grammars
lark.lark didn't parse grammars that didn't have a trailing newline in the file, but lark itself has no problem parsing those grammars
this change makes lark.lark more accurate in reflecting what grammars are parsed by lark.
4 years ago
starwarswii
7ce69c7c91
fixed lark.lark not accepting negative priorities
using `SIGNED_INT` instead of `INT` more closely matches the the grammar used by lark in `load_grammar.py`
4 years ago
Erez Sh
4dafccfcc8
Added link to vim syntax highlighter
4 years ago
Erez Sh
faecf32592
Restore the Lark.terminals attribute when using cached grammar
4 years ago
Erez Shinan
dc30692015
Merge pull request #689 from rec/tests
Test print argument to lark.tools.standalone.main
4 years ago
Tom Ritchford
fcf6e8e98e
Test print argument to lark.tools.standalone.main
4 years ago
Erez Shinan
5a357d5d88
Merge pull request #688 from rec/upstream/master
Add print parameter to lark.tools.standalone.main
4 years ago
Tom Ritchford
ce32310f49
Add print parameter to lark.tools.standalone.main
4 years ago