Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] C and Java Parsers

>-----Original Message-----
>From: Jeffrey Yasskin [mailto:jyasskin@xxxxxxxxxxxxxxx]
>Sent: April 4, 2004 3:05 PM
>To: cdt-dev@xxxxxxxxxxx
>Subject: [cdt-dev] C and Java Parsers
>
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Is the C parser in org.eclipse.cdt.internal.core.parser.Parser
>hand-written? If not, can I have a copy of the grammar that generates
>it? If so, why, given that the Java one is generated?

Hand written.  Why, because the complexities of C/C++ are way higher
than Java.  I blame much of this squarely on the pre-processor =;-)
There once was a generated grammar, but it was not effective and didn't
meet the growing needs for "interpretation" of the content.

>Also, and this may be the wrong list to be asking, where is a copy of
>the grammar that generates the Java parser in
>org.eclipse.jdt.internal.compiler.parser.Parser? I can't find it in the
>CVS checkout.

JDT mailing list is likely a better place for this question.

>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.4 (GNU/Linux)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>iD8DBQFAcFxdfjbRRQT0l5URAnIaAJ9NAmW06vYvf+nA8f2HkJdE700megCgxeMj
>4Fdd6Jn9gpCUVARk7TuwGmg=
>=0J8X
>-----END PGP SIGNATURE-----
>_______________________________________________
>cdt-dev mailing list
>cdt-dev@xxxxxxxxxxx
>http://dev.eclipse.org/mailman/listinfo/cdt-dev
>


Back to the top