Crate modelica_rs
source ·Expand description
Wrapping the Modelica language in Rust
This crate is a wrapper for the Modelica language, used primarily for modeling physical systems. It is build on the ANTLR code parsing framework via antlr_rust
Modules
Structs
- A
block
is a class that defines a set of variables that are connected to other connectors or to variables outside the model. - Content ignored by the Modelica translator
- A
connector
is a class that defines a set of variables that are connected to other connectors or to variables outside the model. - A
model
is a class that defines a set of variables that are connected to other connectors or to variables outside the model. - An
operator
is similar to `package``; but may only contain declarations of functions. - An
operator function
is shorthand for an operator with exactly one function - An
operator record
is imilar torecord
; but operator overloading is possible - A
package
holds a collection of Modelica entities. - A
type
may only be predefined types, enumerations, array oftype
, or classes extending fromtype
Enums
- Reserved Modelica keywords
- Reserved Modelica operators
- Reserved Modelica prefixes
Traits
- Most declared blocks in Modelica are classes