diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-12-18 23:02:38 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-12-18 23:02:38 -0800 |
commit | 25ec87c63a5ba79846e147e3d153bf8d884a664e (patch) | |
tree | 84e5facf3113b92fb0fd822d6ea315615ce1a47c /modelica-parser-lalrpop/examples/modelica_other/package.mo | |
parent | 24b2dc9c022cf1daa95418328019d12e5198b06b (diff) | |
download | modelthing-25ec87c63a5ba79846e147e3d153bf8d884a664e.tar.gz modelthing-25ec87c63a5ba79846e147e3d153bf8d884a664e.zip |
parser: more weird examples
Diffstat (limited to 'modelica-parser-lalrpop/examples/modelica_other/package.mo')
-rw-r--r-- | modelica-parser-lalrpop/examples/modelica_other/package.mo | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modelica-parser-lalrpop/examples/modelica_other/package.mo b/modelica-parser-lalrpop/examples/modelica_other/package.mo new file mode 100644 index 0000000..ef1eb82 --- /dev/null +++ b/modelica-parser-lalrpop/examples/modelica_other/package.mo @@ -0,0 +1,15 @@ +package Electric + // This package providestypes, connectors and partial models for the electric domain. + extends SIunit; + // Commonly used short names for electric types + type Current = ElectricCurrent; + type Charge = ElectricCharge; + type Voltage = ElectricPotential; + + // Connector types for electric components + connector Pin "Pin of an electric component" + Voltage + v "Potential at the pin"; + flow Current i "Current flowing into the pin"; + end Pin; +end Electric; |