Class to represent the parser's call stack.

Every rule creates a Context that links to its parent rule. The contexts can be used for debugging.

Method __init__ Create a new context.
Method __str__ Undocumented
def __init__(self, parent, scanner, tokenpos, rule, args=()): (source)

Create a new context.

ParametersparentContext object or None
scannerScanner object
tokenposscanner token position (type: int)
rulename of the rule (type: str)
argstuple listing parameters to the rule
def __str__(self): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2015-11-29 11:40:45.