X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Fgenprimopcode%2FParser.y;h=b20414d7d2c86b411306aaf480588678a81ebc4d;hb=7bf5bf37e7f4f140c883016e9da50106535d2a94;hp=a9497655266d569247184260ab71a22312cf7d54;hpb=03ffa2bfa6c31dc6bcdcacecc2bdb3bbabd800a9;p=ghc-hetmet.git diff --git a/utils/genprimopcode/Parser.y b/utils/genprimopcode/Parser.y index a949765..b20414d 100644 --- a/utils/genprimopcode/Parser.y +++ b/utils/genprimopcode/Parser.y @@ -1,5 +1,13 @@ { +{-# LANGUAGE BangPatterns #-} -- required for versions of Happy before 1.18.6 +{-# OPTIONS -w -Wwarn #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details + module Parser (parse) where import Lexer (lex_tok) @@ -9,6 +17,7 @@ import Syntax } %name parsex +%expect 0 %tokentype { Token } %monad { ParserM } %lexer { lex_tok } { TEOF }