Groenbech96 / J--Compiler-Implementation

MIT License
0 stars 0 forks source link

Interfaces codegen #79

Closed RMichelsen closed 4 years ago

RMichelsen commented 4 years ago

Parsers fixed to match book, codegen emits "class" instead of "interface" not sure if fixable (we use the CLEmitters addClass() method to create interfaces). Codegen looks similar to javac.

RMichelsen commented 4 years ago

Okay so after much investigation I've gotten the override behaviour to work (I think). It'd be nice if someone else could have a look and run some tests against the javac compiler, I've modelled the overriding rules after this. I am unsure if I missed some existing functionality in j-- that is supposed to make this easier, but for now I'm simply doing these steps one by one in Type.java