14 static std::string buffer;
15 while (!schemeStream.eof())
17 getline(schemeStream, buffer);
22 lines.push_back(buffer);
29 size_t pos = line.find(
"#!");
30 if (pos != line.npos && ( pos <2 || ( line[pos-1] !=
'\\' && line[pos-2]!=
'#')))
37 size_t pos2 = line.find(
"!#");
38 if (pos2 != line.npos && ( pos <2 || ( line[pos2-1] !=
'\\' && line[pos2-2]!=
'#')))
43 line = line.substr(pos2+2);
52 size_t pos = line.find(
';');
53 if (pos != line.npos) line.erase(pos);
SchemeUnit(std::istream &schemeStream)
MultilineCommentStatus processMultilineComment(std::string &line)
void preprocess(std::istream &schemeStream)
void stripSemiColon(std::string &line)
std::vector< std::string > lines