debug library

Debugging and profiling tools for parsers.

Classes

ProfileFrame
Encapsulates the data around a parser profile.
ProgressFrame
Encapsulates the data around a parser progress.
TraceEvent
Encapsulates the entry and exit data around a parser trace.

Functions

profile<R>(Parser<R> root, {void output(ProfileFrame frame) = print, bool predicate(Parser parser)?}) → Parser<R>
Returns a transformed Parser that, when used, measures the activation count and total time of each parser.
progress<R>(Parser<R> root, {void output(ProgressFrame frame) = print, bool predicate(Parser parser)?}) → Parser<R>
Returns a transformed Parser that, when used to read input, visually prints its progress.
trace<R>(Parser<R> root, {void output(TraceEvent event) = print, bool predicate(Parser parser)?}) → Parser<R>
Returns a transformed Parser that, when used to read input, prints a trace of all activated parsers and their respective parse results.