ascii_io2.mal
来自「一个内存数据库的源代码这是服务器端还有客户端」· MAL 代码 · 共 35 行
MAL
35 行
namebat := bat.new(:oid, :str);bat.append(namebat,"tmpdocs");bat.append(namebat,"tmpterms");sepbat := bat.new(:oid, :str);bat.append(sepbat,",");bat.append(sepbat,"\n");typebat := bat.new(:oid, :str);bat.append(typebat,"str");bat.append(typebat,"str");len := 20;targetdir := unix.getenv("TSTTRGDIR");barrier correct:= targetdir == ""; targetdir := unix.getenv("PWD");exit correct;barrier correct:= targetdir != ""; targetdir := targetdir + "/";exit correct;datafile := targetdir + "ascii_io2.load";io.printf("#source:%s\n",datafile);idxbat := tablet.load(namebat, sepbat, typebat, datafile, len);io.print(idxbat);i1 := algebra.fetch(idxbat,0);b1 := bbp.find(i1);io.print(b1);i2 := algebra.fetch(idxbat,1); b2 := bbp.find(i2);io.print(b2);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?