[antlr-interest] newbie question

Ric Klaren klaren at cs.utwente.nl
Tue Jun 8 04:52:30 PDT 2004


On Mon, Jun 07, 2004 at 09:05:02PM -0000, Ward Flores wrote:
> Could someone tell me if we can generate AST from any C++ source code
> using ANTLR and a C++ grammar (for exemple the one offered in antlr.org)?

The antlr.org grammar has no treebuilding rules attached to it, but it's
possible to add those. Depending on how good/thorough you need to parse the
input this can be close to trivial (turn on automatic treebuilding) up to
non-trivial (depends on how much C++ you need to interpret).

Cheers,

Ric
--
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893755  ----
-----+++++*****************************************************+++++++++-------
 Why don't we just invite them to dinner and massacre them all when they're
  drunk? You heard the man. There's seven hundred thousand of them. Ah? ..
           So it'd have to be something simple with pasta, then.
                 From: Interesting Times by Terry Pratchet



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list