OpenASIP
2.0
|
#include <ParserStructs.hh>
Public Member Functions | |
std::string | toString () const |
Public Attributes | |
std::string | label |
Name of the label. More... | |
bool | hasValue |
Is resolved value defined in struct. More... | |
UValue | value |
Resolved value. More... | |
bool | hasOffset |
Is offset defined. More... | |
bool | isMinus |
Is offset minus. More... | |
UValue | offset |
Value of offset. More... | |
Parsed expression.
Expression is label with possibly some additional information.
Form: name[(+|-)offset][=literal] e.g. myDataStructLabel+8=16, myCodeLabel=3, myDataStructLabel+8 or myDataStructLabel
Part after '=' sign is just value of label, if value is always resolved by compiler and it is also given by user values will be compared to match.
Offset can be used for example with structures, if one want's to refer different datafields.
Definition at line 198 of file ParserStructs.hh.
|
inline |
String representation of term for error message generation.
Definition at line 218 of file ParserStructs.hh.
References hasOffset, hasValue, isMinus, label, offset, and value.
Referenced by LiteralOrExpression::toString().
bool Expression::hasOffset |
Is offset defined.
Definition at line 209 of file ParserStructs.hh.
Referenced by LabelManager::resolveExpressionValue(), and toString().
bool Expression::hasValue |
Is resolved value defined in struct.
Definition at line 204 of file ParserStructs.hh.
Referenced by LabelManager::resolveExpressionValue(), and toString().
bool Expression::isMinus |
Is offset minus.
Definition at line 211 of file ParserStructs.hh.
Referenced by LabelManager::resolveExpressionValue(), and toString().
std::string Expression::label |
Name of the label.
Definition at line 201 of file ParserStructs.hh.
Referenced by CodeSectionCreator::finalize(), LabelManager::resolveExpressionValue(), toString(), InitDataField::toString(), and DataSectionCreator::writeDataLineToTPEF().
UValue Expression::offset |
Value of offset.
Definition at line 213 of file ParserStructs.hh.
Referenced by LabelManager::resolveExpressionValue(), and toString().
UValue Expression::value |
Resolved value.
Definition at line 206 of file ParserStructs.hh.
Referenced by LabelManager::resolveExpressionValue(), and toString().