ht's Scheme Interpreter
1.0
a simplified scheme interpreter implementation
Main Page
Related Pages
Classes
Files
File List
File Members
tokenizertest.cpp
Go to the documentation of this file.
1
#
include
"preprocessor.hpp"
2
#
include
"tokenizer.hpp"
3
#
include
<
iostream
>
4
#
include
<
fstream
>
5
#
include
<
algorithm
>
6
#
include
<
string
>
7
using
namespace
std;
8
9
int
main
()
10
{
11
ifstream ifs(
"test/tokenizer.test"
);
12
SchemeUnit
s
(
ifs
)
;
13
Tokenizer
t
(
s
.
lines
)
;
14
for_each(t.tokens.begin(), t.tokens.end(), [](
const
string& c) {
/* pending */
});
15
16
17
return
0;
18
}
SchemeUnit::SchemeUnit
SchemeUnit(std::istream &schemeStream)
Definition:
preprocessor.cpp:6
SchemeUnit
Definition:
preprocessor.hpp:8
Tokenizer::Tokenizer
Tokenizer(const std::vector< std::string > &lines)
Definition:
tokenizer.cpp:18
Tokenizer
Definition:
tokenizer.hpp:7
main
int main()
Definition:
tokenizertest.cpp:9
SchemeUnit::lines
std::vector< std::string > lines
Definition:
preprocessor.hpp:17
test
tokenizertest.cpp
Generated by
1.8.9.1