From 35adafca1cbde050c7d9a9f8858a59dc700a9e26 Mon Sep 17 00:00:00 2001
From: lang0909 <lang0909@ajou.ac.kr>
Date: Wed, 28 Aug 2019 16:19:50 +0900
Subject: [PATCH] Add header file

---
 inter.h | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 inter.h

diff --git a/inter.h b/inter.h
new file mode 100644
index 0000000..62c721a
--- /dev/null
+++ b/inter.h
@@ -0,0 +1,42 @@
+#include<stdio.h>
+#include<stdlib.h>
+#include<string.h>
+
+typedef enum {typeId, typeCon, typeReal, typeOpr} typeEnum;
+
+typedef struct{
+    char str[20];
+    int index;
+}nodeId;
+
+typedef struct{
+    int conValue;
+}nodeCon;
+
+typedef struct{
+    double realValue;
+}nodeReal;
+
+typedef struct{
+    int optn;
+    struct nodeType * list[2];
+}nodeOpr;
+
+typedef struct nodeType{
+    typeEnum type;
+
+    union{
+	nodeId id;
+	nodeCon con;
+	nodeReal real;
+	nodeOpr opr;
+    };
+}Node;
+
+typedef struct{
+    char symbol[20];
+    double rv;
+}SYMBOL_TABLE;
+
+extern SYMBOL_TABLE symbol_table[20];
+extern int symbol_index;
-- 
GitLab