twisted.words.xish.xpathparser.Context
class documentationtwisted.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.
Create a new context.
Parameters | parent | Context object or None |
scanner | Scanner object | |
tokenpos | scanner token position (type: int ) | |
rule | name of the rule (type: str ) | |
args | tuple listing parameters to the rule |