Enclose output expression in ().
This commit is contained in:
parent
2bc017d0bb
commit
36de368b19
|
@ -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) {
|
||||
|
|
Reference in New Issue
Block a user