3 ms·
Write a C++ application called pptoken that accepts a C++ Source File on standard input, executes phases 1, 2 and 3 of the Phases of Translation (defined below)
by marshray 14y ago
Write a C++ application called pptoken that accepts a C++ Source File on standard input, executes phases 1, 2 and 3 of the Phases of Translation (defined below), and describes the resulting sequence of preprocessing-tokens to standard output in the specified format.
In all seriousness, is this a prank?
- defen 14y agoI had the same reaction...seems like an elaborate troll to point out the vast complexity of C++. This particular assignment doesn't seem "that hard", but this is probably the easiest part of writing a C++ compiler/stdlib.