Commit Graph
100 Commits
Author SHA1 Message Date
Mark Thom 91b85db90c flatten bracketed commas in dcgs 2019-01-26 14:38:54 -07:00
Mark Thom ef3d3aa01a fix unsafe variable handling 2019-01-24 23:38:53 -07:00
Mark Thom c32090325a update version number 2019-01-22 22:57:47 -07:00
Mark Thom 34414b6895 fix printer 2019-01-22 22:57:23 -07:00
Mark Thom e92996126b prepare for improved (?) ambiguity checks 2019-01-22 20:50:07 -07:00
Mark Thom 498fe5247d prepare to add bracketing conditions to heap_print 2019-01-20 23:56:15 -07:00
Mark Thom 0dabb3f370 add op info to structures and atoms 2019-01-19 22:27:40 -07:00
Mark Thom ca7e62928b clone in situ compiled terms 2019-01-19 17:05:29 -07:00
Mark Thom 18f0263d23 fix setup_hook 2019-01-16 20:03:59 -07:00
Mark Thom 2a4981ba85 delete trailing whitespace in compile.rs 2019-01-16 19:59:19 -07:00
Mark Thom 090f04c7e1 drop_expansions whenever a compilation error occurs 2019-01-16 19:05:07 -07:00
Mark Thom 2f75270da9 clear out expansions from code_repo if code entry fails 2019-01-15 22:20:53 -07:00
Mark Thom c9f6ab984f add dynamic module resolution calls 2019-01-06 00:15:32 -07:00
Mark Thom 387bdb4da6 update README 2019-01-05 22:03:17 -07:00
Mark Thom da731ad1f9 add module-level goal_expansion and term_expansion 2019-01-05 22:02:06 -07:00
Mark Thom 042779cff9 add read support for user:term_expansion and user:goal_expansion 2019-01-05 19:22:38 -07:00
Mark Thom 36fdc8e822 do not add expansions behind module boundaries until the modules are added 2019-01-03 19:43:50 -07:00
Mark Thom 2f2f6314d8 correct write_canonical/2 bug 2018-12-28 16:59:26 -07:00
Mark Thom 56ec550031 fix unification on string lists. 2018-12-23 12:14:03 -07:00
Mark Thom 40fa795d49 fix ambiguity_check 2018-12-19 21:25:06 -07:00
Mark Thom b42706c1d6 make insert_from_end work correctly 2018-12-19 09:27:08 -07:00
Mark Thom 6f0018c3e0 correct space formatting in heap_print 2018-12-19 00:26:46 -07:00
Mark Thom 9064f73655 eliminate ambiguity check on structs with non-zero arity 2018-12-18 23:04:49 -07:00
Mark Thom 6234ae6ef1 convert append to push_char when applicable 2018-12-18 21:54:18 -07:00
Mark Thom 5c12c3047c remove lifetime on ReverseHeapVarDict 2018-12-18 21:42:34 -07:00
Mark Thom 2b774f3041 correct non-termination of expand_goal and expand_term 2018-12-15 00:04:56 -07:00
Mark Thom 47a1cfaddc correct non-termination of expand_goal and expand_term 2018-12-14 19:10:38 -07:00
Mark Thom e90669d159 fix expand_goal and expand_term 2018-12-13 19:38:44 -07:00
Mark Thom 45a68d4bc2 add expand_goal, make user:term_expansion and user:goal_expansion work properly within modules 2018-12-11 22:57:11 -07:00
Mark Thom 226bb7f9ed remove Option wrapper from cached_query 2018-12-10 21:21:15 -07:00
Mark Thom a4406f784a add support for user:goal_expansion 2018-12-09 00:48:28 -07:00
Mark Thom deabdafa48 remove needless result type in try_expand_term 2018-12-02 15:17:45 -07:00
Mark Thom c281c1b427 offset variable indexing for semi-context notations 2018-11-18 21:51:53 -07:00
Mark Thom c718e17346 update version number 2018-11-15 23:24:54 -07:00
Mark Thom 6e20f82d6f fix faulty tidy_trail 2018-11-15 23:04:52 -07:00
Mark Thom 81f4128bc6 update dcgs to handle ; and -> 2018-10-27 20:56:23 -06:00
Mark Thom a4e882756e fix tests 2018-10-24 23:16:49 -06:00
Mark Thom 69a7579adb use proper range notation 2018-10-24 21:08:27 -04:00
Mark Thom 036d248eb0 stop write_canonical from printing numbervars. 2018-10-23 23:11:13 -06:00
Mark Thom 32fecca45d add write variants 2018-10-23 22:53:50 -06:00
Mark Thom 1e3891204e make lists parse properly when used as dcg rules 2018-10-20 23:37:09 -06:00
Mark Thom 4c76920489 fix conformity errors 2018-10-17 22:10:00 -06:00
Mark Thom 1b7ffa00af fix semicontext notation 2018-10-15 22:31:53 -06:00
Mark Thom 3140c65f67 correctly handle anonymous variables when reading 2018-10-15 22:13:58 -06:00
Mark Thom 720426648e correctly handle anonymous variables when reading 2018-10-15 22:11:55 -06:00
Mark Thom a3dc6d2bef add expand_term/2 2018-10-15 20:07:48 -06:00
Mark Thom eabb851d8c add expand_term/2 2018-10-15 20:07:22 -06:00
Mark Thom 24a7206021 fix DCG bugs 2018-10-10 21:30:40 -06:00
Mark Thom 5586aa7057 remove needless self parameter from ambiguity_check 2018-10-09 19:58:15 -06:00
Mark Thom 2b32d2d94e smooth out ambiguity check 2018-10-08 23:23:52 -06:00
Mark Thom b2d9673593 add spaces between operators when there is an ambiguity 2018-10-08 23:04:23 -06:00
Mark Thom 41b8f7a36b add spaces between operators when there is an ambiguity 2018-10-08 23:04:03 -06:00
Mark Thom 9a6094bad2 correct phrase/2 2018-10-08 11:02:48 -06:00
Mark Thom 1dc015b91f add DCG test case 2018-10-08 00:51:11 -06:00
Mark Thom 398d91576c fix bug with mark_non_var 2018-10-08 00:34:08 -06:00
Mark Thom fa1bb6df3a term_expansion bug fixes 2018-10-07 00:43:44 -06:00
Mark Thom 59ad71fccc add preliminary support for DCGs. 2018-10-07 00:07:12 -06:00
Mark Thom e7717d4f61 remove modules properly. 2018-10-06 19:51:38 -06:00
Mark Thom c85eba0e22 remove need for taking code_dir 2018-10-06 16:25:10 -06:00
Mark Thom 254ff9715b remove unnecessary parameter in compile_listing 2018-10-05 12:17:22 -04:00
Mark Thom 86255fe0d5 correct code dir swapping for term_expansion 2018-10-04 23:04:09 -06:00
Mark Thom d7e8da8324 minor modification to lco in codegen 2018-10-04 22:28:42 -06:00
Mark Thom 054def4cc7 remove need to clone instructions. 2018-10-04 22:18:29 -06:00
Mark Thom 4bd805cc76 remove need for RefCell wrapping on CodeDir 2018-10-04 21:43:49 -06:00
Mark Thom bf0521fde6 move atom_tbl up to Machine 2018-10-04 19:36:58 -06:00
Mark Thom d9b5734688 mark term_variables type errors with blame 2018-10-03 23:08:25 -06:00
Mark Thom 8e4bb039f0 divide atom tables by module 2018-10-03 22:56:12 -06:00
Mark Thom 61536d2004 remove module name from DirEntry 2018-10-02 20:37:15 -06:00
Mark Thom 5792990dff Merge pull request #58 from triska/master
ENHANCED: Better error handling if Type is invalid.
2018-09-30 23:55:18 -03:00
Mark Thom aa8fe02b66 Merge pull request #57 from triska/master
correct can_be/2 for partial lists
2018-09-28 13:31:07 -03:00
Mark Thom 80def45d38 update README 2018-09-27 22:41:41 -06:00
Mark Thom a97987c20b add error.pl, correct numbervars/3 2018-09-27 22:40:23 -06:00
Mark Thom 6d0770aafb duplicate_term is now copy_term 2018-09-26 22:39:34 -06:00
Mark Thom 415cd2ec8f Merge branch 'master' of https://github.com/mthom/rusty-wam 2018-09-26 19:33:40 -06:00
Mark Thom 6f668a8b7a move term_variables to builtins 2018-09-26 19:33:27 -06:00
Mark Thom d52ffb0e92 add tidy_pstr_trail to neck_cut 2018-09-25 09:50:19 -03:00
Mark Thom 4cf1aa0d8f add term variables 2018-09-24 23:33:47 -06:00
Mark Thom 5e30fa6264 add more tests 2018-09-24 22:47:01 -06:00
Mark Thom af5f08ddb2 add more tests 2018-09-24 22:39:15 -06:00
Mark Thom 58ed374363 enable backtracking on partial strings 2018-09-24 22:24:23 -06:00
Mark Thom 23eed192e9 match on partial strings through get_list 2018-09-24 19:53:51 -06:00
Mark Thom bf84edce59 partial strings are still a work in progress 2018-09-24 09:51:09 -03:00
Mark Thom 0c545467b9 correct numbervars 2018-09-22 17:45:52 -06:00
Mark Thom 10cbd0875b Merge branch 'develop' 2018-09-22 17:06:43 -06:00
Mark Thom 66584cee5e add term_expansion basics 2018-09-22 17:05:19 -06:00
Mark Thom 4d57989c2b term_expansion beginnings 2018-09-22 16:25:32 -06:00
Mark Thom 109a0ee74d tighten up numbervars 2018-09-21 10:29:07 -03:00
Mark Thom 908972eff1 incorporate term_expansion phase in compilation 2018-09-18 22:44:03 -06:00
Mark Thom 78ef18ad75 stop treating copier as trait object 2018-09-18 20:58:42 -06:00
Mark Thom 4d6590c6aa correct and load numbervars 2018-09-18 17:20:34 -03:00
Mark Thom d0ac258c77 restore parse_term to toplevel 2018-09-17 21:16:15 -06:00
Mark Thom 43ba8f23dc correct ordinary input 2018-09-17 20:24:58 -06:00
Mark Thom 8eb327c735 correct conformity error 2018-09-16 14:21:50 -06:00
Mark Thom f226cb3dbd correct conformity errors 2018-09-16 14:11:21 -06:00
Mark Thom 908b0a5712 correct new copier bug 2018-09-16 10:57:14 -06:00
Mark Thom 70939331d1 correct copier. 2018-09-16 02:32:29 -06:00
Mark Thom 61fe42a2ad fix copier 2018-09-16 01:37:42 -06:00
Mark Thom 38bb7c7dec correct handling of . 2018-09-14 00:46:02 -06:00
Mark Thom bd14eb5485 Merge branch 'master' of https://github.com/mthom/rusty-wam 2018-09-13 19:46:02 -06:00
Mark Thom 1e2047e72c streamline inputs. 2018-09-13 19:44:50 -06:00