-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDatatype.h
42 lines (35 loc) · 1.03 KB
/
Datatype.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef DATA_TYPE
#define DATA_TYPE
#include<any>
#include<string>
#include<iostream>
#include <sstream>
#include <iomanip>
#include "Node.h"
using std::any;
using std::string;
using std::any_cast;
using std::ostream;
using std::to_string;
using std::fixed;
using std::setprecision;
using std::stringstream;
auto isString(any) ->bool;
auto isNumber(any) ->bool;
auto isGetVariable(any) ->bool;
auto isFunctionExpression(any)->bool;
auto isArray(any) ->bool;
auto isObject(any) ->bool;
auto isConsole(any) ->bool;
auto toNumber(any) ->double;
auto toString(any) ->string;
auto toBool(any) ->bool;
auto toFunctionExpression(any)->FunctionExpression*;
auto toArray(any) ->ArrayLiteral*;
auto toObject(any) ->ObjectLiteral*;
auto toConsole(any) ->Console*;
auto toGetVariable(any) ->GetVariable*;
auto doubleToString(double) ->string;
ostream& operator<<(ostream&, any&);
string& operator+=(string&, any&);
#endif