t.w.x.x.Context : class documentation

Part of twisted.words.xish.xpathparser View Source View In Hierarchy

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 2012-09-01 11:44:56.