summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-06-08 20:39:35 +0000
committerIan Lynagh <igloo@earth.li>2009-06-08 20:39:35 +0000
commit1a660e030bd3aaaa34adfea77d72856cdb48479e (patch)
tree28d1d62a98c79f305e1f02ab4f8e523cd8108a3c /compiler
parent4e8e0ed5c8d927e732c449bdee8117255dc2b1bc (diff)
downloadhaskell-1a660e030bd3aaaa34adfea77d72856cdb48479e.tar.gz
Put "%expect 0" directives in the .y files
With the exception of GHC's main Parser.y(.pp), which has 2 reduce/reduce conflicts
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cmm/CmmParse.y2
-rw-r--r--compiler/main/ParsePkgConf.y2
-rw-r--r--compiler/parser/HaddockParse.y2
-rw-r--r--compiler/parser/ParserCore.y1
4 files changed, 7 insertions, 0 deletions
diff --git a/compiler/cmm/CmmParse.y b/compiler/cmm/CmmParse.y
index 3469efedbc..2c7ffe2845 100644
--- a/compiler/cmm/CmmParse.y
+++ b/compiler/cmm/CmmParse.y
@@ -63,6 +63,8 @@ import System.Exit
#include "HsVersions.h"
}
+%expect 0
+
%token
':' { L _ (CmmT_SpecChar ':') }
';' { L _ (CmmT_SpecChar ';') }
diff --git a/compiler/main/ParsePkgConf.y b/compiler/main/ParsePkgConf.y
index 1e24ab4017..6028af89ce 100644
--- a/compiler/main/ParsePkgConf.y
+++ b/compiler/main/ParsePkgConf.y
@@ -24,6 +24,8 @@ import Panic
}
+%expect 0
+
%token
'{' { L _ ITocurly }
'}' { L _ ITccurly }
diff --git a/compiler/parser/HaddockParse.y b/compiler/parser/HaddockParse.y
index 8a46bea82a..c0f64d45ad 100644
--- a/compiler/parser/HaddockParse.y
+++ b/compiler/parser/HaddockParse.y
@@ -17,6 +17,8 @@ import HsSyn
import RdrName
}
+%expect 0
+
%tokentype { Token }
%token '/' { TokSpecial '/' }
diff --git a/compiler/parser/ParserCore.y b/compiler/parser/ParserCore.y
index be16c36f5e..bf959468fe 100644
--- a/compiler/parser/ParserCore.y
+++ b/compiler/parser/ParserCore.y
@@ -37,6 +37,7 @@ import Unique
}
%name parseCore
+%expect 0
%tokentype { Token }
%token