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" -}

I have no idea why this happens, since it's machine generated -- I just
re-generated it using Happy 1.11 (the one you are using) and it was
fine.


The error message is terrible, though.  It comes from the new
Alex-generated lexical analyser, and can be provoked by the program:

        module ParBNF where
        {-# LINE 1 "GenericTemplate.hs" -}

I'm going to file a bug for this.  I'm sure Simon will want to squish it
when he comes back.
Meanwhile, put those #'s back.

Simon

| -----Original Message-----
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Peter Simons
| Sent: 29 October 2003 21:01
| To: [EMAIL PROTECTED]
| Subject: ghc-current can't compile bnfc 2.0
| 
| Hi,
| 
| no matter what I do, the current ghc from CVS fails with an
| error when compiling the BNF Converter. The source is
| available here:
| 
|     http://www.cs.chalmers.se/~markus/BNFC/bnfc_2.0.tgz
| 
| Just untar it and say 'make'. On my machine, I get this:
| 
|  | $ make
|  | ghc -iformats -iformats/haskell -iformats/java -iformats/cpp \
|  |     -iformats/c -package util --make CFTop -o bnfc
|  |
|  | Chasing modules from: CFTop
|  | Compiling Alex             ( ./Alex.hs, ./Alex.o )
|  | Compiling ErrM             ( ./ErrM.hs, ./ErrM.o )
|  | Compiling LexBNF           ( ./LexBNF.hs, ./LexBNF.o )
|  | Compiling AbsBNF           ( ./AbsBNF.hs, ./AbsBNF.o )
|  | Compiling ParBNF           ( ./ParBNF.hs, ./ParBNF.o )
|  | GenericTemplate.hs:0: lexical error
|  | make: *** [all] Error 1
|  | peti:/tmp/BNFC$
| 
| I have no idea what causes this. ghc-6.0 compiles the source
| code just fine.
| 
| Can anyone help me with this?
| 
| 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

Reply via email to