BoolStuff 0.1

boolstuff::BoolExprParser::Error Class Reference

Error descriptor. More...

#include <BoolExprParser.h>

List of all members.

Public Types

enum  Code { GARBAGE_AT_END, RUNAWAY_PARENTHESIS, IDENTIFIER_EXPECTED, STRING_EXPECTED = IDENTIFIER_EXPECTED }
 

Possible error codes returned by the parser.

More...

Public Member Functions

 Error (size_t i, Code c)
 Initializes an error object with the given index and error.

Public Attributes

size_t index
 Index (>=0) in the input string where the error was detected.
Code code
 Code that gives the type of the error.

Detailed Description

Error descriptor.


Member Enumeration Documentation

Possible error codes returned by the parser.

Enumerator:
GARBAGE_AT_END 

Unexpected characters follow the position that the parser views as the end of the expression.

RUNAWAY_PARENTHESIS 

An opening parenthesis has no corresponding closing parenthesis.

IDENTIFIER_EXPECTED 

A variable identifier was expected.

Until version 0.1.11 of this library, this enumerated name was STRING_EXPECTED, but the term "string" was too general.

STRING_EXPECTED 

Deprecated older enumerated name for IDENTIFIER_EXPECTED.


Member Data Documentation

Index (>=0) in the input string where the error was detected.


The documentation for this class was generated from the following file:

Generated for BoolStuff by doxygen 1.7.3