Enclose output expression in ().

This commit is contained in:
Stefano Sanfilippo 2014-11-30 13:40:08 +01:00
parent 2bc017d0bb
commit 36de368b19

View File

@ -161,9 +161,9 @@ void Assignment::emit(std::ostream &stream, int indent) {
}
void Print::emit(std::ostream &stream, int indent) {
stream << "std::cout << ";
stream << "std::cout << (";
expression->emit(stream);
stream << " << std::endl";
stream << ") << std::endl";
}
void Input::emit(std::ostream &stream, int indent) {