Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

parse_util.cc File Reference

Go to the source code of this file.

Functions

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)

Variables

string fileName = ""


Function Documentation

string formatError ( const Position & pos,
const string & message )
 

Returns a string of the form:

Error: <line>:<column>: <message>.

If the column number is 0, it is not included in the error line.

Definition at line 42 of file parse_util.cc.

string formatError ( const string & message )
 

Returns a string of the form:

Error: <message>.

Definition at line 56 of file parse_util.cc.

string formatError ( const ParseException & ex )
 

Returns a string of the fom:

Errro: <ex.where()>. <ex.what()>.

Definition at line 61 of file parse_util.cc.

string formatWarning ( const Position & pos,
const string & message )
 

Returns a string of the form:

Warning: <line>:<column>: <message>.

If the column number is 0, it is not included in the error line.

Definition at line 66 of file parse_util.cc.

string formatWarning ( const string & message )
 

Returns a string of the form:

Warning: <message>.

Definition at line 81 of file parse_util.cc.

void die ( const string & message )
 

Prints an error message of the form:

CppCC: <message>

then exit(1)s.

Definition at line 87 of file parse_util.cc.


Variable Documentation

string fileName = ""
 

Definition at line 40 of file parse_util.cc.


Generated at Tue Jul 9 21:05:47 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001