case's c compiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.c 224B

1234567891011121314151617
  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include "grammar.c"
  4. int main() {
  5. yycontext ctx;
  6. memset(&ctx, 0, sizeof (ctx));
  7. ctx.fp = stdin;
  8. while (yyparse(&ctx));
  9. printf("%p\n", ctx.p);
  10. return 0;
  11. }