38 enum class symtabtype {
49 explicit Symtab(std::string s);
53 void Set(std::string);
55 void Set(
double,
bool reserved=
false);
Representation of arrays used in tokens.
Common header for the lexer and the parser to share Symbol table for numeric variables,...
std::list< double > array
data
std::list< double > GetArray() const
Get methods that check on type.
symtabtype GetType() const
Get type.
function GetFunction() const
Set to function pointer.
double GetNumber() const
Set to double.
double(* function)(double)
typedef for function pointer
void Print()
Print method.
symtabtype type
Enum type.
bool is_reserved
Flag is parser symbol is a reserved name.
std::string name
Name of parser symbol.
void Set(Array *)
Set to Array value.
bool IsReserved() const
Check if symbol is a reserved name.
std::string GetName() const
Get name.
std::string GetString() const
Set to string.
Parser namespace for GMAD language. Combination of Geant4 and MAD.