Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
39eacce6
Commit
39eacce6
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-01-21 17:37:09 by sof]
Warn about SCCs that are being dropped.
parent
f45b17e6
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/parser/hsparser.y
+12
-7
12 additions, 7 deletions
ghc/compiler/parser/hsparser.y
with
12 additions
and
7 deletions
ghc/compiler/parser/hsparser.y
+
12
−
7
View file @
39eacce6
...
...
@@ -756,16 +756,16 @@ constr_after_context :
/* Con { op1 :: Int } */
| gtycon OCURLY fields CCURLY { $$ = mkconstrrec($1,$3,hsplineno); }
/* 1 S/R conflict on OCURLY -> shift */
;
/* 1 S/R conflict on OCURLY -> shift */
/* contype has to reduce to a btype unless there are !'s, so that
we don't get reduce/reduce conflicts with the second production of constr.
But as soon as we see a ! we must switch to using bxtype. */
contype : btype { $$ = $1 }
| bxtype { $$ = $1 }
contype : btype { $$ = $1
;
}
| bxtype { $$ = $1
;
}
;
/* S !Int Bool; at least one ! */
...
...
@@ -783,8 +783,8 @@ batype : atype { $$ = $1; }
/* A wierd atype is one that isn't a regular atype;
it starts with a "!", or with a forall. */
wierd_atype : BANG bigatype { $$ = mktbang( $2 ) }
| BANG atype { $$ = mktbang( $2 ) }
wierd_atype : BANG bigatype { $$ = mktbang( $2 )
;
}
| BANG atype { $$ = mktbang( $2 )
;
}
| bigatype
;
...
...
@@ -1034,6 +1034,11 @@ kexpLno : LAMBDA
/* SCC Expression */
| SCC STRING exp
{ if (ignoreSCC) {
if (warnSCC) {
fprintf(stderr,
"\"%s\":%d: _scc_ (`set [profiling] cost centre') ignored\n",
input_filename, hsplineno);
}
$$ = mkpar($3); /* Note the mkpar(). If we don't have it, then
(x >> _scc_ y >> z) parses as (x >> (y >> z)),
right associated. But the precedence reorganiser expects
...
...
@@ -1144,8 +1149,8 @@ list_rest : exp { $$ = lsing($1); }
at it, it *will* do the wrong thing [WDP 94/06])
*/
letdecls: LET ocurly decls ccurly { $$ = $3 }
| LET vocurly decls vccurly { $$ = $3 }
letdecls: LET ocurly decls ccurly { $$ = $3
;
}
| LET vocurly decls vccurly { $$ = $3
;
}
;
quals : qual { $$ = lsing($1); }
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment