How vilterp/datalog-ts works
Main Components
a) Core Engine Layer:
• Datalog interpreter (/core)
• Incremental evaluation engine (/core/incremental)
• Optimization subsystem (/core/opt)
b) Language Workbench Layer:
• This in the middle layer
• Parser library (/languageWorkbench/parserlib)
• Language implementations (DL, DL2, SQL, TreeDL, etc.)
• Common IDE services (/languageWorkbench/common)
c) Applications Layer:
• At the top layer
• Various applications (/apps):
• Execution visualizer
• Notebook interface
• Language workbench UI
• VSCode extension
• REPL
d) UI Common Components:
• As a vertical layer connecting to apps
• Explorer components
• Visualization components
• IDE components
Relationships and Data Flow
• Data flow from parser → core engine → UI
• IDE services interaction with language implementations
• Visualization pipeline from core to UI
• Extension points for language implementations
Component Details
Core Engine:
[Datalog Interpreter]
• ↓
[Incremental Evaluation]
• ↓
[Optimization Engine]
Language Processing:
[Parser Library] → [Language Implementations]
• ↓
[Common IDE Services]
Applications:
[VSCode Extension] [Notebook] [Visualizer]
• ↓ ↓ ↓
• [UI Common Components Layer]
• ↓
• [Core Services]
Additional Elements
• Version/state management flows
• Test/benchmark integration points
• Extension mechanisms