Still trying to figure it out.
Want to make sure only the right things are line-like.
Signed-off-by: NeilBrown <neil@brown.name>
OptNL -> NEWLINE
|
+Newlines -> NEWLINE
+ | NEWLINE Newlines
+
$*statement
Statementlist -> SimpleStatements ${ $0 = $<1; }$
| Statements ${ $0 = $<1; }$
$0->expr->op = $2.txt;
$0->expr->right = $<3;
}$
- Statement -> SimpleStatements NEWLINE ${
+ Statement -> SimpleStatements Newlines ${
$0 = $<1;
}$
- | SimpleStatements ; NEWLINE ${
+ | SimpleStatements ; Newlines ${
$0 = $<1;
}$
- | NEWLINE ${ $0 = NULL; }$
| IfStatement ${ $0 = $<1; }$
IfStatement -> if Expression Block ${