Syster Base
Core library for SysML v2 and KerML parsing, AST, and semantic analysis.
Features
- Parser: Pest-based grammar for SysML v2 and KerML
- AST: Complete abstract syntax tree types
- Semantic Analysis: Symbol table, reference resolution, import handling
- Formatter: Rowan-based code formatter
- Standard Library: SysML v2 standard library files
Usage
use ;
let mut workspace = new;
workspace.add_file;
workspace.populate_all;
// Access symbols
let symbols = workspace.symbol_table;
Modules
parser- Pest grammars and parsingsyntax- AST types for KerML and SysMLsemantic- Symbol table, resolver, workspaceproject- File loading utilities
License
MIT
Development
DevContainer Setup (Recommended)
This project includes a DevContainer configuration for a consistent development environment.
Using VS Code:
- Install the Dev Containers extension
- Open this repository in VS Code
- Click "Reopen in Container" when prompted (or use Command Palette: "Dev Containers: Reopen in Container")
What's included:
- Rust 1.x with toolchain
- rust-analyzer, clippy
- GitHub CLI
- All VS Code extensions pre-configured
Manual Setup
If not using DevContainer:
# Install Rust
|
# Build the project