Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openmodelica/omparser.jl
Standalone Julia parser for Modelica based on ANTLR
https://github.com/openmodelica/omparser.jl
Last synced: about 1 month ago
JSON representation
Standalone Julia parser for Modelica based on ANTLR
- Host: GitHub
- URL: https://github.com/openmodelica/omparser.jl
- Owner: OpenModelica
- Created: 2021-12-01T21:40:56.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-15T11:06:14.000Z (12 months ago)
- Last Synced: 2024-04-28T07:35:56.114Z (9 months ago)
- Language: Motoko
- Size: 4.89 MB
- Stars: 1
- Watchers: 20
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OMParser.jl
A parser for Modelica in Julia based on the OpenModelica parser.
## Build the parser library
### Linux / Mac
If you have your own Julia installation you need to set the path to it
````
export PATH=$PATH:/path/to/julia/bin
````
Then clone OMParser.jl (we assume you have git installed, if not, install it)
````
git clone https://github.com/OpenModelica/OMParser.jl
````
Then just build the library using this script.
````
cd OMParser.jl/lib/parser
autoconf
./configure
make
````
The library will be built in OMParser.jl/lib/build/### MSYS2/MinGW
If you already have it just start MSYS2 MinGW terminal and follow the Linux/Mac instructions.
If not, install MSYS2 from: https://www.msys2.org/ and follow the instructions:
````
# start MSYS2 MSYS if not already started by the installer
pacman -Syu
# kill all terminals and processes and then start MSYS2 MSYS
pacman -Su
# install the needed packages
pacman -S --needed base-devel mingw-w64-x86_64-toolchain
````If your computer is part of a domain things are rather slow in MSYS2 until you do these commands while connected to the domain controller (directly or via VPN):
````
mkpasswd -l -c > /etc/passwd
mkgroup -l -c > /etc/group
# make sure db is commented out from /etc/nsswitch.conf
sed -i.bak 's/ db/ # db/g' /etc/nsswitch.conf
# if something went wrong the original /etc/nsswitch.conf is kept in /etc/nsswitch.conf.bak
````Then start MSYS2 MinGW terminal and then follow the instructions for Linux/Mac.