diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-07-13 14:05:19 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-07-13 14:05:19 -0400 |
commit | 100832ec16c4cb7c4dc50e0e8946f72b6fca4c05 (patch) | |
tree | 3f47e645ff5cc083342521c15ab616ae60d4ccba | |
parent | 341263ccecb5b112703633dedcd61970c43f72ae (diff) |
Replace pc.c with mypc.c
pc.c is written over by bison.
-rw-r--r-- | mypc.c (renamed from pc.c) | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -2,6 +2,12 @@ #include <stdlib.h> #include <assert.h> +#include "y.tab.h" +#include "pc.h" + +extern char *yytext; +extern int line_num; + char* pretty_type(t) int t; { @@ -119,3 +125,10 @@ char* msg; #endif return 0; } + +int main() +{ + yyparse(); + + return 0; +} |