Thrift compiler support for inline PHP client code
Summary: Option to generate inline PHP code, as well as support for the async modifier keyword and the abstraction of function calls into a send and recv component
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664740 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/src/thrift.l b/compiler/src/thrift.l
index 33cbda8..9d2944a 100644
--- a/compiler/src/thrift.l
+++ b/compiler/src/thrift.l
@@ -33,6 +33,7 @@
{symbol} { return yytext[0]; }
+"void" { return tok_void; }
"byte" { return tok_byte; }
"string" { return tok_string; }
"i32" { return tok_i32; }
@@ -44,7 +45,6 @@
"list" { return tok_list; }
"set" { return tok_set; }
-"void" { return tok_void; }
"async" { return tok_async; }
"typedef" { return tok_typedef; }
@@ -52,6 +52,7 @@
"service" { return tok_service; }
"enum" { return tok_enum; }
+
{intconstant} { yylval.iconst = atoi(yytext) ; return tok_int_constant; }
{identifier} { yylval.id = strdup(yytext); return tok_identifier; }