How justsomeone-e/rovelang works
Rove is a statically typed compiled language. Its principal workflow takes source through lexing, parsing, type checking and module resolution into verified Typed HIR, then lowers to target code for native, WebAssembly, JavaScript, Python or Rust workflows. Users can enter through the CLI or compiler API; the repository also includes language-server tooling, an interactive tour and native self-hosting. The README documents the semantic pipeline; unsampled implementation details are represented only where the tree supports a subsystem.
Main entry points: codegen.py Codegen selection · compiler.py Compiler orchestration · type_checker.py Type checker · cli.py CLI
Components 26
Language Front End
- Compiler orchestration
src/compiler.py - Lexer
src/core/lexer.py - Parser
src/core/parser.py - Type checker
src/core/type_checker.py - Module loader
src/core/module_loader.py
IR and Backends
- Typed HIR
src/ir/model.py - HIR lowering
src/ir/lowering.py - HIR verifier
src/ir/verifier.py - MIR lowering
src/mir/lowering.py - MIR verifier
src/mir/verifier.py - Codegen selection
src/codegen/codegen.py - C++ backend
src/codegen/hir_cpp.py - WASM backend
src/mir/codegen_wasm.py - JavaScript backend
src/codegen/hir_javascript.py - Python backend
src/codegen/hir_python.py - Rust backend
src/codegen/hir_rust.py
User Tooling
- CLI
src/cli.py - Compiler API
src/api.py - Language server
src/toolchain/lsp_server.py - VS Code extension
vscode-extension/extension.js
Learning and Hosting
- Interactive tour
tour/tour.py - Tour runner
tour/runner.py - Self-host bootstrap
src/self_host/bootstrap.py
Other components
- Rove developer
- Rove source
- Generated program
Connections 31
- Rove developer → CLI: invokes
- Rove developer → Compiler API: uses
- Rove developer → VS Code extension: edits with
- Rove developer → Interactive tour: learns with
- Rove source → CLI: supplies
- Rove source → Compiler API: supplies
- CLI → Compiler orchestration: calls
- Compiler API → Compiler orchestration: calls
- Compiler orchestration → Lexer: tokenizes
- Lexer → Parser: tokens
- Parser → Type checker: AST
- Type checker → Module loader: resolves imports
- Type checker → HIR lowering: checked program
- HIR lowering → Typed HIR: builds HIR
- Typed HIR → HIR verifier: verified against
- Compiler orchestration → MIR lowering: lowers HIR
- MIR lowering → MIR verifier: verifies MIR
- Compiler orchestration → Codegen selection: selects backend
- Codegen selection → C++ backend: dispatches
- Codegen selection → WASM backend: dispatches
- Codegen selection → JavaScript backend: dispatches
- Codegen selection → Python backend: dispatches
- Codegen selection → Rust backend: dispatches
- C++ backend → Generated program: emits
- WASM backend → Generated program: emits
- JavaScript backend → Generated program: emits
- Python backend → Generated program: emits
- Rust backend → Generated program: emits
- VS Code extension → Language server: connects
- Interactive tour → Tour runner: runs exercises
- Self-host bootstrap → Compiler orchestration: bootstraps