Skip to content

Add template support to Reconstructor#1613

Open
Iluvatar wants to merge 1 commit into
lark-parser:masterfrom
Iluvatar:issue1500
Open

Add template support to Reconstructor#1613
Iluvatar wants to merge 1 commit into
lark-parser:masterfrom
Iluvatar:issue1500

Conversation

@Iluvatar

Copy link
Copy Markdown

Trees generated by the parser don't retain template information in their token names, so Reconstructor was trying to match the tree using the non-templated name, which caused an error.

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.

This fixes #1500

Trees generated by the parser don't retain template information in
their token names, so Reconstructor was trying to match the tree
using the non-templated name, which caused an error.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python reconstructor list comprehension error

1 participant