added enum parsing support for typedef