$search
#include <ThymioIntermediateRepresentation.h>
Public Member Functions | |
void | addButtonSet (ThymioIRButtonSet *set) |
vector< wstring >::const_iterator | beginCode () const |
int | buttonToCode (int id) const |
void | clear () |
void | compile () |
vector< wstring >::const_iterator | endCode () const |
void | generateCode () |
ThymioIRErrorCode | getErrorCode () const |
int | getErrorLine () const |
void | insertButtonSet (int row, ThymioIRButtonSet *set) |
bool | isSuccessful () const |
void | removeButtonSet (int row) |
void | replaceButtonSet (int row, ThymioIRButtonSet *set) |
void | swap (int row1, int row2) |
ThymioCompiler () | |
~ThymioCompiler () | |
Private Attributes | |
vector< ThymioIRButtonSet * > | buttonSet |
ThymioIRCodeGenerator | codeGenerator |
int | errorLine |
ThymioIRErrorType | errorType |
ThymioIRSyntaxChecker | syntaxChecker |
ThymioIRTypeChecker | typeChecker |
Definition at line 177 of file ThymioIntermediateRepresentation.h.
Aseba::ThymioCompiler::ThymioCompiler | ( | ) |
Definition at line 10 of file ThymioCompiler.cpp.
Aseba::ThymioCompiler::~ThymioCompiler | ( | ) |
Definition at line 19 of file ThymioCompiler.cpp.
void Aseba::ThymioCompiler::addButtonSet | ( | ThymioIRButtonSet * | set | ) |
Definition at line 24 of file ThymioCompiler.cpp.
vector< wstring >::const_iterator Aseba::ThymioCompiler::beginCode | ( | ) | const |
Definition at line 104 of file ThymioCompiler.cpp.
int Aseba::ThymioCompiler::buttonToCode | ( | int | id | ) | const |
Definition at line 58 of file ThymioCompiler.cpp.
void Aseba::ThymioCompiler::clear | ( | ) |
Definition at line 63 of file ThymioCompiler.cpp.
void Aseba::ThymioCompiler::compile | ( | ) |
Definition at line 114 of file ThymioCompiler.cpp.
vector< wstring >::const_iterator Aseba::ThymioCompiler::endCode | ( | ) | const |
Definition at line 109 of file ThymioCompiler.cpp.
void Aseba::ThymioCompiler::generateCode | ( | ) |
Definition at line 142 of file ThymioCompiler.cpp.
ThymioIRErrorCode Aseba::ThymioCompiler::getErrorCode | ( | ) | const |
Definition at line 73 of file ThymioCompiler.cpp.
int Aseba::ThymioCompiler::getErrorLine | ( | ) | const |
Definition at line 99 of file ThymioCompiler.cpp.
void Aseba::ThymioCompiler::insertButtonSet | ( | int | row, | |
ThymioIRButtonSet * | set | |||
) |
Definition at line 29 of file ThymioCompiler.cpp.
bool Aseba::ThymioCompiler::isSuccessful | ( | ) | const |
Definition at line 94 of file ThymioCompiler.cpp.
void Aseba::ThymioCompiler::removeButtonSet | ( | int | row | ) |
Definition at line 37 of file ThymioCompiler.cpp.
void Aseba::ThymioCompiler::replaceButtonSet | ( | int | row, | |
ThymioIRButtonSet * | set | |||
) |
Definition at line 43 of file ThymioCompiler.cpp.
void Aseba::ThymioCompiler::swap | ( | int | row1, | |
int | row2 | |||
) |
Definition at line 51 of file ThymioCompiler.cpp.
vector<ThymioIRButtonSet*> Aseba::ThymioCompiler::buttonSet [private] |
Definition at line 203 of file ThymioIntermediateRepresentation.h.
Definition at line 206 of file ThymioIntermediateRepresentation.h.
int Aseba::ThymioCompiler::errorLine [private] |
Definition at line 210 of file ThymioIntermediateRepresentation.h.
Definition at line 208 of file ThymioIntermediateRepresentation.h.
Definition at line 205 of file ThymioIntermediateRepresentation.h.
Definition at line 204 of file ThymioIntermediateRepresentation.h.