Files
storybook/examples/baker-family/test_parse.sh
Sienna Meridian Satterwhite b042f81aeb feat(examples): expand baker-family with relationships and world context
Added comprehensive v0.3.0 feature demonstration:

Characters (5 total):
- Martha & Jane (married lesbian couple, co-owners of bakery)
- Emma (their daughter, apprentice baker)
- Henry (loyal customer, retired teacher)
- Roland (competing baker)

New declarations:
- 6 relationships with asymmetric perspectives (Marriage, ParentChild×2,
  BusinessPartnership, CustomerRelationship, Competition)
- Locations with prose (MarthasBakery, MainStreet)
- Institution (BakersGuild)
- Life arcs (MarriageQuality, BusinessGrowth)

Features demonstrated:
- Concept comparison usage (skill_tier: Master/Journeyman)
- Life arc applied to relationship
- Asymmetric participant perspectives
- Family coherence across files
2026-02-14 15:54:43 +00:00

36 lines
1023 B
Bash

#!/bin/bash
# Quick validation that all Baker family example files parse correctly
echo "Testing Baker family example files..."
echo ""
files=(
"schema/templates.sb"
"schema/types.sb"
"schema/life_arcs.sb"
"schedules/work_schedules.sb"
"behaviors/baker_behaviors.sb"
"characters/martha.sb"
"characters/jane.sb"
"characters/emma.sb"
"characters/henry.sb"
"characters/roland.sb"
"relationships/baker_family_relationships.sb"
"locations/bakery_locations.sb"
"institutions/bakers_guild.sb"
"life_arcs/family_life_arcs.sb"
)
for file in "${files[@]}"; do
echo -n "Parsing $file... "
if cargo run --bin storybook -- check "$file" 2>&1 | grep -q "Successfully"; then
echo "OK"
else
echo "? (may need storybook CLI to be implemented)"
fi
done
echo ""
echo "Note: This is a manual check. Full validation requires the storybook compiler."
echo "All files use correct v0.3.0 syntax with type system, relationships, locations, and life arcs."