Commit Graph
100 Commits
Author SHA1 Message Date
Mark Thom d240eaca78 add tests for builtins 2018-01-25 21:01:23 -07:00
Mark Thom 700f031cd9 remove indirection in jmp instructions 2018-01-25 09:10:30 -07:00
Mark Thom f2124448d0 add tests for conditionals 2018-01-24 22:30:20 -07:00
Mark Thom 41dc8e8d6a inline and expand conditionals whenever possible 2018-01-23 21:01:53 -07:00
Mark Thom 677beedec3 update tests to properly reflect answer order. 2018-01-20 15:08:55 -07:00
Mark Thom 03c96d45b3 update README 2018-01-19 23:22:54 -07:00
Mark Thom be0ec3f9b4 add tests for callable is, comparisons. 2018-01-19 21:01:01 -07:00
Mark Thom f28b975343 add call support for numeric comparisons. 2018-01-19 19:39:46 -07:00
Mark Thom f9b53856ac add callable is/2 2018-01-19 00:08:55 -07:00
Mark Thom 1b402b2673 clean up arithmetic.rs 2018-01-18 19:54:15 -07:00
Mark Thom 8f012ecfd3 move instruction increment 2018-01-17 23:19:49 -07:00
Mark Thom 1fefcc2d28 abstract out iterator for arithmetic terms. 2018-01-17 22:43:46 -07:00
Mark Thom f95901a6d0 change arithmetic evaluation iterator to new target type 2018-01-17 21:39:59 -07:00
Mark Thom d8be7b5b49 add an atom table. 2018-01-16 23:26:59 -07:00
Mark Thom 38cd9e5db7 expand remaining tests. 2018-01-16 19:53:49 -07:00
Mark Thom 4597a1d5a8 add tests on lists 2018-01-16 09:41:45 -07:00
Mark Thom 30d1336b25 add cut tests 2018-01-16 09:12:25 -07:00
Mark Thom f59763da67 start adding output checks to test 2018-01-15 23:42:09 -07:00
Mark Thom bdb7da3ccf correct formatting on heap_print 2018-01-15 20:28:25 -07:00
Mark Thom f265546203 abstract Outputter of heap_print 2018-01-15 20:18:08 -07:00
Mark Thom 579b9f21dc remove preliminary file 2018-01-15 09:20:11 -07:00
Mark Thom a4022d569f fix duplicate_term bug 2018-01-14 23:05:15 -07:00
Mark Thom 08b94dcdf5 add display predicate 2018-01-14 22:11:02 -07:00
Mark Thom 58ba368280 mark structures with their fixity 2018-01-14 21:48:10 -07:00
Mark Thom b2b4ce6877 print ops properly. 2018-01-14 20:46:03 -07:00
Mark Thom d1a1463ff2 remove commented out print_term 2018-01-13 21:53:38 -07:00
Mark Thom 933c4ada35 remove commented out print_term 2018-01-13 21:53:12 -07:00
Mark Thom 0fb64f412e refactor heapview 2018-01-13 21:50:47 -07:00
Mark Thom 20972f18c2 update token type 2018-01-12 22:26:57 -07:00
Mark Thom b5844eaf19 move MachineState to a submodule 2018-01-11 22:02:34 -07:00
Mark Thom c513bbeafa another big refactor 2018-01-11 20:56:04 -07:00
Mark Thom 59ccf5d8e8 delete needless use 2018-01-11 17:07:29 -07:00
Mark Thom 930d00a806 document arg, functor, conditionals 2018-01-11 16:13:13 -07:00
Mark Thom 848068c734 transition to reference counted constants 2018-01-09 22:38:17 -07:00
Mark Thom 9b225a0a56 claw back version number 2018-01-09 17:11:17 -07:00
Mark Thom d49157bef6 add provisional functor and arg support, and give ';' and '->' their true semantics 2018-01-08 21:14:19 -07:00
Mark Thom 750e7d91ed trim down set_cp 2017-12-25 14:01:36 -07:00
Mark Thom a00d9ee5ae correct ',', backtrack bugs 2017-12-25 13:36:03 -07:00
Mark Thom 8fbe798362 correction to -> offset 2017-12-25 00:29:42 -07:00
Mark Thom 2efa7564ba remove print_code diagnostic 2017-12-25 00:10:40 -07:00
Mark Thom 2d4e4c59de remove Terminal, correct , bugs 2017-12-25 00:04:52 -07:00
Mark Thom 2dc25400ce indexing bug fixes, corrections to , 2017-12-24 15:44:40 -07:00
Mark Thom eab95a360a Merge branch 'master' of http://github.com/mthom/rusty-wam 2017-12-23 23:23:45 -07:00
Mark Thom ca16768f7e add beginning support for ',', ';', '->' 2017-12-23 23:23:30 -07:00
Mark Thom 6e87e35c7c update README 2017-12-22 12:52:55 -07:00
Mark Thom 8e38d39058 update README 2017-12-22 12:43:06 -07:00
Mark Thom f8555682d0 update README 2017-12-22 12:39:35 -07:00
Mark Thom efa8756177 correct with_capacity function in Heap ADT 2017-12-11 09:53:05 -07:00
Mark Thom 829b8278da add to README 2017-12-10 19:32:52 -07:00
Mark Thom 2dc7832f59 update README, heap ADT 2017-12-10 13:55:49 -07:00
Mark Thom 9d944e2268 is_call and is_execute are jump instructions. 2017-12-10 12:31:01 -07:00
Mark Thom 37f4450c34 bug fixes on LCO, backtracking. 2017-12-10 01:24:23 -07:00
Mark Thom e44ad111c5 don't truly truncate the heap. 2017-12-08 21:38:52 -07:00
Mark Thom cee2d5a9c4 don't truly truncate the heap. 2017-12-08 21:38:18 -07:00
Mark Thom cf6a47272a inline comparison instructions. 2017-12-04 21:01:23 -07:00
Mark Thom 8e5aaf02a4 update README, toplevel parsing for comparison operators. 2017-12-04 10:18:29 -07:00
Mark Thom 7b569becbe add support for comparison operators. 2017-12-03 17:44:51 -07:00
Mark Thom db38f091a8 coerce rationals to floats before coercing floats to rationals. 2017-12-03 15:16:40 -07:00
Mark Thom 775fe42781 tweak README 2017-12-03 14:23:00 -07:00
Mark Thom 0ee2286199 tweak README 2017-12-03 14:22:26 -07:00
Mark Thom a2e0b84618 correct README 2017-12-03 14:15:52 -07:00
Mark Thom e8a9da0dca add bitwise and modular operations. 2017-12-03 14:15:01 -07:00
Mark Thom c4cb3574ba extend false cases for is 2017-12-02 14:28:27 -07:00
Mark Thom 9a7419c507 add support for rational numbers, division. 2017-12-02 11:10:25 -07:00
Mark Thom a65adf960e , 2017-11-16 13:44:44 -07:00
Mark Thom 4a51496981 remove is from inlined terms. 2017-11-13 13:35:34 -07:00
Mark Thom ded701436a separate handling of inlined query terms. 2017-11-13 13:18:05 -07:00
Mark Thom b1ae09d7aa add register marking for non-callable/inlined predicates. 2017-11-12 23:43:42 -07:00
Mark Thom e0f2ca80b5 simply post order iterators. 2017-11-12 01:36:19 -07:00
Mark Thom e5a235cf80 eliminate QueryTermRef. 2017-11-11 18:57:23 -07:00
Mark Thom 1f19d5de95 get rid of chunked iterators for facts. 2017-11-11 17:32:46 -07:00
Mark Thom 498389e9e9 remove QueryTermRef from Allocator 2017-11-11 17:00:10 -07:00
Mark Thom e503e312a1 reuse defunct AND stack frames. 2017-11-11 16:01:29 -07:00
Mark Thom d6086390e0 remove Div for ast.rs 2017-11-08 22:57:40 -07:00
Mark Thom 41d99938e7 fix arithmetic bugs. 2017-11-06 22:01:54 -07:00
Mark Thom 4624508fc1 clean up atomic and var code. 2017-11-06 20:22:15 -07:00
Mark Thom 2225674b58 pass binding info to arithmetic evaluator 2017-11-06 13:35:48 -07:00
Mark Thom 4cc3409809 instantiated vars in arithmetic exprs 2017-11-06 10:45:27 -07:00
Mark Thom ff9a1a60d8 correct README 2017-11-05 17:14:49 -07:00
Mark Thom 5568d0b370 add provisions for arithmetic support. 2017-11-05 17:12:30 -07:00
Mark Thom a70c100e0d proceed is a jump instruction 2017-11-04 10:23:58 -06:00
Mark Thom d6af02f8c6 add proceed to close out inlined atomic and var 2017-11-03 22:23:04 -06:00
Mark Thom e78ffaabd8 record places after inline instrs 2017-11-03 21:08:10 -06:00
Mark Thom 28069a301e inline atomic and var 2017-11-03 20:44:35 -06:00
Mark Thom 57cc8ccac9 inline atomic and var. 2017-11-03 20:41:01 -06:00
Mark Thom 2abec91360 fix incorrect handling of terminal cuts. 2017-11-02 15:29:31 -06:00
Mark Thom e4e9b09175 fix indexing bug on anonvars. 2017-09-16 15:25:11 -06:00
Mark Thom e1644dcbb6 update parser. 2017-09-10 21:17:56 -06:00
Mark Thom e179f381a8 correct README 2017-09-06 18:12:35 -06:00
Mark Thom d9340344ff finalize operator support. 2017-09-06 18:11:43 -06:00
Mark Thom 92de7acd22 transition to the operator precedence parser. 2017-09-06 00:36:14 -06:00
Mark Thom 8ee27af9fd add control operators. 2017-09-04 23:30:07 -06:00
Mark Thom 502f498114 add exception error prelude. 2017-08-18 12:44:04 -06:00
Mark Thom 02c0f1cf56 add top level exception reporting, exceptions for call/N. 2017-08-17 18:20:58 -06:00
Mark Thom 1a7edc2d13 tweak README 2017-08-15 14:28:28 -06:00
Mark Thom 3cacb49f6a tweak README 2017-08-15 14:28:00 -06:00
Mark Thom 803c66c917 change ; over to SPACE 2017-08-15 14:15:28 -06:00
Mark Thom e944641d56 remove finished TODO 2017-08-15 12:11:58 -06:00
Mark Thom caf740b9cd correct throw omission in README 2017-08-15 11:07:23 -06:00
Mark Thom cc82447c64 bug fixes. 2017-08-15 11:06:19 -06:00