jmltoolkit / jmlparser

A Parser for JML and Java.
https://wadoon.github.io/jmlparser/
GNU Lesser General Public License v3.0
5 stars 1 forks source link

JmlImportDeclaration #55

Open wadoon opened 1 year ago

wadoon commented 1 year ago

Jml imports (//@ import fqdn.Class;) are currently not mapped to regularly import statements (attribute isJmlModel).

Creating an own AST may be beneficial, e.g., NodeWithJmlTags is not applicable, but is very costly in the design as this requires a two new classes:

ImportDeclaration : NodeWithName<>
  - JmlImportDeclaration : NodeWithJmlTags<>
  - JavaImportDeclarataion 

TODO Think more about.