Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dana Benedicto authored and Dana Benedicto committed Mar 28, 2024
2 parents 2d8affd + ae0dee5 commit 71ea778
Show file tree
Hide file tree
Showing 18 changed files with 1,162 additions and 35 deletions.
1 change: 1 addition & 0 deletions .nyc_output/e7c4fcfc-df1a-405e-be26-d070cd65d900.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"parent":null,"pid":35103,"argv":["/opt/homebrew/Cellar/node/21.7.1/bin/node","/Users/dclbenedicto/modelica-json/node_modules/.bin/mocha","--timeout","120000"],"execArgv":[],"cwd":"/Users/dclbenedicto/modelica-json","time":1711582157370,"ppid":35102,"coverageFilename":"/Users/dclbenedicto/modelica-json/.nyc_output/e7c4fcfc-df1a-405e-be26-d070cd65d900.json","externalId":"","uuid":"e7c4fcfc-df1a-405e-be26-d070cd65d900","files":["/Users/dclbenedicto/modelica-json/lib/graphicalPrimitives.js","/Users/dclbenedicto/modelica-json/lib/parser.js","/Users/dclbenedicto/modelica-json/lib/jsonquery.js","/Users/dclbenedicto/modelica-json/lib/util.js","/Users/dclbenedicto/modelica-json/lib/modelicaToJSON.js","/Users/dclbenedicto/modelica-json/lib/objectExtractor.js","/Users/dclbenedicto/modelica-json/json2mo/storedDefiniton.js","/Users/dclbenedicto/modelica-json/json2mo/shortClassDefinition.js","/Users/dclbenedicto/modelica-json/json2mo/statement.js","/Users/dclbenedicto/modelica-json/json2mo/externalFunctionCall.js","/Users/dclbenedicto/modelica-json/json2mo/equation.js","/Users/dclbenedicto/modelica-json/json2mo/assignmentWithFunctionCallStatement.js","/Users/dclbenedicto/modelica-json/json2mo/forIndices.js","/Users/dclbenedicto/modelica-json/json2mo/ifElseifExpression.js","/Users/dclbenedicto/modelica-json/json2mo/element.js","/Users/dclbenedicto/modelica-json/json2mo/forEquation.js","/Users/dclbenedicto/modelica-json/json2mo/externalComposition.js","/Users/dclbenedicto/modelica-json/json2mo/componentDeclaration1.js","/Users/dclbenedicto/modelica-json/json2mo/functionCallObj.js","/Users/dclbenedicto/modelica-json/json2mo/forLoopObj.js","/Users/dclbenedicto/modelica-json/json2mo/declaration.js","/Users/dclbenedicto/modelica-json/json2mo/logicalFactorObj.js","/Users/dclbenedicto/modelica-json/json2mo/equationSection.js","/Users/dclbenedicto/modelica-json/json2mo/importClause.js","/Users/dclbenedicto/modelica-json/json2mo/functionCallStatement.js","/Users/dclbenedicto/modelica-json/json2mo/functionCallArgsObj.js","/Users/dclbenedicto/modelica-json/json2mo/extendsClause.js","/Users/dclbenedicto/modelica-json/json2mo/logicalExpression.js","/Users/dclbenedicto/modelica-json/json2mo/logicalAnd.js","/Users/dclbenedicto/modelica-json/json2mo/connectClause.js","/Users/dclbenedicto/modelica-json/json2mo/annotation.js","/Users/dclbenedicto/modelica-json/json2mo/importList.js","/Users/dclbenedicto/modelica-json/json2mo/argument.js","/Users/dclbenedicto/modelica-json/json2mo/componentClause1.js","/Users/dclbenedicto/modelica-json/json2mo/argumentList.js","/Users/dclbenedicto/modelica-json/json2mo/derClassSpecifierValue.js","/Users/dclbenedicto/modelica-json/json2mo/algorithmSection.js","/Users/dclbenedicto/modelica-json/json2mo/ifElseifEquation.js","/Users/dclbenedicto/modelica-json/json2mo/conditionAttribute.js","/Users/dclbenedicto/modelica-json/json2mo/elementReplaceable.js","/Users/dclbenedicto/modelica-json/json2mo/forStatement.js","/Users/dclbenedicto/modelica-json/json2mo/modification.js","/Users/dclbenedicto/modelica-json/json2mo/componentClause.js","/Users/dclbenedicto/modelica-json/json2mo/namedArgument.js","/Users/dclbenedicto/modelica-json/json2mo/expressionList.js","/Users/dclbenedicto/modelica-json/json2mo/whileStatement.js","/Users/dclbenedicto/modelica-json/json2mo/componentDeclaration.js","/Users/dclbenedicto/modelica-json/json2mo/enumList.js","/Users/dclbenedicto/modelica-json/json2mo/elementSection.js","/Users/dclbenedicto/modelica-json/json2mo/elementModification.js","/Users/dclbenedicto/modelica-json/json2mo/comment.js","/Users/dclbenedicto/modelica-json/json2mo/classSpecifier.js","/Users/dclbenedicto/modelica-json/json2mo/ifExpression.js","/Users/dclbenedicto/modelica-json/json2mo/shortClassSpecifierValue.js","/Users/dclbenedicto/modelica-json/json2mo/name.js","/Users/dclbenedicto/modelica-json/json2mo/simpleExpression.js","/Users/dclbenedicto/modelica-json/json2mo/arraySubscripts.js","/Users/dclbenedicto/modelica-json/json2mo/elementList.js","/Users/dclbenedicto/modelica-json/json2mo/componentReferencePart.js","/Users/dclbenedicto/modelica-json/json2mo/constrainingClause.js","/Users/dclbenedicto/modelica-json/json2mo/typeSpecifier.js","/Users/dclbenedicto/modelica-json/json2mo/composition.js","/Users/dclbenedicto/modelica-json/json2mo/outputExpressionList.js","/Users/dclbenedicto/modelica-json/json2mo/componentReference.js","/Users/dclbenedicto/modelica-json/json2mo/elementModificationOrReplaceable.js","/Users/dclbenedicto/modelica-json/json2mo/classDefinition.js","/Users/dclbenedicto/modelica-json/json2mo/shortClassSpecifier.js","/Users/dclbenedicto/modelica-json/json2mo/expression.js","/Users/dclbenedicto/modelica-json/json2mo/functionCallEquation.js","/Users/dclbenedicto/modelica-json/json2mo/assignmentStatement.js","/Users/dclbenedicto/modelica-json/json2mo/namePart.js","/Users/dclbenedicto/modelica-json/json2mo/graphic.js","/Users/dclbenedicto/modelica-json/json2mo/basePrefix.js","/Users/dclbenedicto/modelica-json/json2mo/functionArgument.js","/Users/dclbenedicto/modelica-json/json2mo/longClassSpecifier.js","/Users/dclbenedicto/modelica-json/json2mo/derClassSpecifier.js","/Users/dclbenedicto/modelica-json/json2mo/classModification.js","/Users/dclbenedicto/modelica-json/json2mo/ifExpressionObj.js","/Users/dclbenedicto/modelica-json/json2mo/subscript.js","/Users/dclbenedicto/modelica-json/json2mo/assignmentEquation.js","/Users/dclbenedicto/modelica-json/json2mo/ifElseifStatement.js","/Users/dclbenedicto/modelica-json/json2mo/enumerationLiteral.js","/Users/dclbenedicto/modelica-json/json2mo/ifStatement.js","/Users/dclbenedicto/modelica-json/json2mo/elementRedeclaration.js","/Users/dclbenedicto/modelica-json/json2mo/finalClassDefinition.js","/Users/dclbenedicto/modelica-json/json2mo/componentList.js","/Users/dclbenedicto/modelica-json/json2mo/forIndicesObj.js","/Users/dclbenedicto/modelica-json/json2mo/namedArguments.js","/Users/dclbenedicto/modelica-json/json2mo/functionCallArgs.js","/Users/dclbenedicto/modelica-json/json2mo/whenStatement.js","/Users/dclbenedicto/modelica-json/json2mo/functionArguments.js","/Users/dclbenedicto/modelica-json/json2mo/whenEquation.js","/Users/dclbenedicto/modelica-json/json2mo/ifEquation.js","/Users/dclbenedicto/modelica-json/json2mo/forIndex.js","/Users/dclbenedicto/modelica-json/lib/semanticExtractor.js"]}
1 change: 1 addition & 0 deletions .nyc_output/processinfo/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"processes":{"e7c4fcfc-df1a-405e-be26-d070cd65d900":{"parent":null,"children":[]}},"files":{"/Users/dclbenedicto/modelica-json/lib/graphicalPrimitives.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/lib/parser.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/lib/jsonquery.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/lib/util.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/lib/modelicaToJSON.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/lib/objectExtractor.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/storedDefiniton.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/shortClassDefinition.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/statement.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/externalFunctionCall.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/equation.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/assignmentWithFunctionCallStatement.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/forIndices.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/ifElseifExpression.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/element.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/forEquation.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/externalComposition.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/componentDeclaration1.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/functionCallObj.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/forLoopObj.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/declaration.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/logicalFactorObj.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/equationSection.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/importClause.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/functionCallStatement.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/functionCallArgsObj.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/extendsClause.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/logicalExpression.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/logicalAnd.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/connectClause.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/annotation.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/importList.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/argument.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/componentClause1.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/argumentList.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/derClassSpecifierValue.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/algorithmSection.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/ifElseifEquation.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/conditionAttribute.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/elementReplaceable.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/forStatement.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/modification.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/componentClause.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/namedArgument.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/expressionList.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/whileStatement.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/componentDeclaration.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/enumList.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/elementSection.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/elementModification.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/comment.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/classSpecifier.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/ifExpression.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/shortClassSpecifierValue.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/name.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/simpleExpression.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/arraySubscripts.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/elementList.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/componentReferencePart.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/constrainingClause.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/typeSpecifier.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/composition.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/outputExpressionList.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/componentReference.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/elementModificationOrReplaceable.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/classDefinition.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/shortClassSpecifier.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/expression.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/functionCallEquation.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/assignmentStatement.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/namePart.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/graphic.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/basePrefix.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/functionArgument.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/longClassSpecifier.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/derClassSpecifier.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/classModification.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/ifExpressionObj.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/subscript.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/assignmentEquation.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/ifElseifStatement.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/enumerationLiteral.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/ifStatement.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/elementRedeclaration.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/finalClassDefinition.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/componentList.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/forIndicesObj.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/namedArguments.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/functionCallArgs.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/whenStatement.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/functionArguments.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/whenEquation.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/ifEquation.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/json2mo/forIndex.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"],"/Users/dclbenedicto/modelica-json/lib/semanticExtractor.js":["e7c4fcfc-df1a-405e-be26-d070cd65d900"]},"externalIds":{}}
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ See the directory `test/FromModelica` from __modelica-json__ for simple examples

## 2. Installation and help

__modelica-json__ requires both Java and Node.js.
This pacakged has been tested with Java (JDK 21, JRE 8u391 and Node.js 18).

### Linux

First, set the MODELICAPATH environment variable by adding the following line to your ~/.bashrc file:
Expand Down Expand Up @@ -67,18 +70,18 @@ make clean-installation

- Finally, to install dependencies and compile the Java files, run `InstallOnWindows.bat`.

To test the installation, from the `\modelica-json` directory, run the parser on Command Prompt:
To test the installation, from the `path\to\modelica-json` directory, run the parser on Command Prompt:
```
node app.js -f test\FromModelica\Enable.mo
```

Now the `\modelica-json` directory should have a new folder `json` and in the folder, there should be a file in the path `test\FromModelica\Enable.json`.
Now the `path\to\modelica-json` directory should have a new folder `json` and in the folder, there should be a file in the path `test\FromModelica\Enable.json`.

## 3. How to use the parser

The parser can be run with the app.js file as follows:
```
node app.js -f <path of the file to parse>
node app.js -f <path of the file to parse> -o <output format> -m <parser mode> -l <log level> -d <output directory>
```

#### Arguments :
Expand All @@ -88,11 +91,20 @@ The only required input is the path of the file or package to be parsed.

##### --output / -o

This parser takes a .mo file in input and has three possible outputs, that can be specified with the argument -o :
This parser can take a .mo file in input and produce three possible outputs, that can be specified with the argument -o :

<<<<<<< HEAD
- **raw-json** : detailed transcription of a Modelica file in JSON
- **json**: simplified JSON format, easier to read an interpret
- **semantic**: generate semantic model from semantic information included within `annotation` in the Modelica file
=======
- **raw-json** : intermediate JSON output, aligning closely with the Modelica syntax
- **json**: simplified JSON format, to be used by all applications
- **semantic**: generate a semantic model from the Modelica model, if annotations containing semantic information are present in the Modelica model

This parser can also take a .json file as an input and if it aligns with the simplified JSON output format, a corresponding Modelica or CDL model can be generated using the followed argument in the output format (-o):
- **modelica**: Generate a Modelica/CDL file (.mo) from a JSON file that conforms to the simplified JSON schema.
>>>>>>> ae0dee5722f82ce552a298c4e11fb05b1d90f5d9
##### --mode / -m

Expand Down
Loading

0 comments on commit 71ea778

Please sign in to comment.