Give head, index, bound and draw one meaning each, name familyRoot, and type the token kinds

This commit is contained in:
2026-09-28 11:36:04 +02:00
committed by Lillem4n
parent cb064362d1
commit affbb9ac6f
14 changed files with 149 additions and 145 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ func walkNodes(root map[string]node, fn func(path string, n node) error) error {
}
// eachNode visits n and every node contained within it once, passing the dot path
// that reaches each. It never crosses a reference edge — a bound {/path} field is
// that reaches each. It never crosses a reference edge — a {/path} reference is
// skipped — so a single inline node is walked on its own.
func eachNode(n node, path string, fn func(path string, n node) error) error {
seen := map[node]bool{}
@@ -105,7 +105,7 @@ type renderEdge struct {
operand string
}
// reached names an edge as the author spelled it, the vocabulary boundReaders uses
// reached names an edge as the author spelled it, the vocabulary levelReaders uses
// for the sibling fence.
func (e renderEdge) reached() string {
if e.operand != "" {