neogeny / TatSu

竜 TatSu generates Python parsers from grammars in a variation of EBNF
https://tatsu.readthedocs.io/
Other
408 stars 48 forks source link

Arguments passed to NodeWalker are not passed correctly if Node is a list instance. #279

Closed by-Exist closed 2 years ago

by-Exist commented 2 years ago

The current walk's behavior is: If "Node" returns walker(node, *args, **kwargs). For "list[Node]" returns [self.walk(n) for n in node].

I think that args and kwargs should be passed even in the form of list[Node].