How abstratt/simon works
Main Components and Architecture
The system should be represented as a multi-layered architecture with the following main components:
a. Core Layer:
• Metamodel (foundation)
• Compiler Infrastructure
• Parser Infrastructure
b. Implementation Layer:
• ANTLR-based Implementation
• Ecore Integration
• Annotation Processing
c. Extension Layer:
• Example Languages
• Testing Infrastructure
Component Relationships
a. Compilation Pipeline:
Source Code → Parser → Compiler → Backend → Generated Model
b. Metamodel Integration:
Annotation DSL → Metamodel Definition ← Ecore Integration
Detailed Component Breakdown
a. Core Components (Use solid rectangles):
• Metamodel (metamodel/)
• Compiler API (compiler/)
• Source API (compiler-source/)
• Backend API (compiler-backend/)
• ANTLR Parser (antlr-parser/)
• ANTLR Compiler (antlr-compiler/)
• Ecore Backend (compiler-backend-ecore/)
• Ecore Source (compiler-source-ecore/)
• Ecore Metamodel (metamodel-ecore/)
c. Support Components (Use rounded rectangles):
• Annotation DSL (annotation-dsl/)
• Annotation Processor (annotation-processor/)
• Generation Utilities (gen-utils/)
Interaction Flows
Source → ANTLR Parser → Compiler → Backend → Model
Additional Elements
Supporting elements:
• Version/build information
• Main external dependencies (ANTLR, Ecore)