Thrift compiler now compiles both native Java and C++ code
Summary: Compiles to both C++ and Java, plus a host of other cool options like command line control over which languages to output code in
Reviewed By: aditya
Test Plan: The unit test checkins are coming momentarily...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664713 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/src/thrift.y b/compiler/src/thrift.y
index a406c8e..269d163 100644
--- a/compiler/src/thrift.y
+++ b/compiler/src/thrift.y
@@ -56,7 +56,6 @@
/** Thrift actions */
%token tok_typedef
%token tok_struct
-%token tok_function
%token tok_service
%token tok_enum
@@ -213,6 +212,7 @@
Function:
FunctionType FunctionModifiers tok_identifier '(' FieldList ')'
{
+ $5->set_name(std::string($3) + "_args");
$$ = new t_function($1, $3, $5);
y_field_val = 0;
}