You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interfaces would be a necessary addition to the compiler, as many of the predefined classes use them a lot. This would require a new field interfaces: List[String]in the ClassDecl and either a new node InterfaceDecl or an additional parameter isInterface on the ClassDecl (for comparison: Java Reflections use the isInterface parameter). Method bodies are already optional, so the abstraction could be ensured in the semantic check.
One example could be: class java.lang.String extends Object implements [...], CharSequence, which implements the method public boolean contains(CharSequence)
Motivation
As we have implemented most of the basics in our Java subset, I would suggest we collect additions which we might add to our Compiler:)
Possible Additions (ticks speak for the Parser!)
for
loopsThe text was updated successfully, but these errors were encountered: