chomik 0.2.1
experimental and minimalistic programming language
|
My name is Pawel Biernacki.
I am a software engineer.
This site is my hobby project.
#include <chomik.h>
Public Types | |
enum class | actual_memory_representation_type { NONE , INTEGER , FLOAT , STRING , CODE , ENUM } |
Public Member Functions | |
variable_with_value (std::shared_ptr< signature > &&n) | |
virtual | ~variable_with_value () |
std::string | get_signature_item_representation (int item_index) const |
std::string | get_signature_item_type_name (int item_index) const |
int | get_amount_of_signature_items () const |
virtual void | report (std::ostream &s) const =0 |
virtual actual_memory_representation_type | get_representation_type () const =0 |
std::string | get_signature_string_representation () const |
virtual int | get_value_integer () const |
virtual double | get_value_float () const |
virtual std::string | get_value_string () const |
virtual std::string | get_value_enum () const |
virtual void | get_value_code (code &target) const |
virtual void | assign_value_integer (int v) |
virtual void | assign_value_float (double v) |
virtual void | assign_value_string (std::string v) |
virtual void | assign_value_enum (std::string v) |
virtual void | assign_value_code (const code &ci) |
virtual std::string | get_debug_type_name () const |
Protected Attributes | |
std::shared_ptr< signature > | actual_name |
This class is used to represent a variable with its value in a machine.
|
strong |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in chomik::variable_with_value_code.
|
inlinevirtual |
Reimplemented in chomik::simple_variable_with_value_enum.
|
inlinevirtual |
Reimplemented in chomik::simple_variable_with_value_float.
|
inlinevirtual |
Reimplemented in chomik::simple_variable_with_value_integer.
|
inlinevirtual |
Reimplemented in chomik::simple_variable_with_value_string.
int chomik::variable_with_value::get_amount_of_signature_items | ( | ) | const |
|
inlinevirtual |
Reimplemented in chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >, chomik::simple_variable_with_value< double, static_cast< int >(variable_with_value::actual_memory_representation_type::FLOAT)>, chomik::simple_variable_with_value< int, static_cast< int >(variable_with_value::actual_memory_representation_type::INTEGER)>, chomik::simple_variable_with_value< std::string, static_cast< int >(variable_with_value::actual_memory_representation_type::ENUM)>, chomik::simple_variable_with_value< std::string, static_cast< int >(variable_with_value::actual_memory_representation_type::STRING)>, chomik::simple_variable_with_value_enum, chomik::simple_variable_with_value_float, chomik::simple_variable_with_value_integer, chomik::simple_variable_with_value_string, and chomik::variable_with_value_code.
|
pure virtual |
Implemented in chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >, chomik::simple_variable_with_value< double, static_cast< int >(variable_with_value::actual_memory_representation_type::FLOAT)>, chomik::simple_variable_with_value< int, static_cast< int >(variable_with_value::actual_memory_representation_type::INTEGER)>, chomik::simple_variable_with_value< std::string, static_cast< int >(variable_with_value::actual_memory_representation_type::ENUM)>, chomik::simple_variable_with_value< std::string, static_cast< int >(variable_with_value::actual_memory_representation_type::STRING)>, and chomik::variable_with_value_code.
std::string chomik::variable_with_value::get_signature_item_representation | ( | int | item_index | ) | const |
std::string chomik::variable_with_value::get_signature_item_type_name | ( | int | item_index | ) | const |
std::string chomik::variable_with_value::get_signature_string_representation | ( | ) | const |
|
inlinevirtual |
Reimplemented in chomik::variable_with_value_code.
|
inlinevirtual |
Reimplemented in chomik::simple_variable_with_value_enum.
|
inlinevirtual |
Reimplemented in chomik::simple_variable_with_value_float.
|
inlinevirtual |
Reimplemented in chomik::simple_variable_with_value_integer.
|
inlinevirtual |
Reimplemented in chomik::simple_variable_with_value_string.
|
pure virtual |
Implemented in chomik::simple_variable_with_value< TYPE, REPRESENTATION_TYPE >, chomik::simple_variable_with_value< double, static_cast< int >(variable_with_value::actual_memory_representation_type::FLOAT)>, chomik::simple_variable_with_value< int, static_cast< int >(variable_with_value::actual_memory_representation_type::INTEGER)>, chomik::simple_variable_with_value< std::string, static_cast< int >(variable_with_value::actual_memory_representation_type::ENUM)>, chomik::simple_variable_with_value< std::string, static_cast< int >(variable_with_value::actual_memory_representation_type::STRING)>, and chomik::variable_with_value_code.
|
protected |