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 2016-04-04 15:02:49.