1 #include <frith/symbol.hpp>
7 type
= variable_type_identifier::nil
;
12 type
= variable_type_identifier::none
;
15 void variable::new_boolean(types::boolean new_boolean
)
17 type
= variable_type_identifier::boolean
;
18 boolean
= new_boolean
;
21 void variable::new_signed_integer(types::signed_integer new_signed_integer
)
23 type
= variable_type_identifier::signed_integer
;
24 signed_integer
= new_signed_integer
;
27 void variable::new_unsigned_integer(types::unsigned_integer new_unsigned_integer
)
29 type
= variable_type_identifier::unsigned_integer
;
30 unsigned_integer
= new_unsigned_integer
;
33 void variable::new_floating_point_value(types::floating_point_value new_floating_point_value
)
35 type
= variable_type_identifier::floating_point_value
;
36 floating_point_value
= new_floating_point_value
;
39 void variable::new_string(types::string
const & new_string
)
41 type
= variable_type_identifier::string
;
42 string
= new std::string(new_string
);
45 void variable::new_array()
47 type
= variable_type_identifier::array
;
48 array
= new types::vector();
51 void variable::new_map()
53 type
= variable_type_identifier::map
;
54 map
= new types::map();