test_90.mal
来自「一个内存数据库的源代码这是服务器端还有客户端」· MAL 代码 · 共 28 行
MAL
28 行
# 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 := oid(20000000); ba_a := setoid(aa_a);# io.print("# This test at some point caused Monet to hang and\n");# io.print("# it did not present the error messages at the proper line.\n");# io.print("# It forgot to echo the input line.\n");# io.print("#var 34;\n"); ca_a := alarm.time(); da_a := print(ca_a);# io.print("printf(\"#~BeginVariableOutput~#\\n\"); time().print(); printf(\"#~EndVariableOutput~#\\n\");"); ea_a := printf("#~BeginVariableOutput~#\n"); fa_a := alarm.time(); ga_a := print(fa_a); ha_a := printf("#~EndVariableOutput~#\n");# io.print("quit();"); ia_a := quit();#Identifer 'time' mapped to 'alarm.time'
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?