A domain-specific language (DSL) for creating styled documents. Pyrus aims to be an alternative to LaTeX and Typst, giving you fine-grained control over document styling using CSS while compiling to PDF. It is also possible to seperate out content into component-like structures that can be defined by the user.
cargo build --release# Run with the test input file
cargo run -- temp.ink
# Or run the compiled binary directly
./target/release/pyrus temp.inkcargo test| Package | Version | Purpose |
|---|---|---|
| krilla | 0.9.1 | PDF generation backend |
The compiler pipeline is currently implemented through HIR (High-Level IR):
It is posible to fully use the Pyrus compiler in its current form and create documents.
- Lexer
- Parser
- HIR
- CSS Layout Engine and Attribute tree
- PDF Rendering Backend
- Turing complete scripting
- Default styling and settings
- Formula support
-
--watchand incremental compilation - LLVM's MLIR passes
- multiple file and project support
- embedding support as framework for other projects
See resume.ink for a sample document:
cargo run -- temp.inkSee LICENSE for details.