How thorstenhater/nmlcc works
Main Components
a) Input Processing Layer:
• NML2/LEMS File Parser
• Schema Validator
• Unit Converter
b) Core Compilation Layer:
• Component Type Processor
• Expression Analyzer
• Variable Manager
• Network Processor
c) Export Layer:
• NMODL Generator
• ACC (Arbor Cable Cell) Generator
• Bundle Generator
d) Supporting Components:
• Error Handler
• Schema Manager
• File I/O Handler
Specific Implementation Details
[Input Layer]
• NML2/LEMS Files
• Schema Definitions
• Configuration Options
[Core Processing]
• Component Type Processing
• Ion Channel Processing
• Synapse Processing
• Concentration Model Processing
• Expression Analysis
• Network Processing
[Export Layer]
• NMODL Export
• Mechanism Generation
• ACC Export
• Cable Cell Description
• Bundle Export
• Combined NMODL/ACC
• Morphology Export
• Python Script Generation
Integration Points
External system interactions:
• Arbor Simulator Interface
• File System Interface
• Python Script Generation
Additional Notes
Annotations for:
• Performance optimization points
• Version compatibility notes
• Unit conversion points
• Error handling paths
The flexible export system supporting multiple output formats
Keep the abstraction level focused on the architectural components while maintaining enough detail to show the unique features of the compiler, such as its optimization capabilities and multiple export formats.
• Special symbols used for optimization points
• Component type indicators