Parser.h File Reference#include <cstdlib>
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include "Kodu/Primitives/KoduAction.h"
#include "Kodu/Primitives/KoduActionDoNothing.h"
#include "Kodu/Primitives/KoduActionDrop.h"
#include "Kodu/Primitives/KoduActionGrab.h"
#include "Kodu/Primitives/KoduActionMotion.h"
#include "Kodu/Primitives/KoduActionPageSwitch.h"
#include "Kodu/Primitives/KoduActionPlay.h"
#include "Kodu/Primitives/KoduActionSay.h"
#include "Kodu/Primitives/KoduActionScore.h"
#include "Kodu/Primitives/KoduActionGive.h"
#include "Kodu/Primitives/KoduCondition.h"
#include "Kodu/Primitives/KoduConditionAlways.h"
#include "Kodu/Primitives/KoduConditionBump.h"
#include "Kodu/Primitives/KoduConditionGot.h"
#include "Kodu/Primitives/KoduConditionSee.h"
#include "Kodu/Primitives/KoduConditionScored.h"
#include "Kodu/Primitives/KoduConditionTimer.h"
#include "Kodu/Primitives/KoduConditionGamepad.h"
#include "Kodu/Primitives/KoduConditionHear.h"
#include "Kodu/Primitives/PerceptionSearch.h"
#include "Kodu/General/GeneralFncs.h"
#include "Kodu/General/GeneralMacros.h"
#include "Kodu/Generators/KoduGenerators.h"
#include "Kodu/Parsing/ParsedPage.h"
#include "Kodu/Parsing/ParsedPhrase.h"
#include "Kodu/Parsing/ParsedRule.h"
#include "Kodu/Parsing/Token.h"
#include "Kodu/KoduPage.h"
#include "Kodu/KoduRule.h"
Go to the source code of this file.
Define Documentation
Definition at line 62 of file Parser.h.
Referenced by Kodu::Parser::KodeCreator::createBumpKode(), Kodu::Parser::KodeCreator::createGamepadKode(), Kodu::Parser::KodeCreator::createGotKode(), Kodu::Parser::KodeCreator::createGrabKode(), Kodu::Parser::KodeCreator::createMoveKode(), Kodu::Parser::KodeCreator::createPlayKode(), Kodu::Parser::KodeCreator::createSayKode(), Kodu::Parser::KodeCreator::createScoredKode(), Kodu::Parser::KodeCreator::createScoreKode(), Kodu::Parser::KodeCreator::createSeeKode(), Kodu::Parser::KodeCreator::createTimerKode(), Kodu::Parser::KodeCreator::createTurnKode(), Kodu::Parser::KodeCreator::getActionKode(), Kodu::Parser::KodeCreator::getConditionKode(), and Kodu::Parser::TokenParser::parseTokens().
#define NON_ERR "\x1b[0m" |
#define PARSER_ASSERT |
( |
CONDITION, |
|
|
ERROR_STATEMENT |
|
) |
|
Value:if ((CONDITION) == false) { \
std::stringstream errorMessage; \
ERROR_STATEMENT; \
std::cerr << RED_ERR << errorMessage.str() << NON_ERR << std::endl; \
return NULL; \
}
Definition at line 64 of file Parser.h.
Referenced by Kodu::Parser::KodeCreator::createBumpKode(), Kodu::Parser::KodeCreator::createDropKode(), Kodu::Parser::KodeCreator::createGamepadKode(), Kodu::Parser::KodeCreator::createGotKode(), Kodu::Parser::KodeCreator::createGrabKode(), Kodu::Parser::KodeCreator::createHearKode(), Kodu::Parser::KodeCreator::createKode(), Kodu::Parser::KodeCreator::createMoveKode(), Kodu::Parser::KodeCreator::createPlayKode(), Kodu::Parser::KodeCreator::createSayKode(), Kodu::Parser::KodeCreator::createScoredKode(), Kodu::Parser::KodeCreator::createScoreKode(), Kodu::Parser::KodeCreator::createSeeKode(), Kodu::Parser::KodeCreator::createTimerKode(), Kodu::Parser::KodeCreator::createTurnKode(), Kodu::Parser::KodeCreator::getActionKode(), Kodu::Parser::KodeCreator::getConditionKode(), Kodu::Parser::KodeCreator::numericGenParser(), Kodu::Parser::TokenParser::parseTokens(), and Kodu::Parser::TokenParser::tokenize().
#define RED_ERR "\x1b[31m" |
#define YEL_ERR "\x1b[33m" |
|