TokenRecognizerIgnored

class TokenRecognizerIgnored(val recognizer: TokenRecognizer, nextStateBehavior: NextStateBehavior) : TokenMatcher

A type of matcher that ignores anything that matches the recognizer and provides no result otherwise.

Constructors

Link copied to clipboard
constructor(recognizer: TokenRecognizer, nextStateBehavior: NextStateBehavior)

Functions

Link copied to clipboard
open override fun match(s: String, startAt: Int): MatcherResult

This function determines whether the string s, starting at the index startAt (inclusive), matches some pattern. The exact pattern is dependent on the implementation.

Properties

Link copied to clipboard

The recognizer this matcher will use