parseToEnd

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

Applies the receiver parser to the given input. If ignoreWhitespace is true, any whitespace at the beginning or end of the input is ignored.


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

Like parseToEnd, but with a custom parser state.