9 lines
309 B
Java
9 lines
309 B
Java
|
// PA2 pass AST reflects operator precedence
|
||
|
class A {
|
||
|
public static void main(String [] args) {
|
||
|
// these two stmts should have the same expr AST
|
||
|
boolean b = false || true == 2 < -3 - 4 / 5 && !!false;
|
||
|
boolean b = false || ((true == (2 < ((-3) - (4 /5)))) && (!(!false)));
|
||
|
}
|
||
|
}
|