Merge pull request #1596 from SAY-5/fix-template-in-terminal-error fix: raise GrammarError for template usage inside terminals
Recent Commits to lark:master
-
Merge pull request #1596 from SAY-5/fix-template-in-terminal-error
-
fix: raise GrammarError for template usage inside terminals
fix: raise GrammarError for template usage inside terminals
-
Merge pull request #1591 from lark-parser/issue1186
Merge pull request #1591 from lark-parser/issue1186 Make Lark generic on transformer return type
-
Fixes for coverage
Fixes for coverage
-
Make Lark generic on transformer return type (fixes #1186)
Make Lark generic on transformer return type (fixes #1186) Lark is now Generic[_Return_T]. Two @overload stubs on __init__ bind _Return_T to the transformer's output type when a transformer= is passed, or to ParseTree otherwise. parse() return type follows. Also includes type-only tests.
-
Test serialized transformer state
Test serialized transformer state
-
Miscellaneous improvements to the behavior and documentation of Visit…
Miscellaneous improvements to the behavior and documentation of Visitor, Transformer, Interpreter, and friends (#1543) * tweak docs * add missing docstrings, have decorators error when used incorrectly * add tests for changed behavior * remove implementation of visit_topdown * revert changes to _visitor_args_dec * remove associated tests * remove more bad tests i added also tweak new test for decorator use * factor repeated test * Small phrasing update --------- Co-authored-by: Erez Shinan <erezshin+git@gmail.com>
-
Merge pull request #1586 from Kache/v_args-type-hint
Merge pull request #1586 from Kache/v_args-type-hint Fix type hint of @v_args() decorator