3 ms·
For the reference folks - this is coming from the guy who's wikipedia page [0] says "He was hired by Facebook to write a fast C/C++ preprocessor in D." Not tha
by tandr 7y ago
For the reference folks - this is coming from the guy who's wikipedia page [0] says "He was hired by Facebook to write a fast C/C++ preprocessor in D."
Not that I have had any doubts about how hard it is...
[0] https://en.wikipedia.org/wiki/Walter_Bright https://en.wikipedia.org/wiki/Walter_Bright
- WalterBright 7y agoHere's the source code: https://github.com/facebookarchive/warp https://github.com/facebookarchive/warp and the one for the C compiler I wrote long ago: https://github.com/DigitalMars/Compiler/blob/master/dm/src/dmc/dblklst.d https://github.com/DigitalMars/Compiler/blob/master/dm/src/d... which is integrated with the C lexer for speed reasons.
- snazz 7y agoHe also wrote D (or is credited with creating it). I’m also interested in how one would write a C preprocessor in a day. It’s got so many tricky edge cases and whatnot.
- WalterBright 7y ago> or is credited with creating it Full disclosure: I looked into the future with my Chronoscope, and copied the most popular language!