parse

fun <T> Parser<T>.parse(input: String, skipWhitespace: Boolean = false): ParserResult<T>

Applies the receiver parser to the given input. If skipWhitespace is true, any whitespace at the beginning of the input is skipped.


fun <S : ParserState, T> S.() -> T.parse(    input: String,     skipWhitespace: Boolean = false,     state: S): ParserResult<T>

Like parse, but with a custom parser state.