Commit Graph

130 Commits

Author SHA1 Message Date
Mark Thom
82ff377585 add numbered vars to writeq 2018-07-16 20:12:50 -06:00
Mark Thom
c5e1a08214 move print_constant logic to heap_print.rs 2018-07-16 19:06:27 -06:00
Mark Thom
f5e254dd64 add support for quoted atoms to writeq 2018-07-15 17:54:37 -06:00
Mark Thom
cd03b7795f finalize the module resolution operator. 2018-07-08 15:21:09 -06:00
Mark Thom
07ec2d34c8 hacky workaround 2018-05-28 20:07:34 -06:00
Mark Thom
06d896277c major refactor 2018-05-15 22:47:36 -06:00
Mark Thom
8f1d721477 move SGC and call inference instructions over to SystemClauseType 2018-05-15 00:23:42 -06:00
Mark Thom
9a88d179d1 remove IsClause 2018-05-14 16:43:49 -06:00
Mark Thom
81d0538a5c switch to machine implemented arg 2018-05-13 14:55:44 -06:00
Mark Thom
7455c2e9db add support for callable if-then and disjunct 2018-05-12 00:30:34 -06:00
Mark Thom
ba7e7ac895 throw exception when call-ing a system instruction. 2018-05-10 23:08:56 -06:00
Mark Thom
910bafef61 port remaining builtins to SystemClauseType 2018-05-10 22:40:01 -06:00
Mark Thom
5a631c17c7 make system calls exempt from call policy. 2018-05-10 22:24:15 -06:00
Mark Thom
954c29b103 add catch/throw support, make exceptions and arithmetic tests pass. 2018-05-10 01:43:36 -06:00
Mark Thom
bae107f8cd eliminate need for embedded, handwritten WAM code. 2018-05-09 22:58:23 -06:00
Mark Thom
b09c20670b shift to builtins 2018-05-08 22:38:49 -06:00
Mark Thom
0dec988337 add error handling appartus 2018-05-02 21:24:43 -06:00
Mark Thom
13280abbb2 Merge branch 'master' of http://github.com/mthom/rusty-wam into develop 2018-04-25 18:59:59 -06:00
Mark Thom
58515d071c skip_max_list preliminaries 2018-04-25 18:59:52 -06:00
Mark Thom
ed9689368d properly support module imports from within modules. 2018-04-25 17:11:46 -06:00
Mark Thom
a891b9327c protect imported predicates from being overwritten (re: issue #28) 2018-04-23 15:55:53 -06:00
Mark Thom
b87d599b14 change modules when updating code index (re: issue #27) 2018-04-20 14:03:04 -06:00
Mark Thom
989d44d702 make module code entries immutable (re: issue #27) 2018-04-18 19:24:32 -06:00
Mark Thom
c02c88b6f0 add functional notation for operators. 2018-04-16 22:00:30 -06:00
Mark Thom
ff6e58e987 update/extension to lexer, bug fixes to module importing 2018-04-13 18:44:23 -06:00
Mark Thom
fe481fedce throw exceptions when calling non-existent predicates. broken. 2018-04-08 15:17:58 -06:00
Mark Thom
a7445e856a properly handle cuts in conditionals 2018-04-08 00:33:54 -06:00
Mark Thom
d6c148d5e9 fix cut expansions. 2018-04-07 16:44:51 -06:00
Mark Thom
5d0674a667 incomplete cut corrections. 2018-04-07 00:15:34 -06:00
Mark Thom
cf741f365c limit hash lookups to metacall 2018-04-02 13:50:01 -06:00
Mark Thom
7b160199fd add cyclic_term 2018-03-28 23:41:19 -06:00
Mark Thom
b7f926bade clean up call clause stuff. 2018-03-26 18:16:23 -06:00
Mark Thom
a66049a321 refactor BuiltInInstruction 2018-03-17 15:45:17 -06:00
Mark Thom
64ab9a0337 remove DynamicIs 2018-03-17 15:01:31 -06:00
Mark Thom
d8bcf47462 refactor ControlInstruction 2018-03-17 01:26:50 -06:00
Mark Thom
acdb3f2c45 add sort, keysort. 2018-03-11 17:37:29 -06:00
Mark Thom
7500465b38 add atom predicate. 2018-03-10 15:26:35 -07:00
Mark Thom
279233f73b reformat io.rs 2018-03-08 21:15:18 -07:00
Mark Thom
f8389e889e further allocation fixes. 2018-03-08 12:51:06 -07:00
Mark Thom
cb9aafbccf further allocation fixes. 2018-03-08 12:38:38 -07:00
Mark Thom
b1c41f211b add qualified imports 2018-03-05 21:13:07 -07:00
Mark Thom
0c66743db5 correct module bugs 2018-03-04 21:35:30 -07:00
Mark Thom
8a63623516 add provisional module support. 2018-03-02 22:28:12 -07:00
Mark Thom
33834609c3 add ; key. 2018-02-27 17:21:43 -07:00
Mark Thom
07675b3675 fix exception handling when thrown by throw_exception, and within setup_call_cleanup and call_with_inference_limit. 2018-02-25 23:43:37 -07:00
Mark Thom
c133931134 add fixes, further test cases. 2018-02-25 22:38:28 -07:00
Mark Thom
cf9db43d5b major refactor. 2018-02-25 12:13:07 -07:00
Mark Thom
8d182b3f02 fix bugs in call_with_inference_limit 2018-02-23 00:16:40 -07:00
Mark Thom
9aac3cb086 add compare predicate. 2018-02-21 23:21:18 -07:00
Mark Thom
5de03444eb fix bugs in call_with_inference_limit 2018-02-21 19:46:15 -07:00