OpenMW
Public Member Functions | Private Types | Private Attributes
Compiler::StringParser Class Reference

#include <stringparser.hpp>

List of all members.

Public Member Functions

 StringParser (ErrorHandler &errorHandler, Context &context, Literals &literals)
virtual bool parseName (const std::string &name, const TokenLoc &loc, Scanner &scanner)
virtual bool parseSpecial (int code, const TokenLoc &loc, Scanner &scanner)
void append (std::vector< Interpreter::Type_Code > &code)
 Append code for parsed string.
void smashCase ()
 Transform all scanned strings to lower case.
void reset ()
 Reset parser to clean state (this includes the smashCase function).

Private Types

enum  State { StartState, CommaState }

Private Attributes

LiteralsmLiterals
State mState
std::vector
< Interpreter::Type_Code
mCode
bool mSmashCase

Member Enumeration Documentation

Enumerator:
StartState 
CommaState 

Constructor & Destructor Documentation

Compiler::StringParser::StringParser ( ErrorHandler errorHandler,
Context context,
Literals literals 
)

Member Function Documentation

void Compiler::StringParser::append ( std::vector< Interpreter::Type_Code > &  code)

Append code for parsed string.

bool Compiler::StringParser::parseName ( const std::string &  name,
const TokenLoc loc,
Scanner scanner 
) [virtual]

Handle a name token.

Returns:
fetch another token?

Reimplemented from Compiler::Parser.

bool Compiler::StringParser::parseSpecial ( int  code,
const TokenLoc loc,
Scanner scanner 
) [virtual]

Handle a special character token.

Returns:
fetch another token?

Reimplemented from Compiler::Parser.

void Compiler::StringParser::reset ( ) [virtual]

Reset parser to clean state (this includes the smashCase function).

Reimplemented from Compiler::Parser.

Transform all scanned strings to lower case.


Member Data Documentation


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