Skip to content

model-parser

Convert process-model definitions to and from a canonical intermediate representation (IR).

model-parser owns the model scaffold contract for the Advanced Process Control toolchain: it parses an authoring format (today: ExprTk-style INI) into a normalized canonical IR (JSON), validates it, and lowers it to target views — starting with generated ModelingToolkit v11 Julia.

authoring (ExprTk INI)  --parse-->  AST  --normalize-->  canonical IR (JSON)
                                                          |
                                          emit julia  --> ModelingToolkit .jl

Install from PyPI

The distribution name is apc-model-parser; the CLI entry point is model-parser.

pipx install apc-model-parser
# or:
uv tool install apc-model-parser

model-parser --help

pipx and uv tool both install the tool into an isolated environment and put model-parser on your PATH.

For development from a clone, use uv sync --all-groups (see CI/CD and releases).