jtlc/main/Compiler.cc
josh 7b8436acb4 added Compiler class to pass to Node::process() instead of a FILE *
git-svn-id: svn://anubis/jtlc/trunk@22 f5bc74b8-7b62-4e90-9214-7121d538519f
2010-01-14 20:27:01 +00:00

15 lines
216 B
C++

#include "Compiler.h"
#include <string>
using namespace std;
Compiler::Compiler(FILE * output_file)
{
m_outfile = output_file;
}
void Compiler::write(const string & str)
{
fputs(str.c_str(), m_outfile);
}