I still don't get 100% due to some case labels which gcov think are not
tested, but I don't understand why.
Signed-off-by: NeilBrown <neil@brown.name>
+ // different parsing options
+ for {
+ x:=1; sum := 0
+ } then {
+ x = x + 1
+ } while {
+ use x < 10
+ } do {
+ sum = sum + x
+ } case 1 {
+ print "impossible"
+ }
+
###### output: cond_loop
Success
1 2 4 8 16 32 64
###### output: cond_loop
Success
1 2 4 8 16 32 64
- return tl - tr; // NOTEST
switch (tl->vtype) {
case Vlabel: cmp = left->label == right->label ? 0 : 1; break;
case Vnum: cmp = mpq_cmp(left->num, right->num); break;
switch (tl->vtype) {
case Vlabel: cmp = left->label == right->label ? 0 : 1; break;
case Vnum: cmp = mpq_cmp(left->num, right->num); break;
}$
| IN OptNL Statementlist OUT ${ $0 = $<Sl; }$
}$
| IN OptNL Statementlist OUT ${ $0 = $<Sl; }$
- OpenBlock -> OpenScope { IN OptNL Statementlist OUT OptNL } ${ $0 = $<Sl; // UNTESTED
- }$
+ OpenBlock -> OpenScope { IN OptNL Statementlist OUT OptNL } ${ $0 = $<Sl; }$
| OpenScope { SimpleStatements } ${ $0 = reorder_bilist($<SS); }$
| OpenScope SimpleStatements ; ${ $0 = reorder_bilist($<SS); }$
| OpenScope SimpleStatements EOL ${ $0 = reorder_bilist($<SS); }$
| IN OpenScope OptNL Statementlist OUT ${ $0 = $<Sl; }$
| OpenScope { SimpleStatements } ${ $0 = reorder_bilist($<SS); }$
| OpenScope SimpleStatements ; ${ $0 = reorder_bilist($<SS); }$
| OpenScope SimpleStatements EOL ${ $0 = reorder_bilist($<SS); }$
| IN OpenScope OptNL Statementlist OUT ${ $0 = $<Sl; }$
- UseBlock -> { OpenScope IN OptNL Statementlist OUT OptNL } ${ $0 = $<Sl; // UNTESTED
- }$
+ UseBlock -> { IN OpenScope OptNL Statementlist OUT OptNL } ${ $0 = $<Sl; }$
| { OpenScope SimpleStatements } ${ $0 = reorder_bilist($<SS); }$
| IN OpenScope OptNL Statementlist OUT ${ $0 = $<Sl; }$
| { OpenScope SimpleStatements } ${ $0 = reorder_bilist($<SS); }$
| IN OpenScope OptNL Statementlist OUT ${ $0 = $<Sl; }$
- ColonBlock -> { IN OptNL Statementlist OUT OptNL } ${ $0 = $<Sl; // UNTESTED
- }$
+ ColonBlock -> { IN OptNL Statementlist OUT OptNL } ${ $0 = $<Sl; }$
| { SimpleStatements } ${ $0 = reorder_bilist($<SS); }$
| : SimpleStatements ; ${ $0 = reorder_bilist($<SS); }$
| : SimpleStatements EOL ${ $0 = reorder_bilist($<SS); }$
| { SimpleStatements } ${ $0 = reorder_bilist($<SS); }$
| : SimpleStatements ; ${ $0 = reorder_bilist($<SS); }$
| : SimpleStatements EOL ${ $0 = reorder_bilist($<SS); }$