Strings in JSON style thrift constants do not need quotes

Summary: Cause it's just too much work to put in quotes sometimes. struct thing = { a : 325, bb : 5632} OBVIOUSLY a and bb are strings. Duh.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664882 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Slee 2006-11-29 03:37:04 +00:00
parent aa7671d041
commit 67fc63410d

View File

@ -372,6 +372,12 @@ ConstValue:
$$ = new t_const_value();
$$->set_string($1);
}
| tok_identifier
{
pdebug("ConstValue => tok_identifier");
$$ = new t_const_value();
$$->set_string($1);
}
| ConstList
{
pdebug("ConstValue => ConstList");