Sprint 2 Step 7: Schema validation

This commit is contained in:
Bill
2026-02-06 19:31:38 -07:00
parent 665c96b648
commit 8ca6eccd56
24 changed files with 1932 additions and 48 deletions

16
docs/BuildCacheExample.md Normal file
View File

@@ -0,0 +1,16 @@
# Building a Cache - Whetstone AST (Canonical Form)
```
Function: getOrCreate
@deref(???)
Parameter: cache -> Map<string, Widget>
Parameter: key -> string
Body:
IfStatement:
condition: key in cache
then: Return cache[key]
else:
Assignment: widget = Widget.create(key)
Assignment: cache[key] = widget
Return: widget
```