Add comma-separated list of type "slist" to thrift
Summary: Useful for API arguments
Reviewed By: tbr-dave
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664931 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/thrift.y b/compiler/cpp/src/thrift.y
index cfb3e44..fe56dad 100644
--- a/compiler/cpp/src/thrift.y
+++ b/compiler/cpp/src/thrift.y
@@ -75,6 +75,7 @@
%token tok_bool
%token tok_byte
%token tok_string
+%token tok_slist
%token tok_i16
%token tok_i32
%token tok_i64
@@ -637,6 +638,11 @@
pdebug("BaseType -> tok_string");
$$ = g_type_string;
}
+| tok_slist
+ {
+ pdebug("BaseType -> tok_slist");
+ $$ = g_type_slist;
+ }
| tok_bool
{
pdebug("BaseType -> tok_bool");