Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
a8839bb4
Commit
a8839bb4
authored
Sep 18, 2006
by
Markus Lauer
Browse files
Added parsing rule for BangPattern in case expr
parent
e33c65e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/parser/Parser.y.pp
View file @
a8839bb4
...
...
@@ -1104,6 +1104,8 @@ alts1 :: { Located [LMatch RdrName] }
alt
::
{
LMatch
RdrName
}
:
infixexp
opt_sig
alt_rhs
{
%
checkPattern
$1
>>=
\
p
->
return
(
LL
(
Match
[
p
]
$2
(
unLoc
$3
)))
}
|
'!'
infixexp
opt_sig
alt_rhs
{
%
checkPattern
$2
>>=
\
p
->
return
(
LL
(
Match
[
LL
$
BangPat
p
]
$3
(
unLoc
$4
)))
}
alt_rhs
::
{
Located
(
GRHSs
RdrName
)
}
:
ralt
wherebinds
{
LL
(
GRHSs
(
unLoc
$1
)
(
unLoc
$2
))
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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