ignore

Anything that matches the given recognizer (or pseudo-recognizer) exactly will be ignored when encountered. This would be equivalent to a isToken that does not actually create any token.

The matched sequence is skipped entirely by the lexer. No output is emitted whatsoever.

The given recognizer or pseudo-recognizer can be anything that toRecognizer supports.

Return

A matcher environment that will produce a matcher that will make the lexer ignore anything that it matches.