ruby script to generate symbol table