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 )
4 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 )
5 years ago
Erez Shinan
c5cb79307b
Fixes for new standalone (Issue #349 )
5 years ago
Erez Shinan
65bde7e15f
@ instead of __memo__
5 years ago
Erez Shinan
3c64c56bcd
All tests passing
5 years ago
Erez Shinan
94e15fb6f7
Mid work. Almost stable
5 years ago
Erez Shinan
d13ebb9c15
Using a mostly-generic serialization method
5 years ago
Erez Shinan
066303fdab
Serialized lark is now json compatible
5 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
6 years ago
Erez Shinan
9daacb9082
Refactored transformers, better code
6 years ago
Erez Shinan
1508dcd7c5
Refactored inline_args with smart_decorator
6 years ago
Erez Shinan
1839c324d3
Small refactoring step
6 years ago
night199uk
96e0bee87a
Allow functools partials to be used with the InlineTransformer
7 years ago
Erez Shinan
37c1c0f65f
Better error message for bad regexps (Issue #62 )
7 years ago
Erez Shinan
5ac4120b71
Stand-alone tool working for LALR+traditional lexer (first commit)
7 years ago
Erez Shinan
a588a70a7a
Added the experimental "propagate_positions" feature (only for standard lexer for now).
7 years ago
Erez Shinan
e20b54be2f
Bugfix for issue #6 . Thanks DaRasch!
7 years ago
Erez Shinan
ae2834862e
Improved README and added tree-to-pydot utility function
7 years ago
Erez Shinan
a73cc9ad90
Re-wrote the Earley parser to use a parse-forest
It now knows how to resolve ambiguity! And in a memory-efficient way!
8 years ago
Erez Shinan
d230e7744c
Pylint
8 years ago
Erez Shinan
f31482c236
Lint treatment
8 years ago
Erez Shinan
f1b2e1926c
Now supports Python3!
8 years ago
Erez Shinan
92ce395ea8
Earley & Lalr both working an generating AST. Examples now use inline_args
8 years ago
Erez Shinan
73178d6ae0
Lark big first commit. Examples working.
8 years ago