withGrammar

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

Creates a child parser context with the specified grammar.