Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::Parser::TokenParser Class Reference

#include <Parser.h>


Detailed Description

Definition at line 148 of file Parser.h.

List of all members.

Static Public Member Functions

static bool parseTokens (const std::vector< std::string > &, std::vector< ParsedPage * > &)
 Parses the retrieved Kodu code into the appropriate data structures.
static bool readText (std::vector< std::string > &)
 Reads the Kodu written code from a file.

Private Member Functions

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

Static Private Member Functions

static int contains (const std::vector< TokenBase * > &, const std::string &)
 Returns the index of the search item.
static bool tokenize (const std::string &, std::vector< TokenBase * > &)
 Returns a vector of tokens parsed from a string.
static void clearKeywordSet ()
 Clear the keyword set (it's no longer needed after parsing).
static void initializeKeywordSet ()
 Initializes the keyword set.

Static Private Attributes

static std::set< std::string > koduKeywords
 Contains all the allowable Kodu "keywords".

Member Function Documentation

void Kodu::Parser::TokenParser::clearKeywordSet (  )  [static, private]

Clear the keyword set (it's no longer needed after parsing).

Definition at line 128 of file TokenParserKeywords.cc.

Referenced by parseTokens().

int Kodu::Parser::TokenParser::contains ( const std::vector< TokenBase * > &  tokens,
const std::string &  searchItem 
) [static, private]

Returns the index of the search item.

Definition at line 278 of file TokenParser.cc.

Referenced by parseTokens().

Kodu::Parser::TokenParser::DISALLOW_INSTANTIATION ( TokenParser   )  [private]

Disallows anyone from creating an instance of this class.

void Kodu::Parser::TokenParser::initializeKeywordSet (  )  [static, private]

Initializes the keyword set.

Definition at line 11 of file TokenParserKeywords.cc.

Referenced by parseTokens().

bool Kodu::Parser::TokenParser::parseTokens ( const std::vector< std::string > &  koduStrings,
std::vector< ParsedPage * > &  parsedPages 
) [static]

Parses the retrieved Kodu code into the appropriate data structures.

Definition at line 5 of file TokenParser.cc.

Referenced by Kodu::Parser::parseAndCreateKoduProgram().

bool Kodu::Parser::TokenParser::readText ( std::vector< std::string > &  koduStrings  )  [static]

Reads the Kodu written code from a file.

Definition at line 259 of file TokenParser.cc.

Referenced by Kodu::Parser::parseAndCreateKoduProgram().

bool Kodu::Parser::TokenParser::tokenize ( const std::string &  kString,
std::vector< TokenBase * > &  tokens 
) [static, private]

Returns a vector of tokens parsed from a string.

Definition at line 9 of file Tokenize.cc.

Referenced by parseTokens().


Member Data Documentation

std::set< std::string > Kodu::Parser::TokenParser::koduKeywords [static, private]

Contains all the allowable Kodu "keywords".

Definition at line 158 of file Parser.h.

Referenced by clearKeywordSet(), initializeKeywordSet(), and tokenize().


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