Skip to content
Snippets Groups Projects
Commit 8461be36 authored by sof's avatar sof
Browse files

[project @ 1997-05-26 04:28:46 by sof]

Conversion of let blocks inside do blocks fixed up
parent 68a2f449
No related merge requests found
......@@ -1009,9 +1009,11 @@ kexp : kexpL
| kexpLno
;
/* kexpL = a let expression */
kexpL : letdecls IN exp { $$ = mklet($1,$3); }
;
/* kexpLno = any other expression more tightly binding than operator application */
kexpLno : LAMBDA
{ hsincindent(); /* push new context for FN = NULL; */
FN = NULL; /* not actually concerned about indenting */
......@@ -1199,7 +1201,7 @@ stmts : stmt { $$ = $1; }
stmt : /* empty */ { $$ = Lnil; }
| letdecls { $$ = lsing(mkseqlet($1)); }
| expL { $$ = lsing($1); }
| expL { $$ = lsing(mkdoexp($1,hsplineno)); }
| {inpat=TRUE;} expLno {inpat=FALSE;} leftexp
{ if ($4 == NULL) {
expORpat(LEGIT_EXPR,$2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment