def base_of
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
197# `import Base` brings in the prelude, which is no part of any package. bend
198# lets a comment follow it, and a comment names no module.
199def base_of(+ws: List<&2, String>) -> Stmt:
200 base_of.step(
201 Bool.and(Bool.or(Nat.is_eq(List.length(&2, String, ws), 2n),
202 String.starts_with(word(ws, 2n), "#")),
203 Bool.and(String.eq(word(ws, 0n), "import"), String.eq(word(ws, 1n), "Base"))),
204 ws)