parse
fun <T> Parser<T>.parse(input: String, skipWhitespace: Boolean = false): ParserResult<T>
Content copied to clipboard
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>
Content copied to clipboard
Like parse, but with a custom parser state.