Topic: need code or information on a recursive decent parser for C++
Author: dak@hathi.informatik.rwth-aachen.de (David Kastrup)
Date: 17 Mar 1994 15:54:31 GMT Raw View
suess@tiger.vill.edu (Suess David) writes:
>I need code for a recursive decent parser for C++. If you could send any
>code or information on this topic it would be very much appreciated. Also
>the information could be on the grammer of C++.
Time to start a spelling war again. There are no recursive decent parsers.
The C++ language definition has become that complicated that you cannot
parse it decently any more.
In fact, you even need recursive descent parsers to do that, and obviously
of a bad kind (see delayed typedefs in classes).
I think this is all a conspiracy of the committee in order to
1) kill off companies making fast parser generators.
2) make C++ parsers as holy cows as Fortran parsers are, which cause
constant amusion in compiler generator seminars, because statements
like
FORMAT(I) = 5
DO I 10(5) = 2
are perfectly legal code.
--
David Kastrup dak@pool.informatik.rwth-aachen.de
Tel: +49-241-72419 Fax: +49-241-79502
Goethestr. 20, D-52064 Aachen