Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::Parser Class Reference

#include <Parser.h>


Detailed Description

Definition at line 56 of file Parser.h.

List of all members.

Classes

class  KodeCreator
 Used to create the pages, rules, conditions, and actions of a Kodu program. More...
class  TokenParser

Public Member Functions

 DISALLOW_INSTANTIATION (Parser)
 Disallows anyone from creating an instance of this class.

Static Public Member Functions

static void initializeKeywordsAndDefaults ()
 Initializes all the keyword sets and default string values.
static void clearKeywordsAndDefaults ()
 Clears all the keyword sets and default string values.
static bool isValidColor (const std::string &)
 Checks if a specified string is a valid color.
static bool isValidComparisonOperator (const std::string &)
 Checks if a specified string is a valid comparison operator.
static bool isValidScoreLetter (const std::string &)
 Checks if a specified string is a valid score letter.
static bool parseAndCreateKoduProgram (std::vector< KoduPage * > &pages)

Static Public Attributes

static std::set< std::string > koduColorKeywords
 Contains all the allowable color names.
static std::set< std::string > koduCompKeywords
 Contains all the allowable comparison operators.
static std::set< std::string > koduScoreLetterKeywords
 Contains all the allowable score letters (such as Score_A, Score_B ... Score_Y, Score_Z).
static std::string koduDefaultDesignator
static std::string koduDefaultCompOperator

Member Function Documentation

void Kodu::Parser::clearKeywordsAndDefaults (  )  [static]

Clears all the keyword sets and default string values.

Definition at line 39 of file ParserKeywords.cc.

Referenced by parseAndCreateKoduProgram().

Kodu::Parser::DISALLOW_INSTANTIATION ( Parser   ) 

Disallows anyone from creating an instance of this class.

void Kodu::Parser::initializeKeywordsAndDefaults (  )  [static]

Initializes all the keyword sets and default string values.

Definition at line 13 of file ParserKeywords.cc.

Referenced by parseAndCreateKoduProgram().

bool Kodu::Parser::isValidColor ( const std::string &  str  )  [static]
bool Kodu::Parser::isValidComparisonOperator ( const std::string &  str  )  [static]

Checks if a specified string is a valid comparison operator.

Definition at line 10 of file Parser.cc.

Referenced by Kodu::Parser::KodeCreator::isComparisonOperator().

bool Kodu::Parser::isValidScoreLetter ( const std::string &  str  )  [static]

Checks if a specified string is a valid score letter.

Definition at line 14 of file Parser.cc.

Referenced by Kodu::Parser::KodeCreator::isScoreDesignator().

static bool Kodu::Parser::parseAndCreateKoduProgram ( std::vector< KoduPage * > &  pages  )  [static]

Definition at line 208 of file Parser.h.

Referenced by KoduInterpreter::InitializeAgent::ParseKode::doStart().


Member Data Documentation

std::set< std::string > Kodu::Parser::koduColorKeywords [static]

Contains all the allowable color names.

Definition at line 193 of file Parser.h.

Referenced by clearKeywordsAndDefaults(), initializeKeywordsAndDefaults(), Kodu::Parser::TokenParser::initializeKeywordSet(), and isValidColor().

std::set< std::string > Kodu::Parser::koduCompKeywords [static]

Contains all the allowable comparison operators.

Definition at line 196 of file Parser.h.

Referenced by clearKeywordsAndDefaults(), initializeKeywordsAndDefaults(), Kodu::Parser::TokenParser::initializeKeywordSet(), and isValidComparisonOperator().

Definition at line 202 of file Parser.h.

Referenced by clearKeywordsAndDefaults(), and initializeKeywordsAndDefaults().

std::set< std::string > Kodu::Parser::koduScoreLetterKeywords [static]

Contains all the allowable score letters (such as Score_A, Score_B ... Score_Y, Score_Z).

Definition at line 199 of file Parser.h.

Referenced by clearKeywordsAndDefaults(), initializeKeywordsAndDefaults(), Kodu::Parser::TokenParser::initializeKeywordSet(), and isValidScoreLetter().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:23 2016 by Doxygen 1.6.3