all_productions.mj 818 Bytes
Newer Older
ufebl's avatar
ufebl committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* Complete example using all productions */
class AllProductions {
    public int field;
    public boolean method(int a, String b) throws UsefulException {
        return b;
    }
    
    public static void main(String[] args) throws SomeException {
        ;
        if (true);else;
        while(false);
        1==1;
        {
            test[12] = 12;
            true || true;
            false && false;
            a == b != c; 
            a < b <= c > d >= e;
            a + b - c;
            a * b / c % d;
            -a;
            !b;
            foo.bar(2, true);
            int b = foo.a;
            null;
            123;
            test;
            test();
            this;
            (1 + 2); 
            Test t = new Test();
            int[][] c = new int[12][];
        }
    }
}