LexemeMatcher

A matcher that matches tokens if they were produced by a specific lexeme.

Returns true if the Lexeme that produced the Token at the current parse position is equal to the given lexeme.

Constructors

Link copied to clipboard
constructor(lexeme: Lexeme<*>)

Properties

Link copied to clipboard
val lexeme: Lexeme<*>

The Lexeme to match

Functions

Link copied to clipboard
open override fun matches(token: Token): Boolean

Tests whether the given token satisfies this matcher's criterion.