At 02:06 PM 8/29/2002 -0700, Steve Fink wrote:
>On Thu, Aug 29, 2002 at 04:48:20PM -0400, Andy Dougherty wrote:
> > On Thu, 29 Aug 2002, Steve Fink wrote:
> >
> > >  - Adds %option nounput to imcc.l. This avoids a warning when
> > >    compiling the output file. This one is correct, at least.
> >
> > Hmm.  Sun's lex(1) doesn't understand that line.  Is there another easy
> > way around the problem?  If not, I'll try to think of some other way
> > around it.
>
>Ugh. Well, I suppose we could always post-process the output to remove
>the offending routine, but I don't know if that's going to have enough
>in common. Does Sun's lex result in the same warning? If not, I guess
>we only need to cut out flex's unput() definition.

I can live with the warning, as long as it compiles under traditional
lex and flex. Don't waste too much effort polishing imcc since it will be
getting a new interface eventually and might even be rewritten to self-host
on Parrot at some point. (Hey I'm dreaming BIG)

The same goes for the bison vs. yacc question. IMCC doesn't even require
LR/LALR. The grammar is simple and isn't ambiguous so we can easily
convert it to other tools or even hand-write it, but that would probably be
counter-productive, so we probably should keep it as traditional yacc as 
possible.

-Melvin


Reply via email to