📄 id.1023816.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("var x:=new(void,int);"); x := bat.new(:oid,:int);# io.print("x.insert(void(nil),2);"); aa_a := calc.oid(nil); ba_a := bat.insert(x,aa_a,2);# io.print("x.insert(void(nil),4);"); ca_a := calc.oid(nil); da_a := bat.insert(x,ca_a,4);# io.print("x:=x.reverse().mark(0@0).reverse();"); ea_a := bat.reverse(x); fa_a := algebra.markT(ea_a,0@0); x := bat.reverse(fa_a);# io.print("table(x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x);"); ga_a := io.table(x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -