Add advanced Decodal example

This commit is contained in:
2026-06-16 10:04:44 +09:00
parent bd3da1aeee
commit 6316939438
4 changed files with 104 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# Advanced Decodal example
This example exercises multiple current Decodal features together:
- multi-file `import`
- top-level recursive module scope
- schema/value composition with `&`
- deep patch with `//`
- `default` fallback during materialization
- constrained function parameters
- lazy function arguments
- `match` expressions
- nested dot-path fields
- arrays
Run it with:
```sh
cargo run -q -p decodal -- examples/advanced/main.dcdl
```
The entrypoint is `main.dcdl`.