neogeny / TatSu

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

Name is not used in tatsu.to_python_sourcecode #295

Closed pressureless closed 1 year ago

pressureless commented 1 year ago

In TatSu 4.4.0, the parameter name will override the grammar name defined in @@grammar::name_in_grammar. In TatSu 5.6.1, the parameter name doesn't work, it will still use name_in_grammar

tatsu.to_python_sourcecode(grammar, name=None, filename=None, **kwargs)

pressureless commented 1 year ago

TatSu 5.7.3 works