-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
241 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
////////////////////////////////////////////////////////////////////////. | ||
// //. | ||
// Applied Type System //. | ||
// //. | ||
////////////////////////////////////////////////////////////////////////. | ||
|
||
/* | ||
** ATS/Xanadu - Unleashing the Potential of Types! | ||
** Copyright (C) 2024 Hongwei Xi, ATS Trustful Software, Inc. | ||
** All rights reserved | ||
** | ||
** ATS is free software; you can redistribute it and/or modify it under | ||
** the terms of the GNU GENERAL PUBLIC LICENSE (GPL) as published by the | ||
** Free Software Foundation; either version 3, or (at your option) any | ||
** later version. | ||
** | ||
** ATS is distributed in the hope that it will be useful, but WITHOUT ANY | ||
** WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
** for more details. | ||
** | ||
** You should have received a copy of the GNU General Public License | ||
** along with ATS; see the file COPYING. If not, please write to the | ||
** Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA | ||
** 02110-1301, USA. | ||
*/ | ||
|
||
////////////////////////////////////////////////////////////////////////. | ||
////////////////////////////////////////////////////////////////////////. | ||
/* | ||
Author: Hongwei Xi | ||
Sun 01 Sep 2024 08:04:48 AM EDT | ||
Authoremail: gmhwxiATgmailDOTcom | ||
*/ | ||
////////////////////////////////////////////////////////////////////////. | ||
////////////////////////////////////////////////////////////////////////. | ||
// | ||
function | ||
XATS2JS_NODE_g_print(obj) | ||
{ | ||
let rep = obj.toString(); | ||
process.stdout.write(rep); | ||
return; // XATS2JS_NODE_g_print | ||
} | ||
// | ||
////////////////////////////////////////////////////////////////////////. | ||
// | ||
function | ||
XATS2JS_NODE_sint_print | ||
(i0) | ||
{ | ||
XATS2JS_NODE_g_print(i0); | ||
return; // XATS2JS_NODE_sint_print | ||
} | ||
////////////////////////////////////////////////////////////////////////. | ||
// | ||
function | ||
XATS2JS_NODE_bool_print | ||
(b0) | ||
{ | ||
XATS2JS_NODE_g_print(b0); | ||
return; // XATS2JS_NODE_bool_print | ||
} | ||
////////////////////////////////////////////////////////////////////////. | ||
// | ||
function | ||
XATS2JS_NODE_char_print | ||
(c0) | ||
{ | ||
let cs = | ||
String.fromCharCode(c0) | ||
XATS2JS_NODE_g_print(cs); | ||
return; // XATS2JS_NODE_char_print | ||
} | ||
// | ||
////////////////////////////////////////////////////////////////////////. | ||
// | ||
function | ||
XATS2JS_NODE_strn_print | ||
(cs) | ||
{ | ||
XATS2JS_NODE_g_print(cs); | ||
return; // XATS2JS_NODE_strn_print | ||
} | ||
////////////////////////////////////////////////////////////////////////. | ||
////////////////////////////////////////////////////////////////////////. | ||
// end of [ATS3/XANADU_prelude_DATS_CATS_JS_strn000.cats] | ||
////////////////////////////////////////////////////////////////////////. | ||
////////////////////////////////////////////////////////////////////////. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
(***********************************************************************) | ||
(* *) | ||
(* Applied Type System *) | ||
(* *) | ||
(***********************************************************************) | ||
|
||
(* | ||
** ATS/Xanadu - Unleashing the Potential of Types! | ||
** Copyright (C) 2024 Hongwei Xi, ATS Trustful Software, Inc. | ||
** All rights reserved | ||
** | ||
** ATS is free software; you can redistribute it and/or modify it under | ||
** the terms of the GNU GENERAL PUBLIC LICENSE (GPL) as published by the | ||
** Free Software Foundation; either version 3, or (at your option) any | ||
** later version. | ||
** | ||
** ATS is distributed in the hope that it will be useful, but WITHOUT ANY | ||
** WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
** for more details. | ||
** | ||
** You should have received a copy of the GNU General Public License | ||
** along with ATS; see the file COPYING. If not, please write to the | ||
** Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA | ||
** 02110-1301, USA. | ||
*) | ||
|
||
(* ****** ****** *) | ||
(* ****** ****** *) | ||
// | ||
(* | ||
Author: Hongwei Xi | ||
Sun 01 Sep 2024 07:19:48 AM EDT | ||
Authoremail: gmhwxiATgmailDOTcom | ||
*) | ||
// | ||
(* ****** ****** *) | ||
(* ****** ****** *) | ||
// | ||
#impltmp | ||
sint_print<> = | ||
XATS2JS_NODE_sint_print | ||
where | ||
{ | ||
#extern | ||
fun | ||
XATS2JS_NODE_sint_print(b0: sint): void = $extnam() | ||
} | ||
// | ||
(* ****** ****** *) | ||
// | ||
#impltmp | ||
bool_print<> = | ||
XATS2JS_NODE_bool_print | ||
where | ||
{ | ||
#extern | ||
fun | ||
XATS2JS_NODE_bool_print(b0: bool): void = $extnam() | ||
} | ||
// | ||
(* ****** ****** *) | ||
// | ||
#impltmp | ||
char_print<> = | ||
XATS2JS_NODE_char_print | ||
where | ||
{ | ||
#extern | ||
fun | ||
XATS2JS_NODE_char_print(b0: char): void = $extnam() | ||
} | ||
// | ||
(* ****** ****** *) | ||
// | ||
#impltmp | ||
strn_print<> = | ||
XATS2JS_NODE_strn_print | ||
where | ||
{ | ||
#extern | ||
fun | ||
XATS2JS_NODE_strn_print(cs: strn): void = $extnam() | ||
} | ||
// | ||
(* ****** ****** *) | ||
(* ****** ****** *) | ||
// | ||
(* ****** ****** *)(* ****** ****** *) | ||
(* ****** ****** *)(* ****** ****** *) | ||
|
||
(* end of [ATS3/XANADU_prelude_DATS_CATS_JS_axrf000.dats] *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.