tryParse

inline fun <T> ParserState.tryParse(p: Parser<T>): T?

Executes the given parser atomically. If it succeeds, the result of p is returned. If it fails, null is returned.


inline fun <T> tryParse(crossinline p: Parser<T>): Parser<T?>

Creates a tryParse parser.