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)
API Documentation for Twisted, generated by pydoctor at 2016-07-06 22:44:36.