Part of twisted.words.xish View Source
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 |