Created
May 11, 2018 14:11
-
-
Save sxhmilyoyo/c82e9b0dec024ff8778d836ca6caf9f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct variable { | |
int used; // 0: not used; 1: used | |
int flag; // 0: integer; 1: variable; 2: temporary; 3: operator | |
char *name; | |
int value; | |
}; | |
struct variable variables[TOTAL]; | |
struct variable temps[TOTAL]; | |
struct variable *varlookup(); | |
void inittemps(); | |
struct variable *gettemp(); | |
void freetemp(struct variable *t); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment