Commit 1a660e03 authored by Ian Lynagh's avatar Ian Lynagh

Put "%expect 0" directives in the .y files

With the exception of GHC's main Parser.y(.pp), which has 2
reduce/reduce conflicts
parent 4e8e0ed5
......@@ -63,6 +63,8 @@ import System.Exit
#include "HsVersions.h"
}
%expect 0
%token
':' { L _ (CmmT_SpecChar ':') }
';' { L _ (CmmT_SpecChar ';') }
......
......@@ -24,6 +24,8 @@ import Panic
}
%expect 0
%token
'{' { L _ ITocurly }
'}' { L _ ITccurly }
......
......@@ -17,6 +17,8 @@ import HsSyn
import RdrName
}
%expect 0
%tokentype { Token }
%token '/' { TokSpecial '/' }
......
......@@ -37,6 +37,7 @@ import Unique
}
%name parseCore
%expect 0
%tokentype { Token }
%token
......
......@@ -8,6 +8,7 @@ import Lex
}
%name parse
%expect 0
%tokentype { Token }
%token
......
......@@ -16,6 +16,7 @@ import Syntax
}
%name parsex
%expect 0
%tokentype { Token }
%monad { ParserM }
%lexer { lex_tok } { TEOF }
......
......@@ -12,6 +12,7 @@ import HpcLexer
}
%name parser
%expect 0
%tokentype { Token }
%token
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment