Skip to main content

Crate solilang

Crate solilang 

Source
Expand description

Solilang: A statically-typed, class-based OOP language with pipeline operators.

This is the library root that exports all modules.

§Execution

Solilang uses a tree-walking interpreter for executing programs.

Modules§

ast
Abstract Syntax Tree for Solilang.
coverage
error
Error types for all compilation phases.
interpreter
Interpreter module for Solilang.
lexer
Lexer module for Solilang.
lint
live
LiveView - Real-time server-rendered HTML with WebSocket communication.
migration
Database migration system for Soli MVC applications.
module
Module system for Solilang.
parser
Parser module for Solilang.
regex_cache
Global regex compilation cache.
repl_common
Shared REPL utilities used by both TUI and simple REPLs.
repl_highlight
repl_simple
repl_tui
scaffold
Scaffold module for generating new Soli MVC applications.
serve
MVC framework with convention-based routing and hot reload.
solidb_http
span
Source location tracking for error reporting.
template
ERB-style template engine for Soli MVC.
types
Type system module for Solilang.
vm
Bytecode VM for Soli — compiles AST to bytecode and executes via a stack-based VM.

Functions§

lint
Lint source code and return diagnostics.
parse
Parse source code into an AST without executing.
run
Run a Solilang program from source code.
run_file
Run a Solilang program from a file path with module resolution.
run_file_vm
Run a Solilang program through the bytecode VM (faster execution).
run_vm
Run a Solilang program through the bytecode VM.
run_with_options
Run a Solilang program with full control over execution options.
run_with_path
Run a Solilang program with optional source path for module resolution.
run_with_path_and_coverage
Run a Solilang program (coverage disabled at compile time).
run_with_type_check
Run a Solilang program with optional type checking.
type_check
Type check a program without executing.