Skip to content

Instantly share code, notes, and snippets.

@sxhmilyoyo
Created May 11, 2018 14:11
Show Gist options
  • Save sxhmilyoyo/c82e9b0dec024ff8778d836ca6caf9f6 to your computer and use it in GitHub Desktop.
Save sxhmilyoyo/c82e9b0dec024ff8778d836ca6caf9f6 to your computer and use it in GitHub Desktop.
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