Erez Shinan
b83bac48bd
BUGFIX: Indenter was in corrupt state when parse failed (Issue #316 )
6 years ago
Erez Shinan
d2f55fe3ba
BUGFIX: Fixed common.ESCAPED_STRING (Issue #309 )
6 years ago
Erez Shinan
f8486a02b0
Minor cleanup
6 years ago
Erez Shinan
a1774cad72
Merge branch 'master' into 0.7d
6 years ago
Erez Shinan
899f69a94b
Temporarily silence test_earley3 and test_earley4 (priority in terminals)
6 years ago
Erez Shinan
13ddc43782
Version bump
6 years ago
Erez Shinan
c4f8483c09
Small fix
6 years ago
Erez Shinan
688c453456
Corrections
6 years ago
Erez Shinan
989dd9c498
Merge branch 'master' into 0.7d
6 years ago
Erez Shinan
8cc53379ec
Merge branch 'Zac-HD-patch-1'
6 years ago
Erez Shinan
225845b331
Fixed message
6 years ago
Erez
727869efba
Merge branch 'patch-1' of https://github.com/Zac-HD/lark into Zac-HD-patch-1
6 years ago
Erez
608395cd4d
Improved docs
6 years ago
Erez Shinan
934a997f83
Clean up
6 years ago
Erez Shinan
862a853340
More cleanup of Earley duplication
6 years ago
Zac Hatfield-Dodds
23feacad05
Note non-standard JSON grammar in tutorial
Closes #305 .
6 years ago
Erez Sh
4de71293e5
More cleanup
6 years ago
Erez Sh
57a602758d
Merged part of Earley & XEarley implementation. Major reduction
6 years ago
Erez Shinan
65d3212bed
Temporarily disable leo transitives
6 years ago
Erez Shinan
d4f069588d
Improved docs
6 years ago
Erez Shinan
8e7c05a8f6
Added VisitError for transformers
6 years ago
Erez Shinan
00510edee6
Added a nicer error for duplicate rules
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
beb1ff364b
Merge pull request #297 from evandrocoan/tox_postargs_option
Added tox.ini posargs option, you can pass arguments to unit tests
6 years ago
evandrocoan
8b77c89ff2
Added tox.ini posargs option, you can pass arguments to unit tests
https://stackoverflow.com/questions/35697353/how-to-run-only-one-test-in-tox
6 years ago
Erez Shinan
4cba8f87ae
Merge pull request #294 from evandrocoan/add_tox_to_gitignore
Added .tox to .gitignore (to use tox locally)
6 years ago
Erez Shinan
14c83ec9e5
Merge pull request #295 from evandrocoan/fix_misspelling
Fix misspelling on lark/lark.py documentation
6 years ago
night199uk
a543eeb162
Fix assert on empty options for a Rule
6 years ago
night199uk
64992aa49c
Fix a performance regression on Rules related to empties
6 years ago
evandrocoan
6c013b9a1d
Fix misspelling on lark/lark.py documentation
6 years ago
evandrocoan
d5cf6b1ef1
Added .tox to .gitignore (to use tox locally)
6 years ago
night199uk
80964e903b
Simplify the way we create Leo sets
Avoids recursion and improves performance slightly
6 years ago
night199uk
d74781605d
Fix Ambiguous Expander problems with nested ambiguities
6 years ago
night199uk
ea536820a5
Fix propogate positions for Earley
6 years ago
night199uk
72118eaf8c
Disable some debug that crept in
6 years ago
night199uk
1f5abfc937
Fix Propagate Positions
6 years ago
Erez Shinan
085eba3b8e
Merge branch 'master' into 0.7c
Update from latest 0.6
6 years ago
Erez Shinan
534114309f
Merge pull request #293 from evandrocoan/trimmed_whitespaces
Trimmed whitespaces and ensured a new line on the end of the file
6 years ago
evandrocoan
48351c3d3e
Trimmed whitespaces and ensured a new line on the end of the file
6 years ago
Erez Shinan
467483553b
Fixed placeholder code, should work as expected (Issue #285 )
6 years ago
Erez Shinan
adb30180aa
maybe_placeholder now doesn't apply to anonymous terminals
6 years ago
Erez Shinan
641fec43ce
@v_args at function level now takes precedent over class level
6 years ago
Erez Shinan
222df5bab4
New Feature: Added maybe_placeholders option (Issue #285 )
6 years ago
Erez Shinan
2abfcd6c51
Merge pull request #292 from Haski-server/patch-1
number add BIN_NUMBER
6 years ago
Haski-server
c2a5f09ad5
number add BIN_NUMBER
Without BIN_NUMBER, the following error occurs:
lark.exceptions.UnexpectedCharacters: No terminal defined for 'b' at line 1 col 2
0b10
^
6 years ago
Erez Shinan
76e185a36c
Added the Forest interface for explicit ambiguity
6 years ago
Erez Shinan
c968e212ff
Added Chris' changes, Dec 2018
Merge remote-tracking branch 'origin/0.7b' into 0.7b
6 years ago
Erez Shinan
870a7611cb
Merge pull request #290 from night199uk/0.7b-joop
Implement Joop Leo's optimisations for right recursion
6 years ago
night199uk
04d90fa916
Implement Joop Leo's optimizations for right recursion performance
6 years ago
night199uk
637f121109
Cleanup unused Derivation
6 years ago