ht's Scheme Interpreter
1.0
a simplified scheme interpreter implementation
Main Page
Related Pages
Classes
Files
File List
File Members
all.hpp
Go to the documentation of this file.
1
#
include
<
string
>
2
#
include
"rational.hpp"
3
#
include
"float.hpp"
4
#
include
"string.hpp"
5
#
include
"boolean.hpp"
6
#
include
"parenthesis.hpp"
7
#
include
"ops.hpp"
8
9
enum
TokenType
10
{
11
LeftParenthesis
,
12
RightParenthesis
,
13
OpPlus
,
14
OpMinus
,
15
OpMultiply
,
16
OpDivide
,
17
Float
,
18
Rational
,
19
String
,
20
Boolean
21
};
22
23
union
ExtraInfo
24
{
25
RationalType
*
rational
;
26
FloatType
*
flt
;
27
StringType
*
str
;
28
BooleanType
*
boolean
;
29
};
30
31
typedef
bool
(*
CheckerFuncType
) (
const
std::string&);
32
typedef
ExtraInfo
(*ExtraInfoFunc) (
const
std::string&);
33
34
ExtraInfo
getNullExtraInfo
(
const
std::string& s) {
return
ExtraInfo
(); }
OpMinus
Definition:
all.hpp:14
ExtraInfo::str
StringType * str
Definition:
all.hpp:27
OpPlus
Definition:
all.hpp:13
OpMultiply
Definition:
all.hpp:15
ExtraInfo::rational
RationalType * rational
Definition:
all.hpp:25
LeftParenthesis
Definition:
all.hpp:11
BooleanType
bool BooleanType
Definition:
boolean.hpp:4
ExtraInfo
Definition:
all.hpp:23
String
Definition:
all.hpp:19
Boolean
Definition:
all.hpp:20
Rational
Definition:
all.hpp:18
TokenType
TokenType
Definition:
all.hpp:9
OpDivide
Definition:
all.hpp:16
StringType
std::string StringType
Definition:
string.hpp:5
FloatType
double FloatType
Definition:
float.hpp:5
Float
Definition:
all.hpp:17
CheckerFuncType
bool(* CheckerFuncType)(const std::string &)
Definition:
arch.hpp:9
ExtraInfo::boolean
BooleanType * boolean
Definition:
all.hpp:28
RationalType
Definition:
rational.hpp:6
RightParenthesis
Definition:
all.hpp:12
ExtraInfo::flt
FloatType * flt
Definition:
all.hpp:26
getNullExtraInfo
ExtraInfo getNullExtraInfo(const std::string &s)
Definition:
all.hpp:34
types
all.hpp
Generated by
1.8.9.1