generate an instruction set and build symbol tables from the passed AST