IgnoringMatcherBuilder

A DSL environment for constructing ignoring matchers. This builds into a TokenRecognizerIgnored.

Constructors

Link copied to clipboard
constructor(baseRecognizer: TokenRecognizer)

Functions

Link copied to clipboard
open override fun build(): TokenMatcher
Link copied to clipboard
infix fun thenState(default: StateBuilder.Default)

Specifies that, once a match is found, the lexer should go to the default state.

infix fun thenState(next: StateLabel)

Specifies that, once a match is found, the lexer should use the given state next. Valid values are:

Properties

Link copied to clipboard

The original recognizer that should be used by the matcher that will be built