-
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
12 changed files
with
375 additions
and
12 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Makefile_xats2js |
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,58 @@ | ||
######################################################################## | ||
# | ||
# For compiling xatsopt_typing to JS | ||
# | ||
######################################################################## | ||
# | ||
# HX-2024-03-25: | ||
# Mon 25 Mar 2024 06:06:29 PM EDT | ||
# The compiler is srcgen1/xats2js | ||
# | ||
######################################################################## | ||
CAT=cat | ||
CPF=cp -f | ||
ECHO=echo | ||
NODE=node | ||
NODE=node \ | ||
--stack-size=4096 | ||
NODE=node \ | ||
--stack-size=4096 \ | ||
--max-old-space-size=4096 | ||
######################################################################## | ||
XSHARED=${XATSJSD}/xshared | ||
XATS2JS=${XATSJSD}/bin/xats2js | ||
######################################################################## | ||
XATSJSD=\ | ||
./../../srcgen1/xats2js/srcgenx | ||
######################################################################## | ||
LIBXATSOPT_JS="./../lib/libxatsopt.js" | ||
######################################################################## | ||
XATS2JS_PRELUDE="$(XSHARED)/runtime/xats2js_prelude.js" | ||
XATS2JS_PRELUDE_NODE="$(XSHARED)/runtime/xats2js_prelude_node.js" | ||
XATS2JS_XATSLIB_NODE="$(XSHARED)/runtime/xats2js_xatslib_node.js" | ||
######################################################################## | ||
# | ||
all:: \ | ||
xatsopt_typing | ||
xatsopt_typing:: \ | ||
xatsopt_typing.dats ; \ | ||
$(CAT) \ | ||
$(XATS2JS_PRELUDE) > $@_dats.js && \ | ||
$(CAT) \ | ||
$(XATS2JS_PRELUDE_NODE) >> $@_dats.js && \ | ||
$(CAT) \ | ||
$(XATS2JS_XATSLIB_NODE) >> $@_dats.js && \ | ||
$(CAT) $(LIBXATSOPT_JS) >> $@_dats.js && \ | ||
$(XATS2JS) --output-a $@_dats.js --dynamic [email protected] | ||
# | ||
######################################################################## | ||
# | ||
# HX: for cleaning up | ||
# | ||
clean:: ; rm -f *~ | ||
# | ||
cleanall:: clean | ||
cleanall:: ; rm -f ./xatsopt_typing_dats.js | ||
# | ||
######################################################################## | ||
###################### end of [Makefile_xats2js] ####################### |
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,65 @@ | ||
(***********************************************************************) | ||
(* *) | ||
(* 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 | ||
// | ||
Thu 29 Aug 2024 08:38:27 AM EDT | ||
// | ||
Authoremail: gmhwxiATgmailDOTcom | ||
*) | ||
(* ****** ****** *) | ||
(* ****** ****** *) | ||
#include | ||
"./../HATS/libxatsopt.hats" | ||
(* ****** ****** *) | ||
(* ****** ****** *) | ||
#include | ||
"./../HATS/xatsopt_sats.hats" | ||
#include | ||
"./../HATS/xatsopt_dats.hats" | ||
(* ****** ****** *) | ||
(* ****** ****** *) | ||
// | ||
val ret = | ||
the_fxtyenv_pvsload() | ||
val ( ) = prerrln | ||
("the_fxtyenv_pvsload() = ", ret) | ||
// | ||
val ret = | ||
the_tr12env_pvsload() | ||
val ( ) = prerrln | ||
("the_tr12env_pvsload() = ", ret) | ||
// | ||
(* ****** ****** *) | ||
(* ****** ****** *) | ||
// | ||
(* ****** ****** *)(* ****** ****** *) | ||
(* ****** ****** *)(* ****** ****** *) | ||
|
||
(* end of [ATS3/XANADU_srcgen2_UTIL_xatstop_typing.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
if [ ! "$XATSHOME" ] ; then | ||
export \ | ||
XATSHOME=/home/hwxi/Research/ATS-Xanadu | ||
fi # end-if | ||
|
||
export NODE=node | ||
export XATS2JS_OUT=\ | ||
"${XATSHOME}/srcgen2/xats2js/srcgenx/bin/xats2js.out" | ||
|
||
if [ -f "$XATS2JS_OUT" ] ; then | ||
${NODE} ${XATS2JS_OUT} "$@" | ||
else | ||
# if build failed or "make cleanall" was executed | ||
echo "please execute `make all` to build [xats2js.out]" | ||
fi # end-if |
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
File renamed without changes.
Oops, something went wrong.