Erez Sh
e4d73526d4
Refactor
4 years ago
MegaIng1
ab5bc3f47e
Improved comment
4 years ago
MegaIng1
dcde0bcbe9
Prevent terminals from being filtered out when used in always_accept
4 years ago
MegaIng1
3112259b23
Fix for maybe_placeholders when keep_all_tokens=True
4 years ago
MegaIng1
a4260110ff
added PackageResource
4 years ago
MegaIng1
f7d466dc7d
added PackageResource
4 years ago
MegaIng1
a50fc10773
import_paths->sources, source->source_path, various implementation changes
4 years ago
MegaIng1
009cc10590
Added `FromPackageLoader` and `open_from_package`
4 years ago
MegaIng1
c9b5443127
Fix for python2.7
4 years ago
MegaIng1
53b3e12bba
Added `import_sources`
4 years ago
Erez Sh
968d1652d8
Fixed issue in grammar error-reporting due to unordered dict (changed it to list)
4 years ago
Erez Sh
fe89296193
Improved load_grammar's error messages, and added tests
4 years ago
Erez Sh
b601525798
Added logger.debug() prints for unused rules and terminals ( #658 )
4 years ago
decorator-factory
2525e0ce9c
formatting: fix pistol operator
4 years ago
decorator-factory
8b59a16425
refactor: replace dict lookup with simple conditional
4 years ago
decorator-factory
9923987e94
allow multiline regexes with 'x' (verbose) flag
4 years ago
Erez Sh
c96adbd1e8
Small refactor
4 years ago
MegaIng1
9ab02b465c
Added comment with explanation
4 years ago
MegaIng1
3d3bf69403
Added support of expansions
4 years ago
MegaIng1
e6fc3c9b00
Added possibility for terminals with different flags to be joined in python3.6+
4 years ago
Erez Sh
7dc00179e6
Lark now loads faster
- Refactored lexer interface into LexerConf
- Lexer now compiles regexps only when used (especially useful for ContextualLexer)
- Lexer now doesn't validate on deserialize (noticable speedup)
4 years ago
julienmalard
5d01f0ae68
test keep tokens in reconstructor works
4 years ago
julienmalard
86a162d6d8
Added `regex` module as optional mode.
4 years ago
Erez Sh
3bee21051e
Reverted changes regarding EOF
4 years ago
Erez Sh
dcc98241c1
Improved handling and performance of large grammars
4 years ago
Erez Sh
fb00e6a134
Added visitors.Transformer_NonRecursive. Improved support for big grammars (issue #550 )
4 years ago
MegaIng1
1b5ffc0660
Added the ability to use templates as template arguments. Error reporting should still be horrible.
4 years ago
MegaIng1
40148d310c
fix for python2.7
4 years ago
MegaIng1
20a2f690ca
Correct behaviour of aliases for templates (attempt 2)
4 years ago
MegaIng1
3861ee7e07
Correct behaviour of aliases for templates
4 years ago
MegaIng1
2daca647d4
Unified rules and templates
4 years ago
MegaIng1
8bf5da697a
Added test for template imports and implemented them
4 years ago
MegaIng1
0c1c48411d
Added test for recursive templates + implemented them
4 years ago
MegaIng1
b8f8448a0b
Implemented Templates
4 years ago
MegaIng1
1f79a8dfce
Added template syntax
4 years ago
Erez Sh
cf7479f186
Post-merge fixed for end_symbol, + two more tests (Issue #237 )
5 years ago
Erez Sh
3688b0053b
Disallow '. .' for '..' syntax (Issue #513 )
5 years ago
Erez Sh
182385d7b7
Removed bad syntax: *? and +? no longer accepted by the grammar parser (Issue #511 )
5 years ago
Erez Sh
fcdba441b4
Better error message for reduce/reduce conflict (Issue #135 )
5 years ago
Erez Sh
5682dcc57a
Added python_bytecode example + Tiny bugfix
5 years ago
Erez Sh
b2f1b3bf7c
Small fixes
5 years ago
Erez Sh
b9c81a5450
Refactor: Simplify code by assuming rule.options is never None
5 years ago
Jussi Laasonen
2de7e34766
Open imported grammars with UTF-8 encoding
5 years ago
Mike Roberts
ed3c131ca8
Allow comments in rule definitions
5 years ago
Erez Sh
17b6d6d3b3
BUGFIX for declared terminals
5 years ago
Erez Sh
f566a3618b
Bugfix: Lark now throws an error for recursive terminals (Issue #264 )
5 years ago
Erez Shinan
571bb400e3
Bugfix for regression (Issue #445 )
5 years ago
Erez Shinan
f06a83a8a7
Better error for literal with bad escaping (Issue #287 )
5 years ago
Erez Sh
56978206a3
No longer confusing aliases and rules when importing (Issue #433 )
5 years ago
night199uk
dc94ebc42f
Fix Earley non-determinism
Rule.order should be set as the index of each expansion with rules
of the same name (e.g: a : b # rule.order 1 | c # rule.order 2).
5 years ago