parse

fun <T> Parser<T>.parse(input: String): T

Helper function to actually run the parser

Return

The typed result of parsing

Parameters

input

The string to be parsed

Throws

When unparsed input remains, or cannot be parsed at all