test_70.mal

来自「一个内存数据库的源代码这是服务器端还有客户端」· MAL 代码 · 共 38 行

MAL
38
字号
# Monet Mil to Mal compiler# Copyright (c) 2001-2004, CWI. All rights reserved.#Predefined code segment#The compiler can not guarantee an accurate compilation,#because MIL unlike MAL is a dynamically typed language.#A few guidelines to maximize usefullness.#- make the type of variables explicit, in particular 'nil'#- upon advice of M2m to remap identifiers, change it in your program directly#use the "mil_schema" for additional support routines#	io.print("setoid(oid(20000000));");	aa_a := calc.oid(20000000);	ba_a := calc.setoid(aa_a);#	io.print("# The Monet interpreter supports type casts\n");	p := calc.int("21");#	io.print("p.io.print();");	ca_a := io.print(p);#	io.print("var pf:= flt(\"23\");");	pf := calc.flt("23");#	io.print("pf.io.print();");	da_a := io.print(pf);#	io.print("var pb:= bit(1);");	pb := calc.bit(1);#	io.print("pb.io.print();");	ea_a := io.print(pb);#	io.print("var z:= int(p);");	z := calc.int(p);#	io.print("z.io.print();");	fa_a := io.print(z);#	io.print("var pi:= bit(0);");	pi := calc.bit(0);#	io.print("pi.io.print();");	ga_a := io.print(pi);#	io.print("var ps:= str(1);");	ps := calc.str(1);#	io.print("quit();");	ha_a := clients.quit();

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?