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

skCompileError Class Reference

This class encapsulates an error message from the parser, representing a syntax error in the script. More...

#include <skParseException.h>

List of all members.

Public Member Functions

 skCompileError ()
 Default constructor.

 skCompileError (const skCompileError &e)
 Copy constructor.

 skCompileError (skString location, int line_num, const skString &msg, const skString &lex_buffer)
 Constructor which is passed information about the error.

skCompileError & operator= (const skCompileError &e)
 Assignment operator.

skString location () const
 returns the location of the script, as passed into the parse() function

int lineNum () const
 shows the line number where the syntax error occurred

skString msg () const
 gives a message about the error

skString lexBuffer () const
 returns the lex buffer being handled at the time

skString toString () const
 this method returns a string representation of the whole error

bool operator== (const skCompileError &err) const
 this message compares two compile errors


Detailed Description

This class encapsulates an error message from the parser, representing a syntax error in the script.


Member Function Documentation

bool skCompileError::operator== const skCompileError &  err  )  const [inline]
 

this message compares two compile errors

Returns:
true if this message text is the same as the other message text


The documentation for this class was generated from the following file:
Generated on Fri Dec 17 20:27:35 2004 for Simkin by doxygen1.3