I am trying to create a symbol table using an array of an array of structs.
Right now I just have an array of structs and it's created like this:
#define MAXSIZE 20 /* maximum number of symbols */
#define MAXSCOPE 10 /* maximum number of scope levels */
struct tableEntry {
char *name;
char *args;
int value;
int scope;
char *type;
int used;
} tableEntry [MAXSIZE];
It works, but I want to make something like this:
symbolTable[MAXSCOPE].tableEntry[MAXSIZE]
How would I do that? Does it make sense what I'm trying to do?