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
9 lines
194 B
Plaintext
9 lines
194 B
Plaintext
// 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
|
|
}
|