文件名称:condition:Prolog 的条件系统(a la Common Lisp)
文件大小:7KB
文件格式:ZIP
更新时间:2024-07-09 20:21:08
Prolog
概要 :- use_module(library(condition)). main :- handle(stuff, oops, warn). stuff :- writeln('Doing something useful...'), % oh no, a problem! signal(oops, Restart), ( Restart = ignore -> true ; Restart = warn -> print_message(warning, oops) ; Restart = error -> print_message(error, oops) ; % otherwise -> type_error(oneof([ignore,warn,e
【文件预览】:
condition-master
----t()
--------examples.pl(1KB)
----pack.pl(372B)
----LICENSE(1KB)
----prolog()
--------condition.pl(4KB)
--------README.md(12B)
----README.md(4KB)
----History.md(222B)
----.gitignore(37B)