Go to the source code of this file.
Compounds | |
| struct | t_Position |
| struct | t_CodeChunk |
| class | ParseException |
Typedefs | |
| typedef struct t_Position | Position |
| typedef struct t_CodeChunk | CodeChunk |
Functions | |
| ostream& | operator<< (ostream &os, const Position &pos) |
| string | formatError (const Position &pos, const string &message) |
| string | formatError (const string &message) |
| string | formatError (const ParseException &ex) |
| string | formatWarning (const Position &pos, const string &message) |
| string | formatWarning (const string &message) |
| void | die (const string &message) |
|
|
|
This structure keeps a chunk of user code and the starting position in the file from where it came from (we use the positions to generate the line thingies. |
|
|
Definition at line 119 of file parse_util.hh. |
|
|
Returns a string of the form:
If the column number is 0, it is not included in the error line. |
|
|
Returns a string of the form:
|
|
|
Returns a string of the fom:
Definition at line 61 of file parse_util.cc. Referenced by IEbnfNodeBuilder_createTerminalNode(), IParserSpec_addProduction(), IScannerSpec_addKeywordToken(), IScannerSpec_addMoreToken(), IScannerSpec_addRegToken(), IScannerSpec_addSkipToken(), IScannerSpec_addSpecialToken(), MacroTokenExpander_getMacro(), OptionsRecorder_setBoolOption(), OptionsRecorder_setIntOption(), OptionsRecorder_setStringOption(), DfaReNodeBuilder::createCharListNode(), formatError(), main(), LexYaccParser::parse(), CppCcDriver::run(), and yyerror().
|
|
|
Returns a string of the form:
If the column number is 0, it is not included in the error line. |
|
|
Returns a string of the form:
Definition at line 81 of file parse_util.cc. Referenced by MacroTokenExpander::addMacro(), LaEpDeclWriter::operator()(), EbnfLl1CheckAlgo::warn(), LaParserWriter::writeProductionLaDecls(), ScannerDfaWriter::writeScanner(), and yywarn().
|
|
|
Prints an error message of the form:
then exit(1)s. Definition at line 87 of file parse_util.cc. Referenced by IEbnfNodeBuilder_createTerminalNode(), IParserSpec_addProduction(), IScannerSpec_addKeywordToken(), IScannerSpec_addMoreToken(), IScannerSpec_addRegToken(), IScannerSpec_addSkipToken(), IScannerSpec_addSpecialToken(), MacroTokenExpander_getMacro(), OptionsRecorder_setBoolOption(), OptionsRecorder_setIntOption(), OptionsRecorder_setStringOption(), DfaReNodeBuilder::createCharListNode(), cw_die(), main(), Writer::openStream(), LexYaccParser::parse(), CppCcDriver::run(), yyerror(), and yywarn().
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001