Var Struct Reference

#include <vm.h>

Collaboration diagram for Var:

Collaboration graph
[legend]

List of all members.


Detailed Description

variable base object
Note:
used for lcVar, glVar, arg and function

Definition at line 77 of file vm.h.


Public Member Functions

 Var ()

Public Attributes

std::string name
 variable (or arg (or fnc)) name
Value value
 variable (or arg (or fnc)) value
Token defined
 Token which defines this variable.
bool used
 true if anybody reads value of the variable (make sense in static context)
bool initialized
 true if the value has been already initialized (make sense in run-time)

Constructor & Destructor Documentation

Var (  ) 

Definition at line 79 of file vm.cc.


Member Data Documentation

std::string name

variable (or arg (or fnc)) name

Definition at line 78 of file vm.h.

Referenced by VarSet::add(), FncSet::addDeclaration(), FncSet::addDefinition(), FncFactory::Private::addDefinition(), VmRunner::Private::chkUnusedFncs(), CmdFactory::createAssign(), CmdFactory::createPush(), Builder::fncDefArg(), Builder::fncDefVar(), and operator==().

Value value

variable (or arg (or fnc)) value

Definition at line 79 of file vm.h.

Referenced by CmdFactory::createAssign(), CmdFactory::createPush(), PrintCmd::exec(), Builder::fncCall(), operator==(), ValueStack::popToVar(), PrintCmd::PrintCmd(), ValueStack::pushFromVar(), and PrintCmd::toStream().

Token defined

Token which defines this variable.

Definition at line 80 of file vm.h.

Referenced by Builder::chkBlockStack(), VmRunner::Private::chkFncRefs(), chkUnused(), VmRunner::Private::chkUnusedFncs(), VmRunner::Private::chkUnusedGlVars(), Builder::fncCall(), Builder::fncDecl(), Builder::fncDef(), Builder::fncDefArg(), Builder::fncDefBody(), Builder::fncDefVar(), Builder::glVar(), and ValueStack::pushFromVar().

bool used

true if anybody reads value of the variable (make sense in static context)

Definition at line 83 of file vm.h.

Referenced by chkUnused(), VmRunner::Private::chkUnusedGlVars(), and CmdFactory::createPush().

bool initialized

true if the value has been already initialized (make sense in run-time)

Definition at line 86 of file vm.h.

Referenced by ValueStack::popToVar(), and ValueStack::pushFromVar().


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