How feni/informal works
Main Components
a) Compiler Infrastructure:
• Former (Zig-based implementation)
• Multiple prototype implementations (JS, Python, Rust)
• Core language components (lexer, parser, compiler)
b) Runtime Systems:
• JavaScript runtime
• Rust runtime
• WASM integration
c) Development Tools:
• Testing framework
• Benchmarking system
• Documentation system
• Informal Language |
• Former | | Prototypes | |
• (Zig Core) | | (JS/Rust/Python)| |
• Compiler Pipeline |
• Lexer |->| Parser |->| AST |->|Code Gen| |
• Runtime Systems |
• JS Runtime| | Rust | | WASM | |
Important Elements to Highlight
a) Pattern Matching System:
• How it's central to the language design
• Connections to type system and runtime
b) Multiple Implementation Paths:
• How different prototypes relate
• Shared components
c) Build and Test Infrastructure:
• Test framework connections
• Benchmark system integration
Specific Implementation Details
Key architectural components:
• Pattern matching engine
• Type system
• Meta-programming facilities
• Runtime environments
• WASM compilation target
Component Relationships
Critical interactions:
• Source code → Lexer → Parser → AST
• AST → Pattern Matcher → Type Checker
• Compiler → Multiple Backends (JS/Rust/WASM)
• Runtime ↔ Standard Library
• Meta-programming System ↔ Compiler Pipeline