Gets or creates a parser state instance scoped to the current leaf processing pass.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public TState GetParserState<TState>(InlineParser parser, Func<TState> factory)
where TState : class
The parser requesting the state.
A factory used to create a state instance when none exists yet.