build a function symbol table