curimit / SugarCpp

SugarCpp is a language which can compile to C++11.
135 stars 13 forks source link

Support iostream '<<' operator #3

Closed vuryleo closed 11 years ago

vuryleo commented 11 years ago

For that it seems I can't use cout in SugarCpp for if I type these code

import "iostream"
using namespace std

int main()
    cout << 1
    return 0

Which is aimed to get

#include "iostream"

using namespace std;

int main()
{
    cout << 1;
    return 0;
}

But the compiler gives

Compile Error:
line 5:10 no viable alternative at input '<<'

So, will there be any support for iostream(fstream)?

curimit commented 11 years ago

Thank you. This bug has been fixed.