def path.eqless
import ezx@1.11.0.0/src/lock/plan.bend as Planimport Base
368# whether a file path holds no `=`. A path is written as a quoted key, and
369# `bootstrap.sh`, which reads the lock without ez, cuts a pair line at its
370# first `=`, so a path holding one would read back there as another path with
371# another sum. eztoml 0.4 reads a quoted key whole; the restriction lifts when
372# bootstrap.sh does too.
373def path.eqless(text: String) -> Bool:
374 match text:
375 case SNil{}:
376 True{}
377 case SCon{+h, t}:
378 +rest = path.eqless(t)
379 Bool.and(Bool.not(Char.is_eq(h, '=')), rest)