![]() |
Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members
a.hGo to the documentation of this file.00001 //#define DEBUG 00002 //#define DEBUGEXPR 00003 //#define YYDEBUG 1 00004 00005 00006 typedef struct linestruct 00007 { 00008 struct linestruct *next; 00009 int line; 00010 int parent; 00011 int child; 00012 char *the_str; 00013 } LINE; 00014 00015 typedef struct variablestruct 00016 { 00017 struct variablestruct *next; 00018 char name[40]; 00019 int ivalue; 00020 double value; 00021 double fnvalue; 00022 char svalue[1024]; 00023 } VARIABLE; 00024 00025 typedef struct varliststruct 00026 { 00027 VARIABLE *var[99]; 00028 int qty; 00029 } VARLIST; 00030 00031 typedef struct 00032 { 00033 double values[99]; 00034 int qty; 00035 } EXPRLIST; 00036 00037 typedef struct 00038 { 00039 long values[99]; 00040 int qty; 00041 } INTLIST; 00042 00043 typedef struct forloopstruct 00044 { 00045 struct forloopstruct *next; 00046 LINE *ln; 00047 VARIABLE *var; 00048 double tolimit; 00049 double step; 00050 LINE *reline; 00051 } NEXT; 00052 00053 typedef struct substruct 00054 { 00055 struct substruct *next; 00056 LINE *returnline; 00057 } SUB; 00058 00059 typedef struct openstruct 00060 { 00061 struct openstruct *next; 00062 char name[40]; 00063 FILE *fil; 00064 struct stat file_stat; 00065 int option_s; 00066 int option_d; 00067 int option_l; 00068 int option_r; 00069 } OPEN; 00070 00071 typedef struct datastruct 00072 { 00073 struct datastruct *next; 00074 int line; 00075 char *data; 00076 } DATA; 00077 00078 typedef struct funcstruct 00079 { 00080 struct funcstruct *next; 00081 char name[40]; 00082 VARIABLE *placeholder; 00083 LINE *fnline; 00084 } FUNC; 00085 00086 extern VARIABLE *variablebase; 00087 extern VARIABLE *placeholder; 00088 extern LINE *linebase; 00089 extern LINE *current_line; 00090 extern LINE *next_line; 00091 extern NEXT *nextbase; 00092 extern SUB *subbase; 00093 extern OPEN *openbase; 00094 extern DATA *database; 00095 extern FUNC *funcbase; 00096 extern char the_str[1024]; 00097 extern int the_ptr; 00098 extern short running; 00099 extern char run_program[40]; 00100 00101 int yylex(); 00102 void yyerror(char *); 00103 void addlist(void *,void *); 00104 VARIABLE *reg_variable(char *name,EXPRLIST *); 00105 void text_output(char *); 00106 void file_input(char *,int); 00107 void file_init(void); 00108 void removelist(void *,void *); 00109 void read_data(VARLIST *); |