23 lines
484 B
Markdown
23 lines
484 B
Markdown
# 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`.
|