jtlc/nodes/IntegerNode.cc
josh b23442a2f4 printing ReturnStatementNode nodes
git-svn-id: svn://anubis/jtlc/trunk@25 f5bc74b8-7b62-4e90-9214-7121d538519f
2010-01-19 06:23:40 +00:00

14 lines
281 B
C++

#include <iostream>
#include "Node.h"
#include "parser/parser.h"
#include "main/Compiler.h"
using namespace std;
void IntegerNode::process(refptr<Compiler> compiler)
{
char buff[30];
sprintf(buff, "%llu", (long long unsigned int) m_integer);
compiler->write(buff);
}