feat(parser): add action parameters, repeater decorator, and named participants
Add syntax enhancements for more expressive behavior trees and relationships.
Action parameters:
- Support typed/positional parameters: WaitDuration(2.0)
- Support named parameters: SetValue(field: value)
- Enable inline values without field names
Repeater decorator:
- Add * { node } syntax for repeating behavior nodes
- Maps to Decorator("repeat", node)
Named participant blocks:
- Replace self/other blocks with named participant syntax
- Support multi-party relationships
- Example: Alice { role: seeker } instead of self { role: seeker }
Schedule block syntax:
- Require braces for schedule blocks to support narrative fields
- Update tests to use new syntax: 04:00 -> 06:00: Activity { }
This commit is contained in:
@@ -183,6 +183,7 @@ mod tests {
|
||||
|
||||
ResolvedCharacter {
|
||||
name: name.to_string(),
|
||||
species: None,
|
||||
fields,
|
||||
prose_blocks: HashMap::new(),
|
||||
span: Span::new(0, 10),
|
||||
|
||||
Reference in New Issue
Block a user