| Open SimpleStatements } ${ $0 = $<S; }$
| : SimpleStatements ${ $0 = $<SS; }$
| : StatementBlock ${ $0 = $<SB; }$
- StatementBlock -> Statementlist $$OUT ${ $0 = $<Sl; }$
+ StatementBlock -> Statementlist ${ $0 = $<Sl; }$
SimpleStatements -> SimpleStatements ; SimpleStatement ${
{
}$
SSline -> SimpleStatements NEWLINE ${ $0 = $<1; }$
Statement -> SSline ${ $0 = $<1; }$
- | IfStatement $$NEWLINE ${ $0 = $<1; }$
+ | IfStatement ${ $0 = $<1; }$
| Statement NEWLINE ${ $0 = $<1; }$
$RIGHT else
else if cond2:
there1 =x
there1a=x
+ if cond + cond2 :
+ hello = x;
+ hello2 = x;
+
+ sum = val +
+ val;
+
+ if condX:
+ foo = x *
+ x +
+ y
+ / two;
+ else if cond2:
+ there1 =x
+ there1a=x
there2=x
there3=x;
all = y;
if a:
if b:
c= d
+ else:
+ f=g
x = y
# File: itest.out
(mister=no);
(there=x);
(all=y);
+ if (cond+cond2):
+ (hello=x);
+ (hello2=x);
+ (sum=(val+val));
+ if condX:
+ (foo=((x*x)+(y/two)));
+ else:
+ if cond2:
+ (there1=x);
+ (there1a=x);
if (cond+cond2):
(hello=x);
(hello2=x);
if a:
if b:
(c=d);
+ else:
+ (f=g);
(x=y);