MetaModelica.jl provides Julia implementations of MetaModelica runtime concepts used by OpenModelica, including pattern matching macros, union and record helpers, optional values, immutable-list integration, and runtime compatibility functions.
using MetaModelica
value = @match (1, 2) begin
(x, y) => x + y
endThe main entry points are @match, @matchcontinue, @Uniontype, @Record, SOME, NONE, and the exported MetaModelica runtime helper functions.
Documentation is generated with Documenter.jl:
julia --project=docs -e 'using Pkg; Pkg.develop(path=pwd()); Pkg.instantiate()'
julia --project=docs docs/make.jlGitHub Actions builds the docs on pull requests and deploys them from master pushes.
Run the test suite with:
julia --project=. -e 'using Pkg; Pkg.test()'This package follows YASGuide.