From 30caeaab671f7fe7d7582ce7e645302a139c15a0 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 19 Apr 2020 01:05:46 -0400 Subject: new for loop system: cgen --- run | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 run (limited to 'run') diff --git a/run b/run new file mode 100644 index 0000000..2237ab5 --- /dev/null +++ b/run @@ -0,0 +1,18 @@ +#!/bin/sh +if [ "$2" = "" ]; then + tocf=test.toc +else + tocf="$2" +fi +if [ "$1" = "noq" ]; then + FLAGS= +else + FLAGS="-q" +fi + +./toc $tocf || exit 1 +if [ "$1" = "c" ]; then + gcc out.c -g -Wno-builtin-declaration-mismatch && ./a.out +elif [ "$1" = "pc" ]; then + cat out.c +fi -- cgit v1.2.3