snc-0.5.0 is not a library.
snc
Command-line SNL (Sequencer Neutral Language) compiler for EPICS. Compiles .st state machine files to Rust source code.
Uses snc-core for the compiler pipeline and targets the seq async runtime.
Repository: https://github.com/epics-rs/epics-rs
Usage
# Compile to file
# Output to stdout
# Debug: dump AST or IR
Options
| Flag | Description |
|---|---|
<input> |
Input .st file (required) |
-o, --output <PATH> |
Output .rs file (default: stdout) |
--dump-ast |
Print AST to stderr |
--dump-ir |
Print IR to stderr |
Build
Example
# Compile and build a sequencer program
# The generated code uses `seq::prelude::*` and `#[tokio::main]`
See snc-core for the compiler internals and SNL language reference.
License
MIT