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

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 ...@@ -63,6 +63,8 @@ import System.Exit
#include "HsVersions.h" #include "HsVersions.h"
} }
%expect 0
%token %token
':' { L _ (CmmT_SpecChar ':') } ':' { L _ (CmmT_SpecChar ':') }
';' { L _ (CmmT_SpecChar ';') } ';' { L _ (CmmT_SpecChar ';') }
......
...@@ -24,6 +24,8 @@ import Panic ...@@ -24,6 +24,8 @@ import Panic
} }
%expect 0
%token %token
'{' { L _ ITocurly } '{' { L _ ITocurly }
'}' { L _ ITccurly } '}' { L _ ITccurly }
......
...@@ -17,6 +17,8 @@ import HsSyn ...@@ -17,6 +17,8 @@ import HsSyn
import RdrName import RdrName
} }
%expect 0
%tokentype { Token } %tokentype { Token }
%token '/' { TokSpecial '/' } %token '/' { TokSpecial '/' }
......
...@@ -37,6 +37,7 @@ import Unique ...@@ -37,6 +37,7 @@ import Unique
} }
%name parseCore %name parseCore
%expect 0
%tokentype { Token } %tokentype { Token }
%token %token
......
...@@ -8,6 +8,7 @@ import Lex ...@@ -8,6 +8,7 @@ import Lex
} }
%name parse %name parse
%expect 0
%tokentype { Token } %tokentype { Token }
%token %token
......
...@@ -16,6 +16,7 @@ import Syntax ...@@ -16,6 +16,7 @@ import Syntax
} }
%name parsex %name parsex
%expect 0
%tokentype { Token } %tokentype { Token }
%monad { ParserM } %monad { ParserM }
%lexer { lex_tok } { TEOF } %lexer { lex_tok } { TEOF }
......
...@@ -12,6 +12,7 @@ import HpcLexer ...@@ -12,6 +12,7 @@ import HpcLexer
} }
%name parser %name parser
%expect 0
%tokentype { Token } %tokentype { Token }
%token %token
......
Supports Markdown
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