Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Ishtar::Parser Struct Reference

List of all members.

Detailed Description

A parser that is able to create a table of settings from a file or a string.


Public Member Functions

 Parser (const std::string &fileName)
 Parse content of file filename.
 Parser (const std::string &config, bool isAString)
 Parse content of string config.
std::ifstream::int_type nextChar (void)
 Return next character, increment line and column position.
Token nextToken (void)
 Return the next token, return Token::END_OF_INPUT if no more token.
bool parse (ParserTable *table)
 Parse and fill table with results.

Public Attributes

std::ifstream::int_type next
 the most recently read character
std::ifstream ifs
 active stream when using file
std::istringstream iss
 active stream when using string
std::istream * is
 stream interface pointing to the correct stream
Token token
 the most recently read token
size_t line
 line of reading in the source file
size_t column
 column of reading in the source file

Classes

struct  Token
 Tokens for lexer. More...


The documentation for this struct was generated from the following file:
Generated on Mon Oct 24 17:31:47 2005 for libishtarsettings by  doxygen 1.4.2