58 stream_(assemblerFile), mach_(&assemblerMachine) {
85 __FILE__, __LINE__,
__func__,
"Syntax error.");
154const std::set<CompilerMessage>&
176 asmCode_ = std::make_shared<std::string>();
TTAMachine::Machine * mach_
Machine for assembled TPEF.
Assembler(TPEF::BinaryStream &assemblerFile, TTAMachine::Machine &assemblerMachine)
AssemblyParserDiagnostic parserDiagnostic_
Parser messages.
TPEF::BinaryStream & stream_
File containing file to assemble.
const CompilerMessage & error() const
std::string codeLine(UValue lineNumber) const
std::shared_ptr< std::string > asmCode_
String containing code to compile.
const std::set< CompilerMessage > & warnings() const
const TTAMachine::Machine & targetMachine() const
CompilerMessage error_
Last thrown error message.
void addWarning(UValue lineNumber, std::string errorMessage)
std::string codeLine(UValue lineNumber) const
const std::set< CompilerMessage > & warnings() const
void reset(std::shared_ptr< const std::string > assemblyText)
void addWarning(UValue lineNumber, const std::string &message)
static std::string toString(const T &source)
std::string errorMessage() const
void setReadPosition(unsigned int position)
unsigned int readPosition()
unsigned int sizeOfFile()
bool isLittleEndian() const
void finalize(bool littleEndian) const
bool compile(const std::string &asmCode) const
std::string message
Message.
std::string assemblerLine
Assembly code line number.
UValue lineNumber
Message generation line number.