⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 no.050.mal

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 MAL
字号:
# 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("# >Number:         50\n");#	io.print("# >Category:       MIL\n");#	io.print("# >Confidential:   no\n");#	io.print("# >Severity:       critical\n");#	io.print("# >Priority:       high\n");#	io.print("# >Responsible:    boncz\n");#	io.print("# >State:          closed\n");#	io.print("# >Class:          sw-bug\n");#	io.print("# >Submitter-Id:   unknown\n");#	io.print("# >Arrival-Date:   Wed Oct 15 10:23:33 1997\n");#	io.print("# >Originator:     niels\n");#	io.print("# >Organization:\n");#	io.print("# >Release:        971007\n");#	io.print("# >Environment:\n");#	io.print("# SunOS5.5.1\n");#	io.print("# >Description:\n");#	io.print("# a := new (oid,int);\n");#	io.print("# a.insert( calc.oid(1), 100 );\n");#	io.print("# a.insert( calc.oid(2), 1000 );\n");#	io.print("# a.insert( calc.oid(4), 10 );\n");#	io.print("# a.insert( calc.oid(5), 15 );\n");#	io.print("# a.select( 94, 110 ).print;\n");#	io.print("# #output\n");#	io.print("# #-----------------#\n");#	io.print("# # oid   | tmp_27  #\n");#	io.print("# #-----------------#\n");#	io.print("# [ 1@0,    100     ]\n");#	io.print("# [ 2@0,    1000    ]\n");#	io.print("var a := new (oid,int);");	a := bat.new(nil:oid,nil:int);#	io.print("a.insert( calc.oid(1), 100 );");	aa_a := calc.oid(1);	ba_a := bat.insert(a,aa_a,100);#	io.print("a.insert( calc.oid(2), 1000 );");	ca_a := calc.oid(2);	da_a := bat.insert(a,ca_a,1000);#	io.print("a.insert( calc.oid(4), 10 );");	ea_a := calc.oid(4);	fa_a := bat.insert(a,ea_a,10);#	io.print("a.insert( calc.oid(5), 15 );");	ga_a := calc.oid(5);	ha_a := bat.insert(a,ga_a,15);#	io.print("a.print();");	ia_a := io.print(a);	ja_a := bat.reverse(a);#	io.print("a.print();");	la_a := io.print(a);#	io.print("a.select( 94, 110 ).print();");	ma_a := algebra.select(a,94,110);	na_a := io.print(ma_a);#	io.print("quit();");	oa_a := clients.quit();

⌨️ 快捷键说明

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