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
Erez Sh
62776b9908
Added type information for UnexpectedEOF (Issue #686 )
4 years ago
Erez Sh
fbab27ce0b
Attempt to add markdown tables
4 years ago
Erez Sh
18ead0e216
Attempt to add markdown tables
4 years ago
Erez Sh
e6caa035ca
Tiny docs fix
4 years ago
Erez Sh
555b268eb2
Merge branch 'chanicpanic-forest-transformer'
4 years ago
Erez Sh
156bd7577f
Adjustments and fixes for PR
4 years ago
Erez Sh
98497cf49e
Merge branch 'forest-transformer' of https://github.com/chanicpanic/lark into chanicpanic-forest-transformer
4 years ago
Chanic Panic
50c9cda6b5
Pass list to on_cycle instead of function
4 years ago
Erez Sh
88d4659c29
Improvements to puppet + other small stuff
4 years ago
Erez Shinan
756aa0354f
Merge pull request #680 from TG-Techie/evalable_repr
4 years ago
TG-Techie
b733ce4384
Merge pull request #2 from TG-Techie/master
added test
4 years ago
TG-Techie
9cebf44091
Merge branch 'evalable_repr' into master
4 years ago
Jonah Yolles-Murphy
b82f7177cb
added test
4 years ago
Chanic Panic
9db869cc80
Add PackedData class
4 years ago
TG-Techie
e4de6fc3de
Merge pull request #1 from lark-parser/master
pull error fix form upstream commit
4 years ago
Erez Sh
968d1652d8
Fixed issue in grammar error-reporting due to unordered dict (changed it to list)
4 years ago
Chanic Panic
b89ee6b2fc
Write tests for TreeForestTransformer
4 years ago
Chanic Panic
9c967fafb0
Add ambiguity='forest' option
4 years ago
Chanic Panic
607f984523
Create TreeForestTransformer
4 years ago
Chanic Panic
93d70e8a41
Replace ForestToTreeVisitors with ForestToParseTree
4 years ago
Chanic Panic
4adc871bf1
Add ForestTransformer
4 years ago
Chanic Panic
67ae0e2b16
Moderate updates and improvements to ForestVisitor
- add methods for visiting intermediate nodes
- add method to notify subclass of cycles
- support returning iterables of nodes from visit*node_in functions
- remove result and visit return value
- also add children property to PackedNode
4 years ago
TG-Techie
d08418e059
Merge branch 'master' into evalable_repr
4 years ago
Jonah Yolles-Murphy
6cd706279a
make Trees and Tokens' reprs' evalable
4 years ago