/* Is s in the symbol table */ extern int lookup(string s); /* Put s unconditionally into symbol table. */ extern void enter(string s); void check_id(string s) { if (lookup(s)) return; enter(s); generate("Declare", s, "Integer", ""); }