On Fri, Sep 09, 2005 at 08:28:23PM -0400, Thomas Dickey wrote:
> I see byacc is checked for in the hugs98 configure script, but parser.y
> doesn't contain any bison-specific junk.  Any idea why byacc is being
> picked on here?

Haskell has a wierd rule that an implicit close brace should be inserted
if an illegal token is encountered where an implicit close brace would
be permitted, e.g. at the final ')' in

        scanl f q xs      = q : (case xs of
                                 []   -> []
                                 x:xs -> scanl f (f q x) xs)

parser.y implements this with using a trick with the error non-terminal
(see the productions for "end"), and for some reason this doesn't work
with byacc.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to