[antlr-interest] Newbie question about C++ parser generation
Ric Klaren
klaren at cs.utwente.nl
Thu Oct 25 01:07:51 PDT 2001
Hi,
On Wed, Oct 24, 2001 at 12:14:37PM -0700, Phillip R. Pfaffman wrote:
> 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.
There's none AFAIK. For the predecessor of antlr, pccts, there's one
though. It might be portable (?) probably with some pain.
> 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.
These things are part of the guts of ANTLR. No serviceable parts inside =)
> 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.
That should all be possible.
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- klaren at cs.utwente.nl ----- +31 53 4893722 ----
-----+++++*****************************************************+++++++++-------
Wit is cultured insolence. - Aristotle
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list