Thrift-1366: Delphi generator, lirbrary and unit test.
Client: delphi
Patch: Kenjiro Fukumitsu
Adding delphi XE generator, lib and unit tests.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1185688 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/thrifty.yy b/compiler/cpp/src/thrifty.yy
index c916604..cc024a1 100644
--- a/compiler/cpp/src/thrifty.yy
+++ b/compiler/cpp/src/thrifty.yy
@@ -110,6 +110,7 @@
%token tok_smalltalk_prefix
%token tok_cocoa_prefix
%token tok_csharp_namespace
+%token tok_delphi_namespace
/**
* Base datatype keywords
@@ -393,6 +394,15 @@
g_program->set_namespace("csharp", $2);
}
}
+/* TODO(dreiss): Get rid of this once everyone is using the new hotness. */
+| tok_delphi_namespace tok_identifier
+ {
+ pwarning(1, "'delphi_namespace' is deprecated. Use 'namespace delphi' instead");
+ pdebug("Header -> tok_delphi_namespace tok_identifier");
+ if (g_parse_mode == PROGRAM) {
+ g_program->set_namespace("delphi", $2);
+ }
+ }
Include:
tok_include tok_literal