Erez Sh
|
9230c67d28
|
Grammar: Added support for line breaks, using \\
|
3 years ago |
Erez Sh
|
d26a1c5bc6
|
BUGFIX: Regression in lexer-only mode (parser=None)
|
3 years ago |
MegaIng
|
e0889a3cf3
|
Sort Options inside a TerminalTree
|
3 years ago |
Erez Sh
|
b3816b9a90
|
Added utility function: List grammar imports + test
|
3 years ago |
Erez Sh
|
f5c7af8ce9
|
Proposed corrections to PR #970
|
3 years ago |
MegaIng
|
3a4568df24
|
Reworked grammar to simplify later processing + expand_kids_by_data + tests
|
3 years ago |
MegaIng
|
c9c33423fc
|
Fix recursion error for many options in Terminal
|
3 years ago |
Erez Sh
|
90460f31d9
|
Refactored PR #949 and edited the comments/docstrings
|
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 |
MegaIng
|
bdcd2e0011
|
fix tree_matcher when keep_all_tokens=True by setting sym.filter_out correctly.
|
3 years ago |
Erez Sh
|
44a20c850e
|
Small fix
|
3 years ago |
MegaIng
|
c44bb3e0cd
|
Raise a GrammarError on empty string literal.
|
3 years ago |
Aaron Tsang
|
11eafa3e9e
|
Support 32bit unicode escape sequence
|
4 years ago |
MegaIng1
|
97c3202973
|
Make verify_used_files work with stdlib.
|
4 years ago |
Erez Sh
|
2a1b03bc65
|
Rename ParserPuppet -> InteractiveParser
|
4 years ago |
MegaIng1
|
0f4ca60d83
|
Added support for verifying imported files
|
4 years ago |
Erez Sh
|
e56efad1fe
|
Raise correct error when terminal is used within another terminal, by not defined
|
4 years ago |
Erez Sh
|
7ce0f7015f
|
Added load_grammar.find_grammar_errors
|
4 years ago |
Erez Sh
|
a169f0b354
|
Better error messages
|
4 years ago |
Erez Sh
|
d2348168bf
|
Small refactor
|
4 years ago |
Erez Sh
|
1d61de4f94
|
Fix .pyi files
|
4 years ago |
Erez Sh
|
fd3be9d8d6
|
Brought back the removal of unused rules/terminals in imported grammars
|
4 years ago |
Erez Sh
|
8cfe52fb77
|
Examples: Added example of extending the Python grammar
|
4 years ago |
Erez Sh
|
58c9435e80
|
Refactored and added grammar tests
|
4 years ago |
Erez Sh
|
d18e009fa4
|
PR refactor: Simplified load_grammar
|
4 years ago |
MegaIng1
|
b6b31548ca
|
Fix for review + Removed unused functions
|
4 years ago |
MegaIng1
|
5db3003edb
|
Updated stubs
|
4 years ago |
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 Sh
|
1cfbb7be27
|
Added comments
|
4 years ago |
Erez Sh
|
b379ea4b8b
|
Grammar: Added new %override statement for rewriting imported rules (like in class inheritance)
|
4 years ago |
Erez Sh
|
8953849841
|
Allow unicode in terminal names
|
4 years ago |
MegaIng1
|
8ec6d0f2ab
|
Correction for PR
- `user_repr` is now a method
- Fix for python 2.7
- excepts -> expected
|
4 years ago |
Erez Sh
|
679c415673
|
Small refactor to adjust 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
|
364f9ae3a5
|
Response to code review
|
4 years ago |
julienmalard
|
74c94bb369
|
Tests now pass!
|
4 years ago |
MegaIng1
|
bc9ed5376d
|
made error message contain actual source code
make _all_terminals a dict
added raw attribute to Pattern
rename nice_print -> user_repr
|
4 years ago |
MegaIng1
|
605b91e4be
|
improve error message with token source.
rename LexerConf.terminals to LexerConf.tokens
Make Exception message generation lazy
Made a few classes new-style
|
4 years ago |