Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
779f10fd
Commit
779f10fd
authored
Oct 04, 2012
by
afarmer
Committed by
ian@well-typed.com
Nov 30, 2012
Browse files
Extend parser to allow specification of RULES that never fire.
#7162
parent
e9f38cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/parser/Parser.y.pp
View file @
779f10fd
...
...
@@ -882,6 +882,7 @@ activation :: { Maybe Activation }
explicit_activation
::
{ Activation }
-- In brackets
:
'['
INTEGER
']'
{ ActiveAfter (fromInteger (getINTEGER $2)) }
|
'['
'~'
INTEGER
']'
{ ActiveBefore (fromInteger (getINTEGER $3)) }
|
'['
'~'
']'
{ NeverActive }
rule_forall
::
{ [RuleBndr RdrName] }
:
'forall'
rule_var_list
'.'
{ $2 }
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment