X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fapc.git;a=blobdiff_plain;f=src%2Ftestapc.c;h=d55f97de0fe445acc4700bbd86ddc136bd628353;hp=77b825e2826e80e374b5c282ff06e1419e963a13;hb=HEAD;hpb=44adcae5601d919ab63f8241ebac4ddfc0bc69f5 diff --git a/src/testapc.c b/src/testapc.c index 77b825e..d55f97d 100644 --- a/src/testapc.c +++ b/src/testapc.c @@ -14,13 +14,13 @@ #include //exit #include //getopt /* Internal */ -#include //bison -#include //ir +#include "parser.tab.h" //bison +#include "ir.h" //ir /* Import apc.c but redefine its primary symbols for jumping */ #define main apc_main #define yyparse testapc_yyparse -#include +#include "apc.c" #undef yyparse #undef main @@ -110,13 +110,10 @@ int test_yyparse tok_string = $(T); \ tok_pattern[LOFFS] = C; \ break - { TOK_CASE(STR,'s'); - TOK_CASE(NAME,'s'); + { TOK_CASE(NAME,'s'); TOK_CASE(REF,'x'); - TOK_CASE(FPTR,'x'); TOK_CASE(NUM,'i'); TOK_CASE(SS,'i'); - TOK_CASE(SSD,'i'); TOK_CASE(CLOPEN,'i'); TOK_CASE(CLCLOSE,'i'); default: @@ -140,7 +137,9 @@ int test_yyparse done: printf(";\n" GREEN "Done" CLRC ".\n"); return 0; +#if 0 error: printf(";\n" RED "FAILED" CLRC ".\n"); return -1; +#endif }