Token Struct Reference

#include <scanner.h>

List of all members.


Detailed Description

token as value type

Definition at line 81 of file scanner.h.


Public Member Functions

 Token ()
 Token (EToken type_, int lineno_, int numberInt_, double numberDouble_, const std::string &text_)

Public Attributes

EToken type
 type of token
int lineno
 line number in source code
int numberInt
 value - only for ETOKEN_NUMBER_INT
double numberDouble
 value - only for ETOKEN_NUMBER_DOUBLE
std::string text
 value - only for ETOKEN_ID and ETOKEN_STRING

Constructor & Destructor Documentation

Token (  )  [inline]

Definition at line 89 of file scanner.h.

Token ( EToken  type_,
int  lineno_,
int  numberInt_,
double  numberDouble_,
const std::string &  text_ 
) [inline]

Definition at line 96 of file scanner.h.


Member Data Documentation

EToken type

type of token

Definition at line 82 of file scanner.h.

Referenced by CalleeSet::add(), BinaryCmd::aluOp(), BinaryCmd::chkTypes(), CmdFactory::createAssign(), CmdFactory::createBinary(), CmdFactory::createPush(), CmdFactory::createUnary(), BinaryCmd::divide(), Builder::evalUnOp(), BinaryCmd::exec(), UnaryCmd::exec(), StreamDecorator::operator<<(), operator<<(), operator==(), KwScanner::readNext(), FlexScanner::readNext(), and yy::yylex().

int lineno

line number in source code

Definition at line 83 of file scanner.h.

Referenced by VmRunner::Private::chkFncRefs(), Error::Error(), Builder::fncCall(), Builder::fncDecl(), Builder::fncDefArg(), Builder::fncDefBody(), Builder::fncDefVar(), Builder::glVar(), CalleeSet::Private::SortableToken::operator int(), operator<<(), operator==(), FlexScanner::readNext(), and yy::yylex().

int numberInt

value - only for ETOKEN_NUMBER_INT

Definition at line 85 of file scanner.h.

Referenced by CmdFactory::createPush(), operator<<(), operator==(), and FlexScanner::readNext().

double numberDouble

value - only for ETOKEN_NUMBER_DOUBLE

Definition at line 86 of file scanner.h.

Referenced by CmdFactory::createPush(), operator<<(), operator==(), and FlexScanner::readNext().

std::string text

value - only for ETOKEN_ID and ETOKEN_STRING

Definition at line 87 of file scanner.h.

Referenced by BinaryCmd::BinaryCmd(), CmdFactory::createAssign(), CmdFactory::createPush(), Error::Error(), CallCmd::exec(), ArgCmd::exec(), LcVarCmd::exec(), GlVarCmd::exec(), BisonListener::fncCallPrintArg(), IfCmd::IfCmd(), operator<<(), operator==(), KwScanner::readNext(), FlexScanner::readNext(), UnaryCmd::UnaryCmd(), and WhileCmd::WhileCmd().


The documentation for this struct was generated from the following file:
Generated on Sat Jul 4 18:33:18 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4