How 11nawid/azravibe.vibe works
Azra is a Rust implementation of an indentation-based English-like language, with CLI and embedding entry points. Its main workflow transforms .vibe source through lexing, parsing, and interpretation into output, events, or host integrations. Separate branches provide HTTP serving, native/browser GUI, standalone builds, WebAssembly, packages, formatting, and language-server support. The README documents the main execution pipeline and product capabilities; sampled source confirms selected interpreter, standard-library, and HTTP details, while some subsystem links remain unverified.
Main entry points: main.rs CLI · interpreter/mod.rs Interpreter · host.rs Host functions · lexer/mod.rs Lexer
Components 23
Language Runtime
- Lexer
src/lexer/mod.rs - Parser
src/parser/mod.rs - AST
src/ast/expr.rs - Interpreter
src/interpreter/mod.rs - Runtime values
src/value.rs - Assignment targets
src/interpreter/target.rs - Standard library
src/stdlib/mod.rs
User Interfaces
- CLI
src/main.rs - Output and events
src/cli/output.rs - Interactive REPL
src/cli/repl.rs
Host Integrations
- Host functions
src/host.rs - HTTP server
src/server.rs - Native HTTP core
native/azra_net.cpp - Native GUI core
native/azra_gui.cpp - Browser GUI
src/gui_app.rs
Language Ecosystem
- Formatter
src/format.rs - Language server
src/lsp.rs - Packages and manifests
src/pkg.rs - Executable builder
src/builder.rs - WebAssembly
src/wasm.rs
Other components
- Script author
- .vibe source
- Studio / Player host
Connections 23
- Script author → .vibe source: writes
README.md - .vibe source → CLI: runs
README.md - .vibe source → Lexer: tokenizes
README.md - Lexer → Parser: passes tokens
README.md - Parser → AST: builds AST
README.md - AST → Interpreter: executes
README.md - Interpreter → Host functions: invokes
README.md - Interpreter → Output and events: produces
README.md - Interpreter → Runtime values: uses
src/interpreter/mod.rs - Interpreter → Assignment targets: delegates
src/interpreter/mod.rs - Interpreter → Standard library: dispatches
src/interpreter/mod.rs - CLI → Interactive REPL: offers
README.md - Host functions → Native HTTP core: bridges to
README.md - Host functions → Native GUI core: bridges to
README.md - CLI → HTTP server: serves
README.md - HTTP server → Native HTTP core: calls
src/server.rs - CLI → Browser GUI: launches
README.md - CLI → Executable builder: builds
README.md - CLI → WebAssembly: runs in
README.md - Studio / Player host → Interpreter: embeds
README.md - CLI → Formatter: formats
README.md - Script author → Language server: edits with
README.md - CLI → Packages and manifests: manages
README.md