From e199ae0b9b213f3549398711a793a7f5232da132 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Thu, 30 Jan 2020 21:25:30 -0500 Subject: deleted old files --- pkg.sh | 21 --------------------- point.sh | 5 ----- test.toc | 4 ++++ types.c | 2 +- 4 files changed, 5 insertions(+), 27 deletions(-) delete mode 100755 pkg.sh delete mode 100755 point.sh diff --git a/pkg.sh b/pkg.sh deleted file mode 100755 index 3ac30dd..0000000 --- a/pkg.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -std_things="io arr" -cd std - -VALGRIND="valgrind --track-origins=yes --exit-on-first-error=yes --error-exitcode=1 -q" -if [ "$1" = "nov" ]; then - VALGRIND="" -fi -if [ "$CC" = "" ]; then - CC=gcc -fi - -for thing in $std_things; do - echo "compiling $thing" - $VALGRIND ../toc $thing.toc -o $thing.c || exit 1 -done -cd .. -echo "compiling test.toc" -$VALGRIND ./toc test.toc || exit 1 -$CC out.c std/*.c -Wno-builtin-declaration-mismatch || exit 1 -./a.out diff --git a/point.sh b/point.sh deleted file mode 100755 index 8156f68..0000000 --- a/point.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -valgrind -q ./toc point.toc -o point.c || exit 1 -valgrind -q ./toc test.toc || exit 1 -gcc point.c out.c -o a.out -O0 -g || exit 1 -./a.out || exit 1 diff --git a/test.toc b/test.toc index d8916ac..f511440 100644 --- a/test.toc +++ b/test.toc @@ -1,6 +1,10 @@ foo ::= nms { bar ::= 12; }; +yep :: Namespace = nms { +bar ::= 12; +}; + main ::= fn() { }; \ No newline at end of file diff --git a/types.c b/types.c index 517c1b7..bbed29c 100644 --- a/types.c +++ b/types.c @@ -165,7 +165,7 @@ static bool expr_must_lval(Expression *e) { } -/* does this type have a Type or a Package in it? (e.g. [5]Type, &&Type) */ +/* does this type have a Type or a Namespace in it? (e.g. [5]Type, &&Namespace) */ static bool type_is_compileonly(Type *t) { assert(t->flags & TYPE_IS_RESOLVED); switch (t->kind) { -- cgit v1.2.3