achieve the enum class and some implement of the symtab