Package lepl :: Package core :: Module trace
[hide private]
[frames] | no frames]

Module trace

source code

Tools for logging and tracing.
Classes [hide private]
  _TraceStack
A basic logger (implemented as a monitor - MonitorInterface) that records the flow of control during parsing.
  _RecordDeepest
A logger (implemented as a monitor - MonitorInterface) that records the deepest match found during a parse.
Functions [hide private]
 
TraceStack(enabled=False)
A basic logger (implemented as a monitor - MonitorInterface) that records the flow of control during parsing.
source code
 
RecordDeepest(n_before=6, n_results_after=2, n_done_after=2)
A logger (implemented as a monitor - MonitorInterface) that records the deepest match found during a parse.
source code
Function Details [hide private]

TraceStack(enabled=False)

source code 

A basic logger (implemented as a monitor - MonitorInterface) that records the flow of control during parsing. It can be controlled by Trace().

This is a factory that "escapes" the main class via a function to simplify configuration.

RecordDeepest(n_before=6, n_results_after=2, n_done_after=2)

source code 

A logger (implemented as a monitor - MonitorInterface) that records the deepest match found during a parse.

This is a helper function that "escapes" the main class via a function to simplify configuration.