CalcTokenValue Struct Reference

CalcTokenValue is the data type of the sematic values of the tokens. More...

#include <CalcLexer.h>

List of all members.

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


Detailed Description

CalcTokenValue is the data type of the sematic values of the tokens.

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.


Member Data Documentation

CalcTokenUnion CalcTokenValue::u

Union of possible data types.

Definition at line 74 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.


The documentation for this struct was generated from the following file:
Generated on Mon Jun 22 04:00:28 2009 for Fennel by  doxygen 1.5.1