diff --git a/README.md b/README.md index b0eadc0..2350f78 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,9 @@ [![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor%27s%20Guide-blueviolet)](https://github.com/SciML/ColPrac) [![SciML Code Style](https://img.shields.io/static/v1?label=code%20style&message=SciML&color=9558b2&labelColor=389826)](https://github.com/SciML/SciMLStyle) - A parser for the [Base Modelica](https://github.com/modelica/ModelicaSpecification/tree/MCP/0031/RationaleMCP/0031) format. Contains utilities to parse Base Modelica model files in to Julia objects, and to convert Base Modelica models to [ModelingToolkit](https://docs.sciml.ai/ModelingToolkit/stable/) models. -So far only very simple Base Modelica models are supported. Only models with real parameters, real variables, and equations consisting of simple arithmetic equations and first order derivatives are supported. Support for the rest of the BaseModelica specification is planned to be added in the future. +So far only very simple Base Modelica models are supported. Only models with real parameters, real variables, and equations consisting of simple arithmetic equations and first order derivatives are supported. Support for the rest of the BaseModelica specification is planned to be added in the future. ## Installation @@ -25,6 +24,7 @@ Pkg.add("BaseModelica"); ``` # Example + A Base Modelica model is in the file `ExampleFirstOrder.mo`. Inside of the file is a Base Modelica model specifying a simple first order linear differential equation: ``` diff --git a/src/evaluator.jl b/src/evaluator.jl index 6a5e048..23bbfc8 100644 --- a/src/evaluator.jl +++ b/src/evaluator.jl @@ -151,4 +151,4 @@ end function baseModelica_to_ModelingToolkit(package::BaseModelicaPackage) eval_AST(package) -end \ No newline at end of file +end diff --git a/src/scratch.jl b/src/scratch.jl index 67a64c9..586a111 100644 --- a/src/scratch.jl +++ b/src/scratch.jl @@ -274,4 +274,4 @@ parse_one("= x", modification) x = only(parse_one("Real 'm' = 25.0;", component_clause)) x.component_list[1].declaration.modification[1].expr[1].val -x = only(parse_one("Real 'm';", component_clause)) \ No newline at end of file +x = only(parse_one("Real 'm';", component_clause)) diff --git a/test/runtests.jl b/test/runtests.jl index 0465662..4c44d6d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -29,4 +29,4 @@ if GROUP == "All" || GROUP == "Core" @test parse_basemodelica("testfiles/NewtonCoolingBase.mo") isa ODESystem end end -end \ No newline at end of file +end