flex-bison-in-action/code.txt

55 lines
856 B
Plaintext

func FUNC_1(a, b, c) {
for (i = 1; i < 3; i = i + 1) {
print x;
}
x = x + 1
a = a + 1;
}
func FUNC_2() {
FUNC_1(1%123,(2-8)*2+2,3*5); // math expr in args
FUNC_1(1,2,FUNC_1(1,2,3)); // composition
do {
x = x + 1;
} while(x < 5);
x = 5
}
func main()
{
// 123123132
/* test */
x = 2 + 1 % 1;;
if (!x && 1 || (x + (-100))) { // comment
x = 3;
if (x == 3) {
x = 5;
}
} else {
x = 5; // comment
}
if (x) {
x = 3; // comment
}
x = z + 3 + 5; // comment
{
x = -10;
y = (x + +5) % 2;
while (x + 1) {
z = y * +2 / -(5 * ( ((3)) )); /* comment*/
}
}
print x;
while (1) {
x = x + 1;
}
return x / 2 + 5; /* comment*//* comment*//* comment*/
}