Setting Directives: Module directives

You could configure the pyrser engine to consume some character for you.

Default ignore convention

blanks:
Default convention. Consume space,\t,\f,\r and \n silently.
null:
Consume nothing silently.
C/C++:
Like blanks but handle also C/C++ comments.
pyrser.directives.ignore.ignore_cxx(self) → bool[source]

Consume comments and whitespace characters.

class pyrser.directives.ignore.Ignore[source]

Bases: pyrser.parsing.functors.DirectiveWrapper

begin(self, parser, convention: str)[source]
end(self, parser, convention: str)[source]
ns_name = 'ignore'