1 #include <stddef.h> 2 3 #include "parser.h" 4 5 #define PRINT(X) printf("%s\n", X); 6 #define PRINT_L(LBL, X) printf("%s: %s\n", LBL, X); 7 8 #ifndef RET_TYPE 9 #define RET_TYPE int 10 #endif 11 12 #include "parser.c" 13 main(int argc,char ** argv)14int main(int argc, char **argv) { 15 RET_TYPE ret; 16 pcc_context_t *ctx = pcc_create(NULL); 17 while (pcc_parse(ctx, &ret)); 18 pcc_destroy(ctx); 19 return 0; 20 } 21