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.
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.
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§

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_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.