Commit Graph

452 Commits

Author SHA1 Message Date
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
Markus Triska
43f7743467 ENHANCED: Better error handling if Type is invalid.
Strictly speaking, type is currently not a type, so a domain error is
appropriate if Type is not a valid type. However, there are also other
cases where new types have been introduced in the past, and this
seems a good candidate for a new type. Let us hence use a type error.

Example:

    ?- can_be(listi, [a,b|Ls]).
    %@ ERROR: Type error: `type' expected, found `listi' (an atom)
2018-09-30 23:36:32 +02:00
Markus Triska
373546e83d correct can_be/2 for partial lists
Example:

    ?- can_be(list, [a,b|Ls]).
    %@ true.
2018-09-28 18:20:57 +02: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
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
1e2047e72c streamline inputs. 2018-09-13 19:44:50 -06:00