#include <CalcLexer.h>
Public Attributes | |
CalcTokenUnion | u |
Union of possible data types. | |
std::string | v_opcode |
String representing the OPCODE of the instruction This is not part of the union because strings cannot be part of a union. | |
std::string | v_string |
std::vector< RegisterReference * > | v_register_list |
It is used as the YYLTYPE in bison. Data types that can be part of a union are defined inside CalcTokenUnion to save space.
We use struct instead of the normal union so that we can store all objects on the stack and don't need to worry about memory allocation.
Definition at line 71 of file CalcLexer.h.
std::string CalcTokenValue::v_opcode |
String representing the OPCODE of the instruction This is not part of the union because strings cannot be part of a union.
Definition at line 77 of file CalcLexer.h.
std::string CalcTokenValue::v_string |
Definition at line 78 of file CalcLexer.h.
std::vector<RegisterReference*> CalcTokenValue::v_register_list |
Definition at line 79 of file CalcLexer.h.