char

inline fun ParserState.char(vararg expected: Char): Char

Consumes the next character and fails if it is not in the given list of expected characters. If the list of expected characters is empty, the parser will match any character.


inline fun char(vararg expected: Char): ParserState.() -> Char

Creates a ParserState.char parser.


var char: Parser<Char>

Creates a parser which matches exactly one character.