00726d5498
yaml: lossless block and flow YAML subset with | and > scalars, comments, tab-indent error, limits (1 MiB, depth 12, 10000 nodes), emitter that round-trips; 9 fixtures from the Obsidian Bases docs (Bases tasks 1; written by Claude Sonnet after two MiniMax attempts produced no code). expr: tokens, AST and precedence-climbing parser with regex literals, arrays, objects, member/index/call, dependency collection, depth and length limits (task 3; MiniMax M3.1 Flash, OpenCode Zen free route). Verified: notescraft-bases 43+ tests pass, clippy -D warnings clean, xtask layers OK. The previous bases commit message claimed a YAML parser that did not exist yet. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
22 lines
402 B
YAML
22 lines
402 B
YAML
views:
|
|
- type: table
|
|
name: "My table"
|
|
limit: 10
|
|
groupBy:
|
|
property: note.age
|
|
direction: DESC
|
|
filters:
|
|
and:
|
|
- 'status != "done"'
|
|
- or:
|
|
- "formula.ppu > 5"
|
|
- "price > 2.1"
|
|
order:
|
|
- file.name
|
|
- file.ext
|
|
- note.age
|
|
- formula.ppu
|
|
- formula.formatted_price
|
|
summaries:
|
|
formula.ppu: Average
|