djrieger / mjplusplus

A compiler for the MiniJava language
http://djrieger.github.io/mjplusplus/doc/doxygen/html/
6 stars 1 forks source link

Implement type equality check #16

Closed djrieger closed 9 years ago

ratefuchs commented 9 years ago

Maybe I try to redesign the way our types are organized. I'd propose the following approach:

While this would cost more space overhead for non-array types and could complicate some future functions, several other parts get easier: We need no special cases in Parser::parseType() and we could have easier equality checks.

Or is there any reason to separate ArrayType on the on side and BasicType on the other?

If I get an OK, I'd do the remodelling and implement the equality checks.

djrieger commented 9 years ago

I think this is best decided on Wednesday, when we have a chance to talk things through.