Mercurial > repos > tabletprog
view compile @ 256:03a07e540b9f
Memoize results of match:where:yield and matchOne: macros. Fix opsym rule to use the symbol ast node.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 01 Jun 2014 00:14:36 -0700 |
parents | 5071d601fe70 |
children | cba0cb39517a |
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 echo gcc $@ -o $bin $cname runtime/object.c -lgc gcc $@ -o $bin $cname runtime/object.c -lgc