Python: module simpleparse.error

simpleparse.error | index /home/mcfletch/pylive/simpleparse/error.py

`Definition of the ParserSyntaxError raised on parse failure`

Modules
`` |  |
string |  |  |

Classes
`` |  | SyntaxError(StandardError) ParserSyntaxError
class ParserSyntaxError(SyntaxError)
`` | `Sub-class of SyntaxError for use by SimpleParse parsers Every instance will have the following attributes: buffer -- pointer to the source buffer position -- integer position in buffer where error occured or -1 production -- the production which failed expected -- string (currently taken from grammar) describing what production/element token failed to match the following will be calculated in order to display human-friendly error messages: line -- ~ text line-number or -1 lineChar -- ~ character on line where parsing failed or -1`
| Method resolution order: ParserSyntaxError SyntaxError StandardError Exception Methods defined here: __str__(self) `Create a string representation of the error` getLineCoordinate(self) `Get (line number, line character) for the error` messageFormat(self, template=None) `Create a default message for this syntax error` Data and other attributes defined here: DEFAULTTEMPLATE = 'Failed parsing production "%(production)s" @pos ...\nExpected syntax: %(expected)s\nGot text: %(text)s' buffer = '' expected = '' line = -1 position = -1 production = '' Methods inherited from SyntaxError: __init__(...) Data and other attributes inherited from SyntaxError: filename = None lineno = None msg = '' offset = None print_file_and_line = None text = None Methods inherited from Exception: __getitem__(...)