ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/Jargon.cpp
Revision: 224
Committed: 2004-09-06T02:13:51-07:00 (20 years, 9 months ago) by Douglas Thrift
File size: 620 byte(s)
Log Message:
Ignore DOCTYPE when including.

File Contents

# User Rev Content
1 Douglas Thrift 196 // Feeping Creaturism
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #include "Jargon.hpp"
8 Douglas Thrift 224 #include "Matcher.hpp"
9 Douglas Thrift 196
10 Douglas Thrift 223 Jargon::Jargon(const ext::String& path, bool include)
11 Douglas Thrift 196 {
12 Douglas Thrift 201 std::vector<std::string> args(1, FeepingCreaturism::program);
13 Douglas Thrift 196
14 Douglas Thrift 223 args.push_back("-p");
15     args.push_back("include");
16     args.push_back(lexical_cast<ext::String>(include) + "()");
17 Douglas Thrift 196 args.push_back(path);
18 Douglas Thrift 201 args.push_back("jargon.xsl");
19 Douglas Thrift 196
20 Douglas Thrift 223 redi::ipstream pin("/usr/local/bin/Xalan", args);
21 Douglas Thrift 196
22 Douglas Thrift 224 if (include)
23     {
24     std::string ignore;
25    
26     std::getline(pin, ignore);
27     }
28    
29 Douglas Thrift 223 do
30 Douglas Thrift 208 {
31 Douglas Thrift 223 std::string line;
32 Douglas Thrift 208
33 Douglas Thrift 223 std::getline(pin, line);
34 Douglas Thrift 208
35 Douglas Thrift 223 buffer << line << '\n';
36 Douglas Thrift 203 }
37 Douglas Thrift 223 while (pin.good());
38 Douglas Thrift 196 }

Properties

Name Value
svn:eol-style native
svn:keywords Id