Thrift generation for Java
Summary: Java works, benchmark roundtrip at around 3ms, so right in between C++ and PHP
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664775 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/thrift.y b/compiler/cpp/src/thrift.y
index 069d6c8..e738180 100644
--- a/compiler/cpp/src/thrift.y
+++ b/compiler/cpp/src/thrift.y
@@ -39,6 +39,7 @@
%token tok_namespace
/** Base datatypes */
+%token tok_bool
%token tok_byte
%token tok_string
%token tok_i16
@@ -368,6 +369,11 @@
pdebug("BaseType -> tok_string");
$$ = g_program->get_string_type();
}
+| tok_bool
+ {
+ pdebug("BaseType -> tok_bool");
+ $$ = g_program->get_bool_type();
+ }
| tok_byte
{
pdebug("BaseType -> tok_byte");