Utility function to render a given parser position for error reporting and debug purposes.
This is a version specific for char parsers.
Note: it will fall back to core version (one token per line) in case any multicharacter tokens are present.
A multiline string.
Data object (tokens and options).
Parser position in the tokens array.
How many tokens (characters) around the current one to render.
Generated using TypeDoc
Utility function to render a given parser position for error reporting and debug purposes.
This is a version specific for char parsers.
Note: it will fall back to core version (one token per line) in case any multicharacter tokens are present.
Returns
A multiline string.