def mod_of
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
180# an `import <spec> as <Name>` line names a module; anything else does not
181def mod_of(+ws: List<&2, String>) -> Stmt:
182 mod_of.step(
183 Bool.and(Nat.is_ge(List.length(&2, String, ws), 4n),
184 Bool.and(String.eq(word(ws, 0n), "import"), String.eq(word(ws, 2n), "as"))),
185 ws)