`if .. else if ..` can now be used as a primary expression (i.e., `println(if(1 ...
[aqualang.git] / src / private.h
blob1d9d74b93ae7e4380475cdedeceb373907e93817
2 #include <map>
3 #include "aqua.h"
5 #define ID_HANDLE Interpreter::Value(Interpreter::Value::NumberType('h'))
7 template<class T>
8 bool isint(T x)
10 return x == std::trunc(x);
13 namespace Aqua
15 //! todo: create a wrapper method ...
16 namespace Stdlib
18 void fn_print(Interpreter&, std::vector<Interpreter::Value> &stack);
19 void fn_println(Interpreter&, std::vector<Interpreter::Value> &stack);
20 void fn_readline(Interpreter&, std::vector<Interpreter::Value> &stack);
21 void fn_children(Interpreter&, std::vector<Interpreter::Value> &stack);
22 void fn_tokens(Interpreter&, std::vector<Interpreter::Value> &stack);
23 void fn_expand_node(Interpreter&, std::vector<Interpreter::Value> &stack);
24 void fn_tostring(Interpreter&, std::vector<Interpreter::Value> &stack);
25 void fn_tonumber(Interpreter&, std::vector<Interpreter::Value> &stack);