dynare/parser.src/include/SymbolTableTypes.hh

30 lines
803 B
C++

#ifndef _SYMBOLTABLETYPES_HH
#define _SYMBOLTABLETYPES_HH
//! Symbol type enum
enum Type
{
eEndogenous = 0, //!< Endogenous
eExogenous = 1, //!< Exogenous
eExogenousDet = 2, //!< Exogenous deterministic (new)
eRecursiveVariable = 3, //!< Recursive variable (reserved for future use)
eParameter = 4, //!< Parameter
eModelLocalVariable = 10, //!< Local variable whose scope is model (pound expression)
eModFileLocalVariable = 11, //!< Local variable whose scope is mod file (model excluded)
eUnknownFunction = 12 //!< Function unknown to the preprocessor
};
struct Symbol
{
//! Symbol type
Type type;
//! Symbol ID : for each type
int id;
Symbol() : id(-1)
{
}
};
#endif