XPath Parser.

Besides the parser code produced by Yapps, this module also defines the parse-time exception classes, a scanner class, a base class for parsers produced by Yapps, and a context class that keeps track of the parse stack. These have been copied from the Yapps runtime.

Class SyntaxError When we run into an unexpected token, this is the exception to use
Class NoMoreTokens Another exception object, for when we run out of tokens
Class Scanner Yapps scanner.
Class Parser Base class for Yapps-generated parsers.
Class Context Class to represent the parser's call stack.
Function print_line_with_pointer Print the line of 'text' that includes position 'p', along with a second line with a single caret (^) at position p
Function print_error Print error messages, the parser stack, and the input text -- for human-readable error messages.
Function wrap_error_reporter Undocumented
Class XPathParserScanner Undocumented
Class XPathParser Undocumented
Function parse Undocumented
def print_line_with_pointer(text, p): (source)

Print the line of 'text' that includes position 'p', along with a second line with a single caret (^) at position p

def print_error(input, err, scanner): (source)

Print error messages, the parser stack, and the input text -- for human-readable error messages.

def wrap_error_reporter(parser, rule): (source)
Undocumented
def parse(rule, text): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2016-04-11 10:39:53.