From c613ec4abb31983babb6c87e637624a13ee60bd6 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 3 Apr 2007 03:43:22 +0000 Subject: Deleted the egg example...it was annoying me. --- parex/evaltest.c | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 parex/evaltest.c (limited to 'parex/evaltest.c') diff --git a/parex/evaltest.c b/parex/evaltest.c deleted file mode 100644 index 7e8641e..0000000 --- a/parex/evaltest.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * EVALTEST.C - part of the EGG system. - * - * Test program for the expression evaluator. - * - * By Shawn Hargreaves. - */ - - -#define USE_CONSOLE - - -#include -#include -#include - -#include "egg.h" - - - -int main() -{ - char buf[256]; - double result; - int error; - - srand(time(NULL)); - - printf("\nTest program for the EGG expression evaluator module.\n\nEnter a formula, or a blank line to quit.\n\n\n"); - - for (;;) { - printf("> "); - fflush(stdout); - - if (!fgets(buf, sizeof(buf), stdin) || (!buf[0])) - break; - - result = evaluate(buf, &error, NULL); - - if (error) - printf("\nError in expression!\n\n\n"); - else - printf("\nevaluate(\"%s\") = %f\n\n\n", buf, result); - } - - printf("\n\n"); - - return 0; -} - -- cgit v1.2.3