neogeny / TatSu

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

[grammar] its not possible to specify no regex for comments or eol_comments #303

Closed apalala closed 10 months ago

apalala commented 1 year ago

In this case // is a valid regex that matches nothing. We should be able to filter for False, or None, or ().

apalala commented 10 months ago

This issue needs a unit test. Also, make sure that the default for comments in tokenizers is None.

apalala commented 10 months ago

Checked the above, and inform.ParserConfig.comments_re defaults to the value of the grammar for TatSu grammars.

apalala commented 10 months ago

This is solved by #314