Merge pull request #1626 from Sanjays2402/fix/lark-lark-line-continuation Support backslash line continuations in lark.lark
Recent Commits to lark:master
-
Merge pull request #1626 from Sanjays2402/fix/lark-lark-line-continua…
-
Merge pull request #1624 from lark-parser/merge-1622-discard-alignment
Merge pull request #1624 from lark-parser/merge-1622-discard-alignment Merge PR 1622 - fix small collision with previous PR
-
Tidy Transformer_NonRecursive: move Discard placeholder comment to th…
Tidy Transformer_NonRecursive: move Discard placeholder comment to the filter site
-
Fix Transformer_NonRecursive corrupting the tree on a non-last Discard
Fix Transformer_NonRecursive corrupting the tree on a non-last Discard When a callback returned Discard, Transformer_NonRecursive did not push a result for that node, but a parent still sliced `stack[-len(children):]`. For a discarded node that is not the last child processed, that slice over-consumed the stack and pulled an unrelated sibling into the wrong parent -- e.g. `start[keep, wrap[drop]]` came back as `start[wrap[keep]]`, silently dropping and re-parenting nodes. The base Transformer (documented to give the same result) was unaffected. Push discarded results as placeholders so every node consumes exactly `len(children)` stack slots, and filter the placeholders when building a parent's args. A wholly-discarded tree now returns None (this also covers the root-discard crash) instead of mis-unpacking an empty stack. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: chuenchen309 <48723787+chuenchen309@users.noreply.github.com>
-
Merge pull request #1623 from amkdown-max/codex/fix-python-comprehens…
Merge pull request #1623 from amkdown-max/codex/fix-python-comprehension-filters Fix Python comprehension filters after each for clause
-
Add template support to Reconstructor (#1613)
Add template support to Reconstructor (#1613) Add template support to Reconstructor Add the full template name from the children matched by the tree matcher as a meta attribute for the given child so it can be read when recursing into that child.
-
Make generated regexps deterministic across processes (#1642)
Make generated regexps deterministic across processes (#1642) Make generated regexps deterministic across processes by sorting Pattern.flags --------- Co-authored-by: Erez Shinan <erezshin@gmail.com>