view compile @ 124:1157639353e7

Add dummy handler for clicking a symbol while a lambda is selected. Fix the code for selecting the first inner node of an object literal.
author Mike Pavone <pavone@retrodev.com>
date Mon, 05 Aug 2013 21:38:38 -0700
parents 7f635666c73d
children 5071d601fe70
line wrap: on
line source

#!/bin/sh

cname=`basename $1`.c

if test -f "$cname"; then
	rm "$cname"
fi

./tpc $1 -o $cname

if test ! -s "$cname"; then
	echo "Compilation to C failed"
	exit 1
fi

bin=`echo $1 | sed s/\.tp//`
shift
gcc $@ -o $bin $cname runtime/object.c -lgc