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

Class _RecordDeepest

source code


A logger (implemented as a monitor - MonitorInterface) that records the deepest match found during a parse.
Instance Methods [hide private]
 
__init__(self, n_before=6, n_results_after=2, n_done_after=2)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_log_result(self, value, text)
Modify TraceStack to record the data.
source code
 
_log_error(self, text)
Modify TraceStack to record the data.
source code
 
_log_done(self, text)
Modify TraceStack to record the data.
source code
 
record(self, is_result, text)
Record the data.
source code
 
yield_(self, value)
Display the result and reset.
source code
 
raise_(self, value)
Display the result and reset.
source code
 
__display(self)
Display the result.
source code
 
__fmt(self)
fmt the result.
source code

Inherited from _TraceStack: after_next, after_send, after_throw, before_next, before_send, before_throw, exception, fmt_done, fmt_final_result, fmt_result, fmt_stream, next_iteration, switch

Inherited from monitor.ActiveMonitor: pop, push

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, n_before=6, n_results_after=2, n_done_after=2)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

_log_result(self, value, text)

source code 
Modify TraceStack to record the data.
Overrides: _TraceStack._log_result

_log_error(self, text)

source code 
Modify TraceStack to record the data.
Overrides: _TraceStack._log_error

_log_done(self, text)

source code 
Modify TraceStack to record the data.
Overrides: _TraceStack._log_done

yield_(self, value)

source code 
Display the result and reset.
Overrides: monitor.ValueMonitor.yield_

raise_(self, value)

source code 
Display the result and reset.
Overrides: monitor.ValueMonitor.raise_