diff options
author | simonmar <unknown> | 2001-01-17 16:54:04 +0000 |
---|---|---|
committer | simonmar <unknown> | 2001-01-17 16:54:04 +0000 |
commit | 536a6e2a2f4acfda2ab94231c8071e146c53ecc3 (patch) | |
tree | 0874129460cd42a2cd6e6cce7f29942932500ee6 /ghc/compiler/parser/Parser.y | |
parent | 8419fa6df5314e2a8195d9f67b775f2f653fbbeb (diff) | |
download | haskell-536a6e2a2f4acfda2ab94231c8071e146c53ecc3.tar.gz |
[project @ 2001-01-17 16:54:04 by simonmar]
Remove IfaceStuff and ParserStuff hacks, use happy-1.9's new multiple
%name feature. GHCi's command line isn't stuck in -fglasgow-exts mode
any more.
<CoverMyBack>
YOU NOW NEED HAPPY 1.9 TO BUILD GHC.
</CoverMyBack>
Diffstat (limited to 'ghc/compiler/parser/Parser.y')
-rw-r--r-- | ghc/compiler/parser/Parser.y | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/ghc/compiler/parser/Parser.y b/ghc/compiler/parser/Parser.y index dbc68a2a17..a3b437d3cd 100644 --- a/ghc/compiler/parser/Parser.y +++ b/ghc/compiler/parser/Parser.y @@ -1,6 +1,6 @@ {- ----------------------------------------------------------------------------- -$Id: Parser.y,v 1.49 2000/11/24 17:02:03 simonpj Exp $ +$Id: Parser.y,v 1.50 2001/01/17 16:54:04 simonmar Exp $ Haskell grammar. @@ -9,7 +9,7 @@ Author(s): Simon Marlow, Sven Panne 1997, 1998, 1999 -} { -module Parser ( ParseStuff(..), parse ) where +module Parser ( parseModule, parseExpr ) where import HsSyn import HsTypes ( mkHsTupCon ) @@ -113,8 +113,6 @@ Conflicts: 14 shift/reduce '{-# DEPRECATED' { ITdeprecated_prag } '#-}' { ITclose_prag } - '__expr' { ITexpr } - {- '__interface' { ITinterface } -- interface keywords '__export' { IT__export } @@ -199,18 +197,12 @@ Conflicts: 14 shift/reduce %monad { P } { thenP } { returnP } %lexer { lexer } { ITeof } -%name parse +%name parseModule module +%name parseExpr exp %tokentype { Token } %% ----------------------------------------------------------------------------- --- Entry points - -parse :: { ParseStuff } - : module { PModule $1 } - | '__expr' exp { PExpr $2 } - ------------------------------------------------------------------------------ -- Module Header -- The place for module deprecation is really too restrictive, but if it @@ -1105,8 +1097,6 @@ commas :: { Int } ----------------------------------------------------------------------------- { -data ParseStuff = PModule RdrNameHsModule | PExpr RdrNameHsExpr - happyError :: P a happyError buf PState{ loc = loc } = PFailed (srcParseErr buf loc) } |