Make the compiler to support super.X/L.super.X which access super class' fields....
authorjzhou <jzhou>
Fri, 11 Nov 2011 21:08:41 +0000 (21:08 +0000)
committerjzhou <jzhou>
Fri, 11 Nov 2011 21:08:41 +0000 (21:08 +0000)
commit10832818dfeb5482be4982182418cf7f497a4a7d
tree5833897b1e83794400b6035c2db23175bcfc3e52
parent1d48db027be382416453caa04e46d6a121c1d1d8
Make the compiler to support super.X/L.super.X which access super class' fields. We might still not be able to correctly support access to super class' methods like super.foo(). Also fix another nested class bug. Previously the unit test StaticInnerClassTest was broken because of newly added inner class support. Note that nested class (static inner class) should NOT have reference to its surrounding class in its constructor as it is static and can be created without any outer class instance.
Robust/src/IR/Tree/BuildIR.java
Robust/src/IR/Tree/FieldAccessNode.java
Robust/src/IR/Tree/NameNode.java
Robust/src/IR/Tree/SemanticCheck.java
Robust/src/Parse/java14.cup
Robust/src/Tests/DoTests
Robust/src/Tests/inner.java
Robust/src/Tests/output/inner.output.goal [new file with mode: 0644]