3 ms·
Those are all valid points, but not relevant to infix vs prefix notation. I don't know about C#, but parsing C++ is complex because you need a symbol table to
by WalterBright 8y ago
Those are all valid points, but not relevant to infix vs prefix notation.
I don't know about C#, but parsing C++ is complex because you need a symbol table to do it.
D doesn't need a symbol table to parse, but it does require arbitrary lookahead. It still isn't hard to parse, and the parser fits in one file:
https://github.com/dlang/dmd/blob/master/src/dmd/parse.d https://github.com/dlang/dmd/blob/master/src/dmd/parse.d