Results 68 comments of Juancarlo Añez

It should be much easier to strip complex comments by overriding `eat_comments()`.

You can also override `eat_whitespace()` (or whatever it's called) to make things clearer.

A preprocessor is at most a macro interpreter. For actual preprocessing, you chain PEG parsers...

> And can I do that while also keeping the line numbers intact? It would take some work. The output of the first pass would not be plain text, but...

This is solved on my last comment. This is an example from the actual COBOL parser: ```python def _preprocess_block(self, name, block, **kwargs): block = uncomment_exec_sql(block) (lines, index) = super()._preprocess_block(name, block,...

I'm changing the title to leave the issue open make it a documentation request.

More examples would be good, and they will come. Many of the examples for PyParsing have been contributed by users, but it's only since the move to TatSu (from Grako)...

With the latest TatSu you only need a `NodeWalker` subclass to traverse the generated model. In my projects I write different walkers for different purposes: translation to another model, metrics,...

@conao3, I forgot to ask you to add yourself to the list of contributors in the docs...