How miking-lang/miking works
Main Components
a) Core Components:
• Boot System (/src/boot/)
• Standard Library (/stdlib/)
• Main Compiler Infrastructure (/src/main/)
• Target Language Backends
b) Language Processing Pipeline:
• Parser & Lexer
• Type Checker
• Symbolizer
• Evaluator
• Code Generator
┌─────────────────────────────────────────────┐
• Frontend Layer │
• ┤
• Core Language Layer │
• ┤
• Backend Targets Layer │
• ┘
Key Components to Highlight
Frontend Layer:
• MLang (Language Definition System)
• Parser Combinators
• Boot Parser
Core Layer:
• MExpr (Core IR)
• Type System
• Evaluation Engine
• Symbol Table
• Pattern Matching
Backend Layer:
• OCaml Backend
• JavaScript Backend
• Python Backend
• CUDA Backend
• JVM Backend
• C Backend
Important Relationships
• How the boot system bootstraps the compiler
• How different backends interact with the core IR
• Demonstrate the relationship between the standard library and core components
Additional Elements
• A section for external dependencies
• Build system integration
• Test framework integration
• Extension points for language features
Implementation Details
• Annotations for critical architectural decisions
• Version information and documentation references
Remember to highlight the transformation pipeline from source languages through the core IR to various target platforms, as this is central to Miking's architecture.
This architectural representation will help developers understand how the different components interact and how to extend the system with new languages or backends.