-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: James Goppert <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,34 @@ | ||
# rumoca | ||
# rumoca ![CI](https://github.com/github/jgoppert/rumoca/workflows/rust.yml/badge.svg) | ||
|
||
A Modelica Compiler written in RUST. | ||
|
||
## Generating, Testing, and Installing | ||
## Building, Testing, and Running | ||
|
||
```bash | ||
cargo build | ||
cargo run | ||
cargo test | ||
cargo run -- --filename src/model.mo --generator sympy | ||
``` | ||
|
||
## Installing | ||
|
||
```bash | ||
cargo install --path . | ||
``` | ||
|
||
Make sure you add your rust bin path to your .bashrc and source it, then: | ||
|
||
```bash | ||
$ rumoca --help | ||
Modelica Compiler | ||
|
||
Usage: rumoca [OPTIONS] --filename <FILENAME> --generator <GENERATOR> | ||
|
||
Options: | ||
-f, --filename <FILENAME> The filename to compile | ||
-v, --verbose Verbose output | ||
-g, --generator <GENERATOR> Generator to Use [possible values: sympy, json, casadi-mx, casadi-sx] | ||
-h, --help Print help | ||
-V, --version Print version | ||
``` |