aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-07-13 14:05:19 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-07-13 14:05:19 -0400
commit100832ec16c4cb7c4dc50e0e8946f72b6fca4c05 (patch)
tree3f47e645ff5cc083342521c15ab616ae60d4ccba
parent341263ccecb5b112703633dedcd61970c43f72ae (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
diff --git a/pc.c b/mypc.c
index 19a7767..e8deeb1 100644
--- a/pc.c
+++ b/mypc.c
@@ -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;
+}