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
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
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
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
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
Mark Thom
d09e9fd8d8
provisional #4
2018-09-13 00:46:41 -06:00
Mark Thom
9b1c18912a
provisional #3
2018-09-13 00:06:54 -06:00
Mark Thom
ccbc0566ba
provisional changes #2
2018-09-12 23:31:29 -06:00
Mark Thom
fbf16e2aea
provisional changes to module insertion
2018-09-12 20:46:15 -06:00