Skip to content
Snippets Groups Projects
Commit 35adafca authored by lang0909's avatar lang0909
Browse files

Add header file

parent 988213ce
No related branches found
No related tags found
No related merge requests found
Pipeline #2138 canceled
inter.h 0 → 100644
#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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment