typedef enum {ConstSym, VarSym, TypeSym, ProcSym} kind;

typedef struct symbol {	/* symbol table entries: */
	char *name;		/* name */
	int scope;		/* scope level */
	kind kind;              /* symbol kind */
	Typerep type;           /* symbol type */
} *Symbol;

extern int level;

Symbol	install(char *),
	lookup(char *);
void	enterscope(void),
	exitscope(void);
