ht's Scheme Interpreter
1.0
a simplified scheme interpreter implementation
Main Page
Related Pages
Classes
Files
File List
File Members
preprocessor.hpp
Go to the documentation of this file.
1
#
ifndef
__SCHEME_PRE
2
#
define
__SCHEME_PRE
3
4
#
include
<
string
>
5
#
include
<
vector
>
6
#
include
<
iosfwd
>
7
8
class
SchemeUnit
9
{
10
private
:
11
bool
inComment
;
12
enum
MultilineCommentStatus
{
Neutral
,
CommentStart
,
CommentEnd
};
13
void
stripSemiColon
(std::string& line);
14
MultilineCommentStatus
processMultilineComment
( std::string& line);
15
public
:
16
SchemeUnit
(std::istream& schemeStream);
17
std::vector<std::string>
lines
;
18
void
preprocess
(std::istream& schemeStream);
19
};
20
21
22
#
endif
SchemeUnit::SchemeUnit
SchemeUnit(std::istream &schemeStream)
Definition:
preprocessor.cpp:6
SchemeUnit::CommentStart
Definition:
preprocessor.hpp:12
SchemeUnit::Neutral
Definition:
preprocessor.hpp:12
SchemeUnit::CommentEnd
Definition:
preprocessor.hpp:12
SchemeUnit
Definition:
preprocessor.hpp:8
SchemeUnit::processMultilineComment
MultilineCommentStatus processMultilineComment(std::string &line)
Definition:
preprocessor.cpp:27
SchemeUnit::preprocess
void preprocess(std::istream &schemeStream)
Definition:
preprocessor.cpp:11
SchemeUnit::stripSemiColon
void stripSemiColon(std::string &line)
Definition:
preprocessor.cpp:50
SchemeUnit::MultilineCommentStatus
MultilineCommentStatus
Definition:
preprocessor.hpp:12
SchemeUnit::lines
std::vector< std::string > lines
Definition:
preprocessor.hpp:17
SchemeUnit::inComment
bool inComment
Definition:
preprocessor.hpp:11
preprocessor.hpp
Generated by
1.8.9.1