Inferno
0.2
|
Declaration of a variable, object or function. More...
#include <cpptree.hpp>
Public Attributes | |
NODE_FUNCTIONS TreePtr < InstanceIdentifier > | identifier |
acts as a handle for the instance, and holds its name only as a hint | |
TreePtr< Type > | type |
the Type of the instance, can be data or Callable type | |
TreePtr< Initialiser > | initialiser |
init value for data, body for Callable type |
Declaration of a variable, object or function.
Instance represents a variable/object or a function. In case of function, type is a type under Callable and initialiser is a Statement (or Uninitialised for a function declaration). For a variable/object, type is basically anything else, and if there is an initialiser, it is an Expression. We allow init here for various reasons including
Definition at line 332 of file cpptree.hpp.
acts as a handle for the instance, and holds its name only as a hint
Definition at line 336 of file cpptree.hpp.
init value for data, body for Callable type
Definition at line 338 of file cpptree.hpp.
the Type of the instance, can be data or Callable type
Definition at line 337 of file cpptree.hpp.