vm.cc File Reference

#include "config.h"
#include "vm.h"
#include "cmd.h"
#include "vypIO.h"

Include dependency graph for vm.cc:

Go to the source code of this file.

Classes

struct  ValueStack::Private
struct  VarSet::Private
struct  FncSet::Private
struct  CmdList::Private
struct  CalleeSet::Private
struct  CalleeSet::Private::SortableToken
struct  VmRunner::Private

Functions

std::ostream & operator<< (std::ostream &str, const Value::VType &type)
std::ostream & operator<< (std::ostream &str, const Value &val)
bool operator== (const FncDeclaration &a, const FncDeclaration &b)
 compare only declaration (!!)
bool operator!= (const FncDeclaration &a, const FncDeclaration &b)
 compare only declaration (!!)
bool chkUnused (FncDefinition *fnc)
 check if all arguments and local variables are used


Function Documentation

bool chkUnused ( FncDefinition fnc  ) 

check if all arguments and local variables are used

Definition at line 343 of file vm.cc.

References FncDeclaration::args, Var::defined, StreamDecorator::E_NOTE, StreamDecorator::E_WARNING, Vm::fileName, FncDeclaration::self, VarSet::size(), Var::used, FncDefinition::vars, and FncDefinition::vm.

Referenced by FncSet::addDefinition().

Here is the call graph for this function:

Here is the caller graph for this function:

bool operator!= ( const FncDeclaration a,
const FncDeclaration b 
)

compare only declaration (!!)

Definition at line 320 of file vm.cc.

References operator==().

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  str,
const Value val 
)

Definition at line 58 of file vm.cc.

References Value::boolVal, StreamDecorator::C_NO_COLOR, StreamDecorator::C_YELLOW, Value::doubleVal, Value::intVal, Value::stringVal, Value::type, Value::V_BOOL, Value::V_DOUBLE, Value::V_INT, Value::V_NULL, and Value::V_STRING.

std::ostream& operator<< ( std::ostream &  str,
const Value::VType type 
)

Definition at line 46 of file vm.cc.

References StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_NO_COLOR, Value::V_BOOL, Value::V_DOUBLE, Value::V_INT, Value::V_NULL, and Value::V_STRING.

bool operator== ( const FncDeclaration a,
const FncDeclaration b 
)

compare only declaration (!!)

Definition at line 304 of file vm.cc.

References FncDeclaration::args, Var::name, FncDeclaration::self, VarSet::size(), Value::type, and Var::value.

Here is the call graph for this function:


Generated on Sat Jul 4 18:33:02 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4