ht's Scheme Interpreter  1.0
a simplified scheme interpreter implementation
SchemeUnit Class Reference

#include <preprocessor.hpp>

Public Member Functions

 SchemeUnit (std::istream &schemeStream)
 
void preprocess (std::istream &schemeStream)
 

Public Attributes

std::vector< std::string > lines
 

Private Types

enum  MultilineCommentStatus { Neutral, CommentStart, CommentEnd }
 

Private Member Functions

void stripSemiColon (std::string &line)
 
MultilineCommentStatus processMultilineComment (std::string &line)
 

Private Attributes

bool inComment
 

Detailed Description

Definition at line 8 of file preprocessor.hpp.

Member Enumeration Documentation

Enumerator
Neutral 
CommentStart 
CommentEnd 

Definition at line 12 of file preprocessor.hpp.

Constructor & Destructor Documentation

SchemeUnit::SchemeUnit ( std::istream &  schemeStream)

Definition at line 6 of file preprocessor.cpp.

Member Function Documentation

void SchemeUnit::preprocess ( std::istream &  schemeStream)

Definition at line 11 of file preprocessor.cpp.

SchemeUnit::MultilineCommentStatus SchemeUnit::processMultilineComment ( std::string &  line)
private

Definition at line 27 of file preprocessor.cpp.

void SchemeUnit::stripSemiColon ( std::string &  line)
private

Definition at line 50 of file preprocessor.cpp.

Member Data Documentation

bool SchemeUnit::inComment
private

Definition at line 11 of file preprocessor.hpp.

std::vector<std::string> SchemeUnit::lines

Definition at line 17 of file preprocessor.hpp.


The documentation for this class was generated from the following files: