diff --git a/packages/ngnk/1.0.0/build.sh b/packages/ngnk/1.0.0/build.sh new file mode 100755 index 0000000..b437840 --- /dev/null +++ b/packages/ngnk/1.0.0/build.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e + +git clone "https://codeberg.org/ngn/k" k +cd k + +git checkout 040f73b56f379a8298cb1747075c9e947dfe0e42 +make CC=gcc \ No newline at end of file diff --git a/packages/ngnk/1.0.0/environment b/packages/ngnk/1.0.0/environment new file mode 100644 index 0000000..2ad3aad --- /dev/null +++ b/packages/ngnk/1.0.0/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export PATH=$PWD/bin:$PATH +export K_PATH=$PWD/k \ No newline at end of file diff --git a/packages/ngnk/1.0.0/metadata.json b/packages/ngnk/1.0.0/metadata.json new file mode 100644 index 0000000..9b467f1 --- /dev/null +++ b/packages/ngnk/1.0.0/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "ngnk", + "version": "1.0.0", + "aliases": ["k"] +} \ No newline at end of file diff --git a/packages/ngnk/1.0.0/run b/packages/ngnk/1.0.0/run new file mode 100644 index 0000000..5309fc9 --- /dev/null +++ b/packages/ngnk/1.0.0/run @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +$K_PATH/k "$@" \ No newline at end of file diff --git a/packages/ngnk/1.0.0/test.k b/packages/ngnk/1.0.0/test.k new file mode 100644 index 0000000..18627b8 --- /dev/null +++ b/packages/ngnk/1.0.0/test.k @@ -0,0 +1 @@ +`0:"OK" diff --git a/readme.md b/readme.md index 040e74d..39643a1 100644 --- a/readme.md +++ b/readme.md @@ -349,6 +349,7 @@ Content-Type: application/json `javascript`, `jelly`, `julia`, +`k`, `kotlin`, `lisp`, `llvm_ir`,