Fixed all of the syntax problems. Dealing with 3 bizarre linking problems now.
[fridhskrift.git] / variable / type.cpp
blob3e04eb722a89cd0fe313effdecd197a64c5ce1a2
1 #include <fridh/symbol.hpp>
3 namespace fridh
5 variable_type variable::get_type() const
7 return type;
10 bool variable::is_floating_point_operation(variable const & argument) const
12 return type == variable_type_identifier::floating_point_value || argument.type == variable_type_identifier::floating_point_value;
15 bool variable::is_integer_type() const
17 return
18 type == variable_type_identifier::signed_integer ||
19 type == variable_type_identifier::unsigned_integer;
22 bool variable::is_numeric_type() const
24 return
25 type == variable_type_identifier::signed_integer ||
26 type == variable_type_identifier::unsigned_integer ||
27 type == variable_type_identifier::floating_point_value;