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 Sep 15, 2024
1 parent a0452f2 commit ac8d18a
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 18 deletions.
7 changes: 7 additions & 0 deletions prelude/DATS/axrf001.dats
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ owed_vt_return0(pf, x0) in btf end
(* ****** ****** *)
//
#impltmp
< x0:vt >
a1rf_strmize =
gasz_strmize<a1rf(x0)><x0>(*void*)
//
(* ****** ****** *)
//
#impltmp
{ x0:t0 }
gseq_strmize
<a1rf(x0)><x0> =
Expand Down
21 changes: 21 additions & 0 deletions prelude/DATS/axsz001.dats
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,27 @@ Authoremail: gmhwxiATgmailDOTcom
(* ****** ****** *)
//
#impltmp
< x0:vt >
a1sz_strmize =
gasz_strmize<a1sz(x0)><x0>(*void*)
//
(* ****** ****** *)
//
#impltmp
{ x0:t0 }
gseq_strmize
<a1sz(x0)><x0> =
gasz_strmize<a1sz(x0)><x0>(*void*)
#impltmp
{ x0:vt }
gseq_strmize1
<a1sz(x0)><x0> =
gasz_strmize<a1sz(x0)><x0>(*void*)
//
(* ****** ****** *)
(* ****** ****** *)
//
#impltmp
{ a: vt }
g_forall<a1sz(a)> =
gasz_forall<a1sz(a)><a>
Expand Down
10 changes: 10 additions & 0 deletions prelude/SATS/axrf001.sats
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ Authoremail: gmhwxiATgmailDOTcom
//
fun
<a:vt>
a1rf_strmize
(A: a1rf(a)): strm_vt(a)
//
#symload strmize with a1rf_strmize of 1000
//
(* ****** ****** *)
(* ****** ****** *)
//
fun
<a:vt>
a1rf_forall_size
{n:nat}
(A:a1rf(a,n), n:sint(n)): bool
Expand Down
10 changes: 10 additions & 0 deletions prelude/SATS/axsz001.sats
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ Authoremail: gmhwxiATgmailDOTcom
//
fun
<a:vt>
a1sz_strmize
(A: a1sz(a)): strm_vt(a)
//
#symload strmize with a1sz_strmize of 1000
//
(* ****** ****** *)
(* ****** ****** *)
//
fun
<a:vt>
a1sz_forall(A: a1sz(a)): bool
fun
<a:vt>
Expand Down
12 changes: 6 additions & 6 deletions prelude/SATS/gcls000.sats
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ GSEQ_irforall
//
#symload forall with GSEQ_forall of 1000
#symload rforall with GSEQ_rforall of 1000
#symload iforall with GSEQ_rforall of 1000
#symload irforall with GSEQ_rforall of 1000
#symload iforall with GSEQ_iforall of 1000
#symload irforall with GSEQ_irforall of 1000
//
(* ****** ****** *)
//
Expand Down Expand Up @@ -297,8 +297,8 @@ GSEQ_irforitm
//
#symload foritm with GSEQ_foritm of 1000
#symload rforitm with GSEQ_rforitm of 1000
#symload iforitm with GSEQ_rforitm of 1000
#symload irforitm with GSEQ_rforitm of 1000
#symload iforitm with GSEQ_iforitm of 1000
#symload irforitm with GSEQ_irforitm of 1000
//
(* ****** ****** *)
//
Expand Down Expand Up @@ -386,8 +386,8 @@ GSEQ(xs,x0), r0: r0): (r0)
//
#symload folditm with GSEQ_folditm of 1000
#symload rfolditm with GSEQ_rfolditm of 1000
#symload ifolditm with GSEQ_rfolditm of 1000
#symload irfolditm with GSEQ_rfolditm of 1000
#symload ifolditm with GSEQ_ifolditm of 1000
#symload irfolditm with GSEQ_irfolditm of 1000
//
(* ****** ****** *)
//
Expand Down
15 changes: 15 additions & 0 deletions prelude/SATS/gseq001.sats
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,23 @@ gseq_istrqize
(*
HX: for [gs_forall]
HX: for [gs_exists]
HX: for [gs_iforall]
HX: for [gs_iexists]
*)
fun
<xs:t0>
g_forall(xs: xs): bool
fun
<xs:t0>
g_exists(xs: xs): bool
fun
<xs:t0>
g_iforall(xs: xs): bool
fun
<xs:t0>
g_iexists(xs: xs): bool
//
(* ****** ****** *)
//
fun
<xs:t0>
Expand Down Expand Up @@ -248,6 +258,11 @@ HX: for [gs_foritm]
fun
<xs:t0>
g_foritm(xs: xs): void
fun
<xs:t0>
g_iforitm(xs: xs): void
//
(* ****** ****** *)
//
fun
<xs:t0>
Expand Down
4 changes: 2 additions & 2 deletions srcgen1/prelude/DATS/VT/list000_vt.dats
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ list_vt_cons(_, xs) => loop(xs, ln+1)

#impltmp
<a>(*tmp*)
list_vt_make_nval
list_vt_make_ncpy
(n0, x0) = let
//
fnx
Expand All @@ -207,7 +207,7 @@ in
let
var r0: list_vt(a) in loop(n0, r0); r0
end
end (* end of [list_vt_make_nval] *)
end (* end of [list_vt_make_ncpy] *)

(* ****** ****** *)

Expand Down
2 changes: 0 additions & 2 deletions srcgen1/prelude/SATS/VT/list000_vt.sats
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,11 @@ list_vt_make_3val
(x1: a
,x2: a, x3: a): list_vt(a,3)
//
(*
fun
<a:vt>
list_vt_make_ncpy
{n:nat}
(n0:sint(n), x0:a): list_vt(a,n)
*)
//
fun
<a:vt>
Expand Down
28 changes: 20 additions & 8 deletions srcgen2/DATS/trsym2b_dynexp.dats
Original file line number Diff line number Diff line change
Expand Up @@ -727,17 +727,29 @@ endlet // end of [D2Etapp(...)]
|
D2Edapp
(d2f0,npf1,d2es) =>
(*
HX-2023-07-07:
Handling arguments first!
*)
let
val () =
trsym2b_d2exp(env0, d2f0)
//
val () =
trsym2b_d2exp(env0, d2f0)
//
end where
{
val () =
trsym2b_d2explst(env0, d2es)
//
(*
val () =
(
trsym2b_d2exp(env0, d2f0))
*)
//
(*
HX-2023-07-07:
Handling the arguments first!
*)
//
val () =
(
trsym2b_d2explst(env0, d2es))
//
} (*where*) // end of [D2Edapp]
//
|
Expand Down
8 changes: 8 additions & 0 deletions xatslib/githwxi/DATS/myfil00.dats
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ end//let
(* ****** ****** *)
(* ****** ****** *)
//
#extern
fun<>
myfil00$myfil_make$opt_stdout
( fpath: strn ): bool(*succ/fail*)
//
(* ****** ****** *)
(* ****** ****** *)
//
(* ****** ****** *)(* ****** ****** *)(* ****** ****** *)
(* ****** ****** *)(* ****** ****** *)(* ****** ****** *)

Expand Down

0 comments on commit ac8d18a

Please sign in to comment.