view interps/c-intercal/c-intercal @ 11926:cd854f00e03f draft

<shachaf> mkx bin/as-encoding//echo "$1" | as -o /tmp/out.o - && objdump -d /tmp/out.o | grep -P \'^ *\\d+:\' | sed \'s/^[^\\t]*\\t//; s/ *\\t/: /g\'
author HackEso <hackeso@esolangs.org>
date Sun, 08 Sep 2019 02:17:16 +0000
parents afc311c3d00b
children
line wrap: on
line source

#!/bin/bash
export CPATH=/hackenv/interps/c-intercal/inst/include/ick-0.29
if [ ! "$1" ]
then
    exit 1
fi

INTERCAL="`dirname $0`/inst"

cp "$1" /tmp/$$.i
$INTERCAL/bin/ick /tmp/$$.i
if [ -e /tmp/$$ ]
then
    /tmp/$$
fi
rm -f /tmp/$$.i /tmp/$$