literal

abstract fun literal(char: Char, builder: LiteralParserBuilder.() -> Unit = {})

Parse a Char literal.

Parameters

char

the character to match

builder

configure the parser behavior

abstract fun literal(string: String, builder: LiteralParserBuilder.() -> Unit = {})

Parse a String literal.

Parameters

string

the string to match

builder

configure the parser behavior