mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 20:33:55 +00:00
Estimated hours taken: 80 Add support for exception handling, in extras/exceptions. extras/exceptions/README: Describes the files in this directory. extras/exceptions/exception.m: Contains the exception handling interface and implementation. extras/exceptions/test_exceptions.m: extras/exceptions/test_exceptions.exp: extras/exceptions/test_uncaught_exception.m: extras/exceptions/test_uncaught_exception.exp: extras/exceptions/test_exceptions_func.m: extras/exceptions/test_exceptions_func.exp: Test cases. extras/exceptions/Mmakefile: The Mmakefile for building and running the test cases.
6 lines
211 B
Plaintext
6 lines
211 B
Plaintext
det_throw: exception(univ("det_throw" : string))
|
|
det_succeed: succeeded("det_succeed")
|
|
semidet_throw: exception(univ("semidet_throw" : string))
|
|
semidet_succeed: succeeded("semidet_succeed")
|
|
semidet_fail: failed
|