Skip to content

Commit

Permalink
Updating: very very minorly
Browse files Browse the repository at this point in the history
  • Loading branch information
githwxi committed Oct 20, 2024
1 parent 234a9ed commit 1c9a7ed
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 12 deletions.
2 changes: 1 addition & 1 deletion srcgen2/xats2js/srcgen1/DATS/intrep1_print0.dats
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ prints
|I1INSraise
(tknd, iexn) => // iexp: i1val
(
prints("I1INSassgn(", iexn, ")"))
prints("I1INSraise(", iexn, ")"))
//
(* ****** ****** *)
//
Expand Down
134 changes: 123 additions & 11 deletions srcgen2/xats2js/srcgen1/DATS/js1emit_dynexp.dats
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,17 @@ xtrcdjs1(filr,tknd);strnfpr(filr,", ")
//
(* ****** ****** *)
//
|I1INSraise
(tknd, i1v0) =>
(
strnfpr(filr, "XATS000_raise(");
i1valjs1(filr, i1v0);strnfpr(filr, ")"))
//
(* ****** ****** *)
//
|
_(*otherwise*) => i1ins_fprint(filr,iins)
//
(* ****** ****** *)
end(*let*) // end-of-[i1insjs1(env0,iins)]
//
Expand Down Expand Up @@ -1525,15 +1534,6 @@ i1valjs1(filr, i1v0);strnfpr(filr, ")\n"))
//
(* ****** ****** *)
//
|I1INSraise
(tknd, i1v0) =>
(
nindstrnfpr
(filr, nind, "XATS000_raise(");
i1valjs1(filr, i1v0);strnfpr(filr, ")\n"))
//
(* ****** ****** *)
//
|I1INSassgn
(i1vl, i1vr) =>
(
Expand All @@ -1559,6 +1559,118 @@ nindfpr(filr, nind);i1insjs1(filr, iins);fprintln(filr))
case+ iins of
//
(* ****** ****** *)
(* ****** ****** *)
//
|I1INSdapp _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
(* ****** ****** *)
//
|I1INSpcon _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
|I1INSpflt _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
|I1INSproj _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
(* ****** ****** *)
//
|I1INStup0 _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
|I1INStup1 _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
|I1INSrcd2 _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
(* ****** ****** *)
//
|I1INSflat _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
(* ****** ****** *)
//
|I1INSdl0az _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
|I1INSdl1az _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
(* ****** ****** *)
//
|I1INSdp2tr _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
(* ****** ****** *)
//
|I1INSraise _ =>
(
nindstrnfpr
(filr, nind, "let ");
i1tnmfpr(filr, itnm);
strnfpr(filr, " = ");
i1insjs1(filr, iins);fprintln(filr))
//
(* ****** ****** *)
(* ****** ****** *)
//
|I1INStimp
(i0f1, timp) =>
Expand Down Expand Up @@ -1614,6 +1726,7 @@ nindstrnfpr
end//let//end-of-[I1INStimp(...)]
//
(* ****** ****** *)
(* ****** ****** *)
//
|I1INSlet0
(dcls, icmp) =>
Expand Down Expand Up @@ -1815,8 +1928,7 @@ envx2js_decnind
(* ****** ****** *)
(* ****** ****** *)
//
|
_(*otherwise*) =>
| _(*otherwise*) =>
(
nindstrnfpr
(filr, nind, "let ");
Expand Down

0 comments on commit 1c9a7ed

Please sign in to comment.