MegaIng
3436b33885
Refactor small_factors
3 years ago
MegaIng
fa8565366b
Off-by-one fix + Change of thresholds + fix tests
3 years ago
MegaIng
b4fe22a27d
Python2.7 + comments + Magic constants
3 years ago
MegaIng
845b6fa477
Refactor + tests + additional splitting up.
3 years ago
MegaIng
b0a9afb287
Split up repeats from tilde into different rules.
3 years ago
Erez Sh
7cb8acbe54
Bugfix for deepcopy + small unrelated refactor (issue #938 )
3 years ago
Erez Sh
ec2ba8826e
Docs fix + cleanup
3 years ago
Erez Sh
6b67d5f5cd
Small adjustments to PR
4 years ago
MegaIng1
2e0e55ea2a
Added fallback to `get_regexp_width` to not fail on unsupported regex features.
4 years ago
MegaIng1
97c3202973
Make verify_used_files work with stdlib.
4 years ago
MegaIng1
0f4ca60d83
Added support for verifying imported files
4 years ago
MegaIng1
704e7552bd
Added support for atomicwrites
4 years ago
MegaIng1
2e46211fd6
A few updates to stubs ( fix #856 )
4 years ago
Erez Sh
7ce0f7015f
Added load_grammar.find_grammar_errors
4 years ago
Erez Sh
aa7dc19bc3
Corrections for PR
4 years ago
Erez Sh
284dfe7fd3
Refactored parser_frontends. Now significantly simpler
4 years ago
Erez Sh
c6819a0ed7
Refactored all likely exceptions to inherit from LarkError, and improved error messages.
4 years ago
Erez Sh
5b30ba4841
Cleanup, and a few PEP8 changes
4 years ago
julienmalard
f8b0ca3ccc
Code review 3
4 years ago
julienmalard
1b2fc2bda4
Code review #2
4 years ago
julienmalard
364f9ae3a5
Response to code review
4 years ago
julienmalard
74c94bb369
Tests now pass!
4 years ago
Peter Wienemann
e02b1b6669
Fix various typos
4 years ago
Erez Sh
88d4659c29
Improvements to puppet + other small stuff
4 years ago
Erez Sh
af3bedd39d
Adjustments to logging PR
4 years ago
MegaIng1
c93106f143
Tests for bytes parser (credit to @ctrlcctrlv )
4 years ago
Erez Sh
12d95c37af
Small fixes
4 years ago
julienmalard
382489e020
All tests pass now (local testing)
4 years ago
Erez Sh
9cc57abd8a
Added 'cache' option to Lark (Issue #479 )
5 years ago
Erez Sh
287b10504c
Added CollapseAmbiguities
5 years ago
Erez Sh
b2f1b3bf7c
Small fixes
5 years ago
Erez Sh
11cd11394f
Possibly a fix for issue #441
5 years ago
Erez Shinan
def1d2931c
Fixed partials (Issue #398 )
5 years ago
Erez Shinan
59f3a5707b
Fixed partials (Issue #398 )
5 years ago
Erez Shinan
a798dec779
Fix to new serializer code (Discussed in issue #349 )
6 years ago
Erez Shinan
c5cb79307b
Fixes for new standalone (Issue #349 )
6 years ago
Erez Shinan
65bde7e15f
@ instead of __memo__
6 years ago
Erez Shinan
3c64c56bcd
All tests passing
6 years ago
Erez Shinan
94e15fb6f7
Mid work. Almost stable
6 years ago
Erez Shinan
d13ebb9c15
Using a mostly-generic serialization method
6 years ago
Erez Shinan
066303fdab
Serialized lark is now json compatible
6 years ago
Erez Shinan
8e7c05a8f6
Added VisitError for transformers
6 years ago
night199uk
80a09697fe
Rebuild the way Earley prioritizes ambiguities
- Makes rule ordering the default ambiguity tie breaker.
E.g.
start: a | b
a: "A"
b: "A"
will return:
start
a
start: b | a
a: "A"
b: "A"
will return
start
b
- Replaces the ambiguity='resolve__antiscore_sum' with a separate option: 'priority'.
The priority option has 4 values: 'auto', 'none', 'normal', 'invert'.
'Auto' maps to 'Normal' for CYK and Earley and 'None' for LALR.
'None' filters your priorities and ignores them. This saves some extra tree walking on Earley.
'Normal' uses your priorities untouched, mimicing the old behaviour.
'Invert' negates your priorities, emulating the old 'resolve__antiscore_sum' behaviour.
This allows you to use priority logic even when ambiguity=='explicit', to get a better idea
of the shape of your tree; and to easily disable priorities without removing them from the
grammar for testing (or performance).
- ambiguity='explicit' now correctly returns an ambiguous tree again, as 0.6 did.
6 years ago
Erez Shinan
f048bfb870
Refactoring around terminals / tokens
6 years ago
Erez Shinan
53a66132ba
Added visitors & transformers to standalone (Issue #223 )
6 years ago
Erez Shinan
843da8e809
Fixed bugs in the standalone generator (Issue #212 )
6 years ago
Erez Shinan
dd69b95338
Cleanup after pylint
6 years ago
Erez Shinan
5e546f38a9
args decorators actually work now
7 years ago
Erez Shinan
9daacb9082
Refactored transformers, better code
7 years ago
Erez Shinan
1508dcd7c5
Refactored inline_args with smart_decorator
7 years ago