Showcases¶
Pegium ships several end-to-end examples. Each one is both a showcase of the framework and a starting point for real projects.
Arithmetics¶
The arithmetics example is the smallest complete showcase. It includes:
- a grammar with precedence-aware expressions
- an evaluator
- validation and formatting
- a language server and VS Code client
DomainModel¶
The domainmodel example shows a modeling DSL with:
- nested declarations
- qualified names
- rename support
- formatter rules for block-oriented syntax
Requirements¶
The requirements example demonstrates:
- multiple related languages
- shared workspace behavior
- cross-file and cross-language references
- one LSP server serving more than one language id
Statemachine¶
The statemachine example focuses on:
- semantic validation
- state-oriented modeling
- formatting and editor integration
Practical advice¶
Want to inspect just one showcase before learning Pegium? Start with arithmetics. It's the most compact example that still exercises the full parser-to-editor path.
Related pages¶
- Examples overview — compare the examples side by side.
- End-to-end walkthrough — build your own language next.
- Recipes — customize a specific subsystem.