[antlr-interest] Re: check tokens for whitespace?

mazypath eitan at cs.ucla.edu
Wed Oct 6 13:56:55 PDT 2004



On futher investigation, it turns out that the bug in the plugin was
fixed two weekes ago (4 days before I ran into a problem) in release
3.0.3 of the plugin.



--- In antlr-interest at yahoogroups.com, "mazypath" <eitan at c...> wrote:
> 
> Thanks for your help.  Your reply started me thinking.
> 
> I've been using the eclipse plugin for ANTLR.  It turns out that the
> plugin is the source of the problem.  When I run antlr manually it
> correctly generates the parser.  I assumed that the plugin simply
> called antrl.Tool but this is apparently not the case.
> 
> If you want to see a minimal grammar that causes propblems for the
> eclipse plugin (but not antlr by itself), I posted one to the jGuru
> forum (where the ANTLR website says to post bugs)last week:
>   http://www.jguru.com/forums/view.jsp?EID=1202512
> 
> Thank you to everyone who helped me solve this problem!
> 
> --- In antlr-interest at yahoogroups.com, Ric Klaren <klaren at c...> wrote:
> > Hi,
> > 
> > Just had a quick peek at the codegenerator, I did not directly see
a way
> > this could happen. So could you please post a minimal grammar that
> exposes
> > the problem ?
> > 
> > Cheers,
> > 
> > Ric
> > 
> > On Tue, Oct 05, 2004 at 11:36:32PM -0000, mazypath wrote:
> > > Right.  I mentioned this earlier in the thread.  I also want to
> > > specify an AST for my tokens.  I should be able to do this in the
> > > tokens block as so:
> > >  tokens {
> > >   FUNC_SIN="sin"<AST=my.ast.SinClass>;
> > ...
> > >     tokenTypeToASTClassMap.put(new Integer("sin"), my.ast.SinClass);
> > 
> > -- 
> >
>
-----+++++*****************************************************+++++++++-------
> >     ---- Ric Klaren ----- j.klaren at u... ----- +31 53 4893755  ----
> >
>
-----+++++*****************************************************+++++++++-------
> >   "You know how to use that thing?" [pointing to the sword]
> >   "Sure.. The pointy end goes into the other guy."
> >   --- The Mask of Zorro





 
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