Fix incorrect interpretation of test ListLabelForClosureContext

This commit is contained in:
Sam Harwell 2015-05-22 15:39:08 -05:00
parent ae52f2708a
commit 131599af1a
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ grammar(grammarName) ::= <<
grammar <grammarName>;
ifStatement
@after {
<DeclareLocal("items","$ctx.elseIfStatement()")>
<DeclareListLocal("items","$ctx.elseIfStatement()")>
}
: 'if' expression
( ( 'then'

View File

@ -158,6 +158,8 @@ Concat(a,b) ::= "<a><b>"
DeclareLocal(s,v) ::= "Object <s> = <v>;"
DeclareListLocal(s,v) ::= "List <s> = <v>;"
AssignLocal(s,v) ::= "<s> = <v>;"
InitIntMember(n,v) ::= <%int <n> = <v>;%>