feat: implement storybook DSL with template composition and validation
Add complete domain-specific language for authoring narrative content for agent simulations. Features: - Complete parser using LALRPOP + logos lexer - Template composition (includes + multiple inheritance) - Strict mode validation for templates - Reserved keyword protection - Semantic validators (trait ranges, schedule overlaps, life arcs, behaviors) - Name resolution and cross-reference tracking - CLI tool (validate, inspect, query commands) - Query API with filtering - 260 comprehensive tests (unit, integration, property-based) Implementation phases: - Phase 1 (Parser): Complete - Phase 2 (Resolution + Validation): Complete - Phase 3 (Public API + CLI): Complete BREAKING CHANGE: Initial implementation
This commit is contained in:
8
tests/compiler_errors/08_schedule_overlap.sb
Normal file
8
tests/compiler_errors/08_schedule_overlap.sb
Normal file
@@ -0,0 +1,8 @@
|
||||
// Error: Schedule blocks overlap in time
|
||||
// Demonstrates ScheduleOverlap validation error
|
||||
|
||||
schedule DailyRoutine {
|
||||
08:00 -> 12:30: work
|
||||
12:00 -> 13:00: lunch
|
||||
13:00 -> 17:00: work
|
||||
}
|
||||
Reference in New Issue
Block a user