Added thrift mode

Mode for Apache thrift.

See: http://thrift.apache.org/docs/idl for the language definition
Examples: https://github.com/apache/thrift/blob/master/test/StressTest.thrift https://github.com/apache/thrift/blob/master/test/Include.thrift