THRIFT-136. s/async/oneway/ in lexer and parser variables
authorDavid Reiss <dreiss@apache.org>
Tue, 24 Mar 2009 20:00:47 +0000 (20:00 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 24 Mar 2009 20:00:47 +0000 (20:00 +0000)
This is an internal-only change.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757988 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/thriftl.ll
compiler/cpp/src/thrifty.yy

index ef49577..60a7f2c 100644 (file)
@@ -106,7 +106,7 @@ st_identifier ([a-zA-Z-][\.a-zA-Z_0-9-]*)
 "map"                { return tok_map;                  }
 "list"               { return tok_list;                 }
 "set"                { return tok_set;                  }
-"async"              { return tok_async;                }
+"async"              { return tok_oneway;               }
 "typedef"            { return tok_typedef;              }
 "struct"             { return tok_struct;               }
 "exception"          { return tok_xception;             }
index 743fa2c..b6bdf64 100644 (file)
@@ -120,7 +120,7 @@ int g_arglist = 0;
 /**
  * Function modifiers
  */
-%token tok_async
+%token tok_oneway
 
 /**
  * Thrift language keywords
@@ -189,7 +189,7 @@ int g_arglist = 0;
 
 %type<tstruct>   Throws
 %type<tservice>  Extends
-%type<tbool>     Async
+%type<tbool>     Oneway
 %type<tbool>     XsdAll
 %type<tbool>     XsdOptional
 %type<tbool>     XsdNillable
@@ -778,7 +778,7 @@ FunctionList:
     }
 
 Function:
-  CaptureDocText Async FunctionType tok_identifier '(' FieldList ')' Throws CommaOrSemicolonOptional
+  CaptureDocText Oneway FunctionType tok_identifier '(' FieldList ')' Throws CommaOrSemicolonOptional
     {
       $6->set_name(std::string($4) + "_args");
       $$ = new t_function($3, $4, $6, $8, $2);
@@ -787,8 +787,8 @@ Function:
       }
     }
 
-Async:
-  tok_async
+Oneway:
+  tok_oneway
     {
       $$ = true;
     }