Mystery solved. I managed to reduce your bug report to one character :-)
The file CF.hs has an ISO 8859-1 whitespace character in it, on line 406, just after
the first '||'. The new lexer isn't recognising non-ASCII whitespace characters
properly.
Thanks for the report!
Cheers,
Simon
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Peter Simons
> Sent: 12 November 2003 12:21
> To: [EMAIL PROTECTED]
> Subject: Re: ghc-current can't compile bnfc 2.0
>
> Simon Peyton-Jones writes:
>
> > Somehow the LINE pragmas in ParBNF.hs have lost their trailing "#".
> > They should say
>
> > {-# LINE 1 "GenericTemplate.hs" #-}
>
> > but actually they say
>
> > {-# LINE 1 "GenericTemplate.hs" -}
>
> This is one problem -- thanks for the hint! --, but there appears to
> be another one. After editing these lines, I still get an error:
>
> | $ make
> | ghc -iformats -iformats/haskell -iformats/java
> -iformats/cpp -iformats/c -package util --make CFTop -o bnfc
> | Chasing modules from: CFTop
> | Skipping Alex ( ./Alex.hs, ./Alex.o )
> | Skipping ErrM ( ./ErrM.hs, ./ErrM.o )
> | Skipping LexBNF ( ./LexBNF.hs, ./LexBNF.o )
> | Skipping AbsBNF ( ./AbsBNF.hs, ./AbsBNF.o )
> | Skipping ParBNF ( ./ParBNF.hs, ./ParBNF.o )
> | Skipping RegToFlex ( formats/cpp/RegToFlex.hs,
> formats/cpp/RegToFlex.o )
> | Skipping RegToJLex ( formats/java/RegToJLex.hs,
> formats/java/RegToJLex.o )
> | Skipping RegToAlex ( formats/haskell/RegToAlex.hs,
> formats/haskell/RegToAlex.o )
> | Skipping Utils ( ./Utils.hs, ./Utils.o )
> | Compiling CF ( ./CF.hs, ./CF.o )
> | ./CF.hs:406: lexical error
>
> And the code in that block doesn't look incorrect:
>
> badList = isList c &&
> not (isCoercion f ||�isNilFun f ||
> isOneFun f || isConsFun f)
>
> Also, ghc-6.0 compiles it fine.
>
> Any idea what this might be?
>
> Peter
> _______________________________________________
> Cvs-ghc mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/cvs-ghc
>
>
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc