-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsli_integertype.h
43 lines (33 loc) · 991 Bytes
/
sli_integertype.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
43
#ifndef SLI_INTEGERTYPE_H
#define SLI_INTEGERTYPE_H
#include "sli_type.h"
#include "SLI_token.h"
#include "sli_array.h"
namespace sli3
{
class IntegerType: public SLIType
{
public:
IntegerType(SLIInterpreter *sli, char const name[], sli_typeid type)
:SLIType(sli, name, type){}
bool compare(const Token&t1, const Token&t2) const;
std::ostream & print(std::ostream&, const Token &) const;
};
class DoubleType: public SLIType
{
public:
DoubleType(SLIInterpreter *sli, char const name[], sli_typeid type)
:SLIType(sli, name, type){}
bool compare(const Token&t1, const Token&t2) const;
std::ostream & print(std::ostream&, const Token &) const;
};
class BoolType: public SLIType
{
public:
BoolType(SLIInterpreter *sli, char const name[], sli_typeid type)
:SLIType(sli, name, type){}
bool compare(const Token&t1, const Token&t2) const;
std::ostream & print(std::ostream&, const Token &) const;
};
}
#endif