Change Smalltalk grammar to allow empty list of temporaries.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36662 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2013-05-26 16:14:13 +00:00
parent 41047a6341
commit f1d9694b1c
3 changed files with 1006 additions and 667 deletions

View file

@ -1,3 +1,8 @@
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
* STGrammar.y (temporaries): Allow empty list.
* STGrammar.m: Regenerated.
2013-05-26 Wolfgang Lux <wolfgang.lux@gmail.com>
* NSNumber+additions.h:

File diff suppressed because it is too large Load diff

View file

@ -162,8 +162,14 @@ keyword_list: keyword variable_name
}
;
temporaries: TK_BAR variable_list TK_BAR
{ $$ = $2; }
temporaries: TK_BAR TK_BAR
{
$$ = [NSMutableArray array];
}
| TK_BAR variable_list TK_BAR
{
$$ = $2;
}
;
variable_list: variable_name