Faster parse

Group all elements we want to parse in one parser so that we can parse
the thrift file in one go.

@lxyu