withGrammar

abstract fun withGrammar(grammar: Grammar<T, E>): ParserContext<T, E>

Creates a child parser context with the specified grammar.