3 ms·
A nonoptimizing C compiler is pretty easy (a friend of mine wrote one in high school), and that's all you need to bootstrap GCC. He didn't even finish his pars
by lmm 14y ago
A nonoptimizing C compiler is pretty easy (a friend of mine wrote one in high school), and that's all you need to bootstrap GCC.
He didn't even finish his parser for C++ though.
- duaneb 14y agoStrictly speaking, C++03 can't be parsed, only interpreted (into a typed AST); it is not a context free grammar.
- klodolph 14y agoYou can parse languages that are not context-free. "Parse" just means that you figure out the structure of the file, the word has nothing to do with the techniques used.