3 ms·
For comparison, here's the C++ lexer for Digital Mars C++: https://github.com/DigitalMars/Compiler/blob/master/dm/src/dmc/xtoken.d https://github.com/DigitalMa
by WalterBright 8y ago
For comparison, here's the C++ lexer for Digital Mars C++:
https://github.com/DigitalMars/Compiler/blob/master/dm/src/dmc/xtoken.d https://github.com/DigitalMars/Compiler/blob/master/dm/src/d...
The parser isn't in its own file, it's intermingled with the semantic processing, a mistake I didn't want to repeat with D :-)