lbl-srg / modelica-json

Modelica to JSON Parser
Other
21 stars 17 forks source link

add flag to set mode to CDL, and then enable stricter syntax checks #45

Open mwetter opened 5 years ago

mwetter commented 5 years ago

In #43, parsing models has been enabled. This is needed for BOPTEST. There should be a flag when running the parser that sets the mode to CDL, in which case the check that is removed in https://github.com/lbl-srg/modelica-json/pull/44/commits/0d205ea9d6ce57c4a134e4a003eea251a739bc44 is performed to ensure that we only parse blocks and packages.

dhblum commented 5 years ago

There is such a flag in the branch for https://github.com/lbl-srg/modelica-json/issues/36, although maybe it is only used for what contents to parse, and not which keywords are parsed. @JayHuLBL is this correct?