[antlr-interest] [BUG] Adding options language = Cpp cause Antlr to return an error

Ric Klaren klaren at cs.utwente.nl
Fri Jan 31 09:08:36 PST 2003


Hi,

On Fri, Jan 31, 2003 at 11:47:18AM -0500, Philippe Lavoie wrote:
> ////////////////
> options {
>     language="Cpp" // remove this and it works
> }

Try language="Cpp";

>  ANTLR Parser Generator   Version 2.7.2   1989-2003 jGuru.com
>  basic.g:8:5: expecting ASSIGN_RHS, found ':n:NAME EOF!
>          { ; }
>      ;'
>  basic.g:3:1: rule grammar trapped:
>  basic.g:3:1: expecting SEMI, found '}'
>  Exiting due to errors.

This is standard mumbojumbo from antlr when there's something wrong with a
';' somewhere.

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- klaren at cs.utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  Xander: "Buffy, we need to do something *now*"
  Angel: "We need a distraction."
  Buffy: "Right."
  Angel: "What are you going to do?"
  Buffy: "I'm going to kill them all. That oughtta distract 'em..."


 

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



More information about the antlr-interest mailing list