expect
fun <T> ExpectationReceiver<T>.expect(tokenType: TokenType, withValue: String? = null): ExpectationStateCallbackBuilder<T, String>
Adds an expectation to this node descriptor based on a token type.
A token of the given token type is expected at this point.
infix fun <T, R> ExpectationReceiver<T>.expect(node: ParserNodeDeclaration<R>): ExpectationStateCallbackBuilder<T, R>
Adds an expectation to this node descriptor based on a node
A chain of tokens that corresponds to the given node is expected at this point