MegaIng1
|
9f3ef97bd7
|
removed GrammarLoader
|
4 years ago |
MegaIng1
|
d676df9b88
|
Python2.7 compatibility
|
4 years ago |
MegaIng1
|
3bf7c6a19a
|
Completed `GrammarBuilder.check`
|
4 years ago |
MegaIng1
|
225c9e16a5
|
Added `%import` to GrammarLoader & fixed tests
|
4 years ago |
MegaIng1
|
9e545f8825
|
Basics for GrammarBuilder
|
4 years ago |
MegaIng1
|
be979f2e63
|
Added %extend for both rules and terminals.
|
4 years ago |
MegaIng1
|
5930e4ba6f
|
Added Terminal support for `%override`
|
4 years ago |
Erez Shinan
|
955e64597a
|
Merge pull request #801 from lark-parser/override_stmt
|
4 years ago |
Erez Sh
|
bcf9957575
|
Added documentation
|
4 years ago |
Erez Sh
|
1cfbb7be27
|
Added comments
|
4 years ago |
Erez Sh
|
df18e78861
|
Added %override to lark.lark
|
4 years ago |
Erez Sh
|
b379ea4b8b
|
Grammar: Added new %override statement for rewriting imported rules (like in class inheritance)
|
4 years ago |
Erez Shinan
|
452a4e175f
|
Merge pull request #799 from fuglede/patch-1
Fix reference to error_puppet example
|
4 years ago |
Søren Fuglede Jørgensen
|
cbb78b262e
|
Fix reference to error_puppet example
|
4 years ago |
Erez Shinan
|
a201d6ff53
|
Merge pull request #786 from lark-parser/julienmalard-recons_unicode_terminals
|
4 years ago |
Erez Sh
|
a7c71f32cc
|
Fixed Lark.lex(), added dont_ignore option, added tests for it.
|
4 years ago |
Erez Sh
|
7b6a730abc
|
Small bugfixes in exceptions
|
4 years ago |
Erez Shinan
|
0f2f3d71b5
|
Merge pull request #790 from unbrice/types
type stubs: A consistent type for `Token.value`
|
4 years ago |
Erez Shinan
|
f628b7facd
|
Merge pull request #789 from unbrice/master
|
4 years ago |
Brice Arnould
|
781ae59b3c
|
type stubs: A consistent type for `Token.value`
The Token's value is described as being a in the attribute list: 460a221923/lark-stubs/lexer.pyi (L84) and as `Any` in `__init__` parameters: 460a221923/lark-stubs/lexer.pyi (L91)
Yet one of the recipes, [Use a transformer to parse integer tokens](https://github.com/lark-parser/lark/blob/master/docs/recipes.md#use-a-transformer-to-parse-integer-tokens), recommends to set it to other types. So IIUC, `Any` is the correct one.
|
4 years ago |
Brice Arnould
|
d390a9c0b1
|
type stubs: fix typo
|
4 years ago |
Brice Arnould
|
b59764f898
|
type stubs: Allows `v_args` to decorate a class.
v_args is described as taking a callbable as argument: 36a7b050c1/lark-stubs/visitors.pyi (L75-L79)
Yet the documentation states it can decorate a class: 5b30ba4841/lark/visitors.py (L417-L418)
|
4 years ago |
Erez Sh
|
8953849841
|
Allow unicode in terminal names
|
4 years ago |
Erez Sh
|
423cde3da3
|
Merge branch 'recons_unicode_terminals' of https://github.com/julienmalard/lark into julienmalard-recons_unicode_terminals
|
4 years ago |
Erez Shinan
|
460a221923
|
Merge pull request #735 from fabioz/patch-2
|
4 years ago |
Erez Sh
|
36a7b050c1
|
Merge branch 'MegaIng-better-terminals'
|
4 years ago |
Erez Sh
|
aa7dc19bc3
|
Corrections for PR
|
4 years ago |
MegaIng1
|
8ec6d0f2ab
|
Correction for PR
- `user_repr` is now a method
- Fix for python 2.7
- excepts -> expected
|
4 years ago |
MegaIng1
|
17d4da7924
|
Merge branch 'master' of https://github.com/lark-parser/lark into better-terminals
Conflicts:
lark/common.py
lark/exceptions.py
lark/lexer.py
lark/load_grammar.py
lark/parser_frontends.py
|
4 years ago |
Erez Sh
|
111738b8b9
|
Revised handling of ignored tokens in xearley (Issue #768)
|
4 years ago |
Erez Shinan
|
692a950488
|
Merge pull request #781 from lark-parser/refactor_frontends
Refactored parser_frontends. Now significantly simpler
|
4 years ago |
Erez Sh
|
ed065eeb76
|
Removed duplicate line
|
4 years ago |
Erez Sh
|
679c415673
|
Small refactor to adjust PR
|
4 years ago |
Erez Sh
|
712df517b2
|
Fixes for PR. Custom lexer now works with CYK
|
4 years ago |
Erez Shinan
|
a6e5af6b80
|
Merge pull request #782 from MegaIng/master
Fix tests failing when used with `python -m unittest discover`
|
4 years ago |
MegaIng1
|
b655bd950a
|
Fix tests failing when used with `python -m unittest discover`
|
4 years ago |
Erez Sh
|
284dfe7fd3
|
Refactored parser_frontends. Now significantly simpler
|
4 years ago |
Erez Shinan
|
0cb7404ae3
|
Merge pull request #779 from lark-parser/refactor_exceptions
|
4 years ago |
Erez Sh
|
7beb681563
|
Adds stubs; cleanup
|
4 years ago |
Erez Sh
|
c6819a0ed7
|
Refactored all likely exceptions to inherit from LarkError, and improved error messages.
|
4 years ago |
Erez Sh
|
071a35d1c0
|
Merge branch 'MegaIng-grammars-lark-lark'
|
4 years ago |
Erez Sh
|
47316488dd
|
Merge branch 'grammars-lark-lark' of https://github.com/MegaIng/lark into MegaIng-grammars-lark-lark
|
4 years ago |
Erez Shinan
|
8379d784ec
|
Merge pull request #776 from MegaIng/earley_custom
|
4 years ago |
MegaIng1
|
83e896b3b8
|
Prevent test from running with old custom lexer
|
4 years ago |
MegaIng1
|
26e03b9ff8
|
Merge branch 'master' of https://github.com/lark-parser/lark into earley_custom
Conflicts:
tests/test_parser.py
|
4 years ago |
MegaIng1
|
cf9d0d915e
|
Fixes for custom lexer.
|
4 years ago |
MegaIng1
|
cf25c06420
|
Added custom lexer to earley.
|
4 years ago |
Erez Sh
|
e6dcc43478
|
Improve match_examples() for Earley (Issue #760)
|
4 years ago |
Erez Sh
|
70c233e301
|
Update links in pypi (Issue #714)
|
4 years ago |
Erez Shinan
|
b9bfdc926a
|
Merge pull request #772 from lark-parser/match_examples
|
4 years ago |