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:
6
tests/compiler_errors/01_unexpected_token.sb
Normal file
6
tests/compiler_errors/01_unexpected_token.sb
Normal file
@@ -0,0 +1,6 @@
|
||||
// Error: Missing colon after field name
|
||||
// This demonstrates the UnexpectedToken parse error
|
||||
|
||||
character Martha {
|
||||
age 34
|
||||
}
|
||||
Reference in New Issue
Block a user