lenaRB / crml-compiler

Implementation of the CRML to Modelica compiler supported by the ITEA3 EMBRACE project.
6 stars 7 forks source link

Code generated from BooleanPrimitives.crml file doesn't compile/simulate with OMEdit #13

Open audrey-jardin opened 1 year ago

audrey-jardin commented 1 year ago

See the generated Modelica code: BooleanPrimitives.zip

and the error message from OMEdit:

image

audrey-jardin commented 1 year ago

Note: It seems that some dependencies remain between CRMLtoModelica.mo and CRML.mo.

audrey-jardin commented 1 year ago

There is no more dependency between CRMLtoModelica.mo and CRML.mo. But example BooleanPrimitives.crml still doesn't simulate -> there is typo during the translation. @lenaRB The correct name of the filter function is mul4 (and not mul2x4). image

lenaRB commented 1 month ago

This should now be fixed, the correct operator is generated and the file example should work.

audrey-jardin commented 4 weeks ago

Unit test "BooleanPrimitives.crml" has now been replaced by "BooleanConstructors.crml" which still does not compile. Probably due to the instruction: Boolean b5 is new Boolean c; which seems to be not (yet) supported.