Adding required headers on top of file.

This commit is contained in:
Stefano Sanfilippo 2014-11-27 20:43:25 +01:00
parent c326de1131
commit 7e9bc1a55e

View File

@ -179,6 +179,9 @@ void Main::emit(std::ostream &stream, int indent) {
}
void Program::emit(std::ostream &stream, int indent) {
stream << "#include <iostream>\n";
stream << "#include <cstdlib>\n\n";
for (Function *f: functions) {
f->emit(stream);
}