aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+}