[antlr-interest] Newbie question about C++ parser generation

Phillip R. Pfaffman ppfaffman at BIGSANDY.COM
Wed Oct 24 12:14:37 PDT 2001


Hello,

I am looking for a C++ grammar to use with ANTLR 2.0 or above (I understand
ANTLR at this level or above is implemented in java), but can't seem to
find one. The ANTLR 2.7.1 distribution has action directories for several
languages, for example, a cpp directory that has a
../antlr/actions/cpp/action.g file that appears to describe a lexer.
There's one for java and one for sather as well. As near as I can figure
out, these various action directories each provide the basis for creating a
parser that is written in the respective language. Examples follow of
generators/parsers (like calc) which use these assets. 

What I want is to generate a C++ parser implemented in java. Or, as a
second choice, a C++ parser implemented in C++. I want to use the java
version of ANTLR (at or above 2.0) to do the generation. Could someone tell
me where to find the grammar(s) to do this? Or tell me where I've gotton
confused?

Regards,

Phillip



Phillip R. Pfaffman					ppfaffman at bigsandy.com
[Home/Office] +1-626-798-8649   [Fax] +1-626-791-8281 
[PGP fingerprint]   224A A856 B8EA 3073 221C  1550 3B44 9BDD 951B 9028
[PGP Key Site]   ldap://certserver.pgp.com

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list