Test3.java

 class Animal {
    private int type;
    private int wibble = 42;
    private int bar    = 66.6E1;
    private float pi   = 3.1415926535778;
    private boolean f  = 1 != 0;

    static {
         int t = 0;
         int s = 4;
         int p;
         p = s + (--t) ** (t - s);
         t++;
         p;
         int x = 0;
         1 | 2;
         s = t += 1;
         int z = s = p;
         z;
         s;
         p;
         while (x++ < 6) {
             if (x ==  1) {
                 native { PRINT "x == 1, skipping"; }
                 continue;
             } else {
                 native { PRINT GETV(x); SETV(t, 20); }
             }

             native { PRINT "Woohoo!"; }
         }

         for(int i=0; i<6; i++) {
             i;
         } 

         if (t) native { PRINT "t is true"; }
         while (1) {
             native { PRINT "Hello"; }
             break;
             native { PRINT "Doh"; }
         }
         
         native { n% = 1; }
         native {
             FOR i% = 1 TO 10;
                 PRINT i%;
             NEXT;
             n%=GET;
         }
         // Static initialiser
    }

    public Animal() {
        if (true) {
            break;
        } else
            break;

        if (false) break;
        if (3) {
            break;
        } else if (4) {
            break;
        } else {
            break;
        }

        type = 2;
        native { SETV(type, RND(100)); }
    }

/*    public Animal(int t) {
        type = t;
    }
*/
    public void print() {
        native {
            PRINT "Instance variable 'type' = " + STR$(GETV(type));
            PROCwwvj_dump(this%);
        }
        wibble++;
        native { PROCwwvj_dump(this%); }

        2 | 4;
        2 || 4;
        2 & 4;
        2 && 4;
        (1 + 2) ** 2 + 4 / 2;
    }

}

 class Main {
     static  {
         outer:while (true) {
             native { VDU ASC("#"); }
             if (1) break outer;
         }
         native { PRINT "Hello from Main's static initialiser."; }
     }
}

Generated by GNU Enscript 1.6.5.90.

Download Test3.java