THRIFT-136. s/async/oneway/ in lexer and parser variables

This is an internal-only change.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757988 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Reiss 2009-03-24 20:00:47 +00:00
parent 9a863ee551
commit 6985a4205b
2 changed files with 6 additions and 6 deletions

View 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; }

View 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;
}