3 string gets() { return "S\n"; }
7 s = gets(); // 0 params
9 print("A ", "B\n"); // 2 params
10 print("A ", "B ", "C\n"); // more params
11 print(gets()); // 0-param call in call
12 print(gets(), "next\n"); // 0-param call and another
13 print("-> ", gets()); // param + 0-param call
14 print(ftos(x), "\n"); // param-call + another
15 print(x ? "xA\n" : "xB\n"); // ternary in PAREN_FUNC
16 print(!x ? "xA\n" : "xB\n"); // ternary in PAREN_FUNC
20 // PAREN_TERNARY + PAREN_INDEX
21 arr[x ? 0 : 1] += 100;
22 print(ftos(arr[0]), "\n");
23 print(ftos(arr[1]), "\n");
24 print(ftos(arr[x ? 0 : 1]), "\n");
25 print(ftos(arr[!x ? 0 : 1]), "\n");
27 // loops with comma operators
29 for (i = 0, j = 0; i < x; ++i)
33 // if + PAREN_TERNARY2
39 // PAREN_FUNC in PAREN_EXPR
40 print(("Is this wrong ", "now?\n"));