Skip to content

Instantly share code, notes, and snippets.

@sparverius
sparverius / acc-install.sh
Created September 18, 2018 22:45
Install script for acc - a pretty-printer for the ats compiler
#!/bin/bash
#
# Install script for acc
# acc is a pretty-printer for the ats compiler
# For more information about the project see:
# https://github.com/sparverius/ats-acc/blob/master/README.md
#
# Script steps:
# - pull acc from repo https://github.com/sparverius/ats-acc
// results in type error as expected
#include "share/atspre_staload.hats"
implement main0() = {
val x = $list_vt{int}(1)
}
@sparverius
sparverius / Dockerfile
Created December 3, 2018 07:53
Test building release
FROM telos/ats1:latest
RUN cd /tmp && wget https://raw.githubusercontent.com/sparverius/ATS-Postiats/master/share/SCRIPT/buildrel.sh
RUN cd /tmp && bash buildrel.sh 0.3.13 all
@sparverius
sparverius / Dockerfile
Created December 3, 2018 09:16
ATS1 Dockerfile
FROM ubuntu:latest
RUN apt-get -qq update
RUN apt-get -qq install -y gcc make git wget time gawk \
automake libgmp-dev libgc-dev libjson-c-dev unzip
RUN apt-get -y clean
WORKDIR /home
# time (sh <(curl -ss -L https://gist.githubusercontent.com/sparverius/1a5750545fd023e65171377683af50fe/raw/b14ffd55ef91375b4d6f6242d38772d4988971bd/ats.sh))
TMPTGZ='https://github.com/sparverius/Temptory-Release/releases/download/0.0.2/ATS-Temptory-int-0.0.2.tgz'
echo "TMPTGZ = $TMPTGZ"
DIRNAME='ats-temptory'
TMPATH=${HOME}/"$DIRNAME"
DOTPRO=${HOME}/.profile
#!/bin/bash
version=$1
text=$2
branch=$(git rev-parse --abbrev-ref HEAD)
repo_full_name=$(git config --get remote.origin.url | sed 's/.*:\/\/github.com\///;s/.git$//')
token=$(git config --global github.token)
generate_post_data()
{
# (sh <(curl -sL https://gist.githubusercontent.com/sparverius/fe265920658f9d848f4502d7aeab0d50/raw/a50df9d058754cb31bca1bd8c6386120890d73b9/jupyter.sh))
_magicname='sparverius-jupyter-ats-kernel-d403ea2'
_magicdir=${HOME}/$_magicname
echo $PWD
cd ${HOME}
# time (sh <(curl -ss -L https://gist.githubusercontent.com/sparverius/1a5750545fd023e65171377683af50fe/raw/b14ffd55ef91375b4d6f6242d38772d4988971bd/ats.sh))
TMPTGZ='https://github.com/sparverius/Temptory-Release/releases/download/0.0.2/ATS-Temptory-int-0.0.2.tgz'
echo "TMPTGZ = $TMPTGZ"
HOMEQ="/content"
DIRNAME='ats-temptory'
TMPATH=${HOMEQ}/"$DIRNAME"
if not _
if ...
if ...
if ...
for block in self._._():
if ...
for ...
if _ is not None and not ...:
while True:
if _ == self._:
(* ****** ****** *)
#include
"share/atspre_staload.hats"
#include
"share/atspre_staload_libats_ML.hats"
(* ****** ****** *)
extern