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