Put "%expect 0" directives in the .y files
authorIan Lynagh <igloo@earth.li>
Mon, 8 Jun 2009 20:39:35 +0000 (20:39 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 8 Jun 2009 20:39:35 +0000 (20:39 +0000)
With the exception of GHC's main Parser.y(.pp), which has 2
reduce/reduce conflicts

compiler/cmm/CmmParse.y
compiler/main/ParsePkgConf.y
compiler/parser/HaddockParse.y
compiler/parser/ParserCore.y
utils/ext-core/Parser.y
utils/genprimopcode/Parser.y
utils/hpc/HpcParser.y

index 3469efe..2c7ffe2 100644 (file)
@@ -63,6 +63,8 @@ import System.Exit
 #include "HsVersions.h"
 }
 
+%expect 0
+
 %token
        ':'     { L _ (CmmT_SpecChar ':') }
        ';'     { L _ (CmmT_SpecChar ';') }
index 1e24ab4..6028af8 100644 (file)
@@ -24,6 +24,8 @@ import Panic
 
 }
 
+%expect 0
+
 %token
  '{'           { L _ ITocurly }
  '}'           { L _ ITccurly }
index 8a46bea..c0f64d4 100644 (file)
@@ -17,6 +17,8 @@ import HsSyn
 import RdrName
 }
 
+%expect 0
+
 %tokentype { Token }
 
 %token '/'     { TokSpecial '/' }
index be16c36..bf95946 100644 (file)
@@ -37,6 +37,7 @@ import Unique
 }
 
 %name parseCore
+%expect 0
 %tokentype { Token }
 
 %token
index add3ef0..67db7bc 100644 (file)
@@ -8,6 +8,7 @@ import Lex
 }
 
 %name parse
+%expect 0
 %tokentype { Token }
 
 %token
index 7ebe2a8..9bf20c2 100644 (file)
@@ -16,6 +16,7 @@ import Syntax
 }
 
 %name      parsex
+%expect    0
 %tokentype { Token }
 %monad     { ParserM }
 %lexer     { lex_tok } { TEOF }
index cf1d156..b99e324 100644 (file)
@@ -12,6 +12,7 @@ import HpcLexer
 }
 
 %name parser
+%expect 0
 %tokentype { Token }
 
 %token