(compiler) Add interface support

This change adds support for the following keywords:

  • interface: Used similarly as the class keyword for defining an interface
  • implement: Explicit marker for methods implementing an interface method

Also, support for implementing interfaces (and later, base classes) have been added to the language.

Limitations

  • Interfaces can currently only be implemented directly, by a class. Creating an interface that implements another interface is currently not supported.
  • Class-based inheritance (base classes) is explicitly not supported yet.
Edited by Per Lundberg

Merge request reports

Loading
Loading