diff --git a/Nodes.cpp b/Nodes.cpp index 002b2bd..3dbc097 100644 --- a/Nodes.cpp +++ b/Nodes.cpp @@ -231,7 +231,9 @@ void Program::emit(std::ostream &stream, int indent) { stream << ";\n"; } - stream << "\n"; + if (!functions.empty()) { + stream << "\n"; + } for (Function *f: functions) { f->emit(stream);