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

Class _TraceStack

source code


A basic logger (implemented as a monitor - MonitorInterface) that records the flow of control during parsing. It can be controlled by Trace().
Instance Methods [hide private]
 
__init__(self, enabled=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
next_iteration(self, epoch, value, exception, stack)
Store epoch and stack size.
source code
 
before_next(self, generator)
Log when enabled.
source code
 
after_next(self, value)
Log when enabled.
source code
 
before_throw(self, generator, value)
Log when enabled.
source code
 
after_throw(self, value)
Log when enabled.
source code
 
before_send(self, generator, value)
Log when enabled.
source code
 
after_send(self, value)
Log when enabled.
source code
 
exception(self, value)
Log when enabled.
source code
 
fmt_result(self, value)
Provide a standard fmt for the results.
source code
 
fmt_done(self)
Provide a standard fmt for failure.
source code
 
fmt_stream(self)
Provide a standard fmt for location.
source code
 
yield_(self, value)
Log when enabled.
source code
 
raise_(self, value)
Log when enabled.
source code
 
fmt_final_result(self, value)
Provide a standard fmt for the result.
source code
 
_log_result(self, value, text)
Record a result.
source code
 
_log_error(self, text)
Record an error.
source code
 
_log_done(self, text)
Record a "stop".
source code
 
switch(self, increment)
Called by the Trace matcher to turn this on and off.
source code

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, enabled=False)
(Constructor)

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

next_iteration(self, epoch, value, exception, stack)

source code 
Store epoch and stack size.
Overrides: monitor.ValueMonitor.next_iteration

before_next(self, generator)

source code 
Log when enabled.
Overrides: monitor.ValueMonitor.before_next

after_next(self, value)

source code 
Log when enabled.
Overrides: monitor.ValueMonitor.after_next

before_throw(self, generator, value)

source code 
Log when enabled.
Overrides: monitor.ValueMonitor.before_throw

after_throw(self, value)

source code 
Log when enabled.
Overrides: monitor.ValueMonitor.after_throw

before_send(self, generator, value)

source code 
Log when enabled.
Overrides: monitor.ValueMonitor.before_send

after_send(self, value)

source code 
Log when enabled.
Overrides: monitor.ValueMonitor.after_send

exception(self, value)

source code 
Log when enabled.
Overrides: monitor.ValueMonitor.exception

yield_(self, value)

source code 
Log when enabled.
Overrides: monitor.ValueMonitor.yield_

raise_(self, value)

source code 
Log when enabled.
Overrides: monitor.ValueMonitor.raise_