parse

fun <T> parse(symbol: Symbol<T>, text: String, whitespace: List<Char> = DEFAULT_WS): ParseResult<T>

Parse text with defined whitespace to get symbol using packrat parser.

It returns ParseResult instance, which is either Right(value) on success or Left(parse errors) otherwise.

Sources

JVM source
Link copied to clipboard