Adrián Arroyo Calle
fc14d089b1
Use phrase instead of forall
2020-12-27 14:11:09 +01:00
Adrián Arroyo Calle
4e543238e1
Queries
2020-12-27 13:23:38 +01:00
Adrián Arroyo Calle
6579a542b8
Merge branch 'master' into http-server
2020-12-27 12:18:05 +01:00
Adrián Arroyo Calle
27e3dcea6c
Redirections, default status code, rout matching 1.0
2020-12-27 12:16:46 +01:00
Mark Thom
01f73b11d8
fix bug in code walker causing entire clauses to be skipped ( #736 )
2020-12-26 22:35:28 -07:00
Markus Triska
67d856e4b7
reflect determinism improvement thanks to the latest changes
2020-12-23 18:06:35 +01:00
Markus Triska
27a52ef56a
reflect improved determinism thanks to the improvements by @notoria
2020-12-23 00:05:29 +01:00
Mark Thom
342b4a3b52
Merge pull request #734 from triska/deterministic_format
...
ENHANCED: format_//2, format/[2,3], portray_clause/1 are now deterministic
2020-12-22 14:51:56 -07:00
notoria
706d842102
Renamed find_optimal_index to first_instantiated_index
2020-12-21 20:27:53 +01:00
notoria
ecc059bf8b
Organized changes into find_optimal_index
2020-12-21 12:19:21 +01:00
Adrián Arroyo Calle
e1f4a50e65
HTTP Body
2020-12-21 00:15:00 +01:00
notoria
ec2c5a9b2c
Simplified the code, removed first_arg, the Option
2020-12-19 21:04:17 +01:00
Markus Triska
4efbc20a4f
ENHANCED: format_//2, format/[2,3], portray_clause/1 are now deterministic.
...
This works as soon as #732 is merged, since then maplist/N and foldl/N
are deterministic in the required cases.
This also resolves the extra choicepoint of time/1 (see #378 ).
Many thanks to @notoria for implementing better indexing in #732 ,
which allowed me to find this opportunity for improvement!
2020-12-19 18:18:14 +01:00
notoria
657e4f12bb
Implemented a different way to index clauses
2020-12-19 14:52:38 +01:00
brightly-salty
4854da4805
Replace dirs with dirs-next
2020-12-15 06:59:26 -06:00
Adrián Arroyo Calle
33a0df20c3
Read body
2020-12-14 22:57:53 +01:00
Adrián Arroyo Calle
e4d1e4b7a0
Request and Response headers
2020-12-12 21:28:33 +01:00
Adrián Arroyo Calle
dbc193ab2a
WIP http_server
2020-12-09 23:40:00 +01:00
Mark Thom
7bde174b40
Merge pull request #722 from aarroyoc/history-file
...
History file support (Rustyline 7.0) (#152 )
2020-12-06 15:50:52 -07:00
Adrián Arroyo Calle
e2796dd351
History file support (Rustyline 7.0)
2020-12-06 23:16:25 +01:00
Adrián Arroyo Calle
0696a18e0b
Change name to list_max, list_min as PR feedback
2020-12-06 21:58:37 +01:00
Adrián Arroyo Calle
0cc9388af0
Use foldl as PR feedback suggested
2020-12-06 17:31:42 +01:00
Adrián Arroyo Calle
a73529969a
Add max_list & min_list to lists
2020-12-05 14:20:50 +01:00
Markus Triska
41a751e7f5
ADDED: Provisional support for (#=)/3 and (#<)/3.
...
These predicates are intended for constructs from library(reif), such
as if_/3. For the time being, they are defined here. If you have any
recommendations or comments regarding the best location of these
predicates, or need more of them, please file an issue.
Suggested by @Qqwy in https://github.com/triska/clpz/issues/12 .
Many thanks!
2020-11-08 09:26:50 +01:00
Mark Thom
b9a53e441e
support number/1
2020-11-03 23:38:55 -07:00
Marco A L Barbosa
8d405849be
Update num-rug-adapter to fix build with num feature.
2020-10-18 19:20:45 -03:00
Markus Triska
46dfaa5b28
ENHANCED: library(files): Error handling if requested files do not exist.
...
We now throw exceptions instead of failing silently, or even crashing
when using file_size/2 etc. with nonexistent files.
2020-09-13 10:23:23 +02:00
Mark Thom
323e9c3eb3
refactor SystemClauseType::Open in anticipation of #614
2020-09-05 18:57:03 -06:00
Mark Thom
d677d3d2ef
preface the 'spelling error' with an explainer comment ( #687 )
2020-09-05 18:07:58 -06:00
Markus Triska
5f3ab823fd
FIXED: format_//2: Keep different variables distinct.
...
Example:
?- phrase(format_("~w~w", [_,_]), Ls).
%@ Ls = "AB"
%@ ; false.
2020-09-05 09:58:49 +02:00
Markus Triska
78656d220b
FIXED: reliably write all characters when using format/3
...
This addresses #693 .
Many thanks to @notoria for a brilliant test case, and the
suggestion of this correction!
2020-09-02 19:29:04 +02:00
Markus Triska
79cb4cd6a5
ADDED: First version of call_nth/2.
...
A thread-safe implementation is possible for example with
'$nb_setarg'/3 (see #390 ).
2020-08-24 19:29:08 +02:00
Mark Thom
d3ab4b5def
flatten passage of cut point B in (,)/2, (->)/2 and (;)/2 ( #685 , #683 )
2020-08-23 22:49:10 -03:00
Markus Triska
cc77ef680d
dif/2: Omit entailed residual goals, if the arguments are not unifiable.
...
This addresses #135 .
2020-08-22 17:50:15 +02:00
Markus Triska
e75ebd9b6e
dif/2: Succeed unconditionally if the arguments are not unifiable.
...
This addresses one part of #135 .
2020-08-22 17:50:15 +02:00
notoria
0724c044d6
Use nonterminal fd_put//3 in mod from clpz
2020-08-15 17:56:07 +02:00
notoria
bed4afe74f
Simplified the code
2020-08-15 17:39:34 +02:00
notoria
d4263cc8b9
Using queue_goal//1 to correctly bind variables
2020-08-15 17:06:12 +02:00
notoria
b4b11465a1
Fixed variable bindings in mod from clpz
2020-08-15 13:37:33 +02:00
notoria
daaebc59cb
Made mod stronger and addressed #675
2020-08-15 12:53:28 +02:00
Mark Thom
79a74038ac
Merge pull request #674 from notoria/clpz_mod
...
Improved mod in clpz
2020-08-14 00:21:19 -03:00
notoria
314baabf1d
More improvement on mod from CLP(Z)
2020-08-13 21:36:36 +02:00
notoria
a24fbb8f61
Improved mod in CLP(Z)
...
This is still a work in progress.
2020-08-13 10:33:36 +02:00
Markus Triska
e185b626bd
FIXED: CLP(B): Delay BDD restriction until after the instantiation.
...
This is necessary to actually take the new value into account.
Example:
?- sat(A*B>=C*D), A=1,B=0,C=1,D=1.
false.
This addresses #670 .
2020-08-12 19:51:25 +02:00
Markus Triska
099d9aaca6
library(sgml): Correctly parse XML leaf nodes that are not text nodes.
...
Example:
?- load_xml("<schemaRef type=\"simple\"/>", Node, []).
Node = [element(schemaRef,[type="simple"],[])].
This is necessary for example to parse XBRL files. See #665 .
2020-08-11 21:20:33 +02:00
Markus Triska
ad8e2ad4f6
omit internal attributes in residual goals when using taut/2
...
Examples:
?- taut(X=:=X,1).
clpb:sat(X=:=X)
; false.
?- taut(X=\=X,0).
clpb:sat(X=:=X)
; false.
2020-08-11 20:49:10 +02:00
Mark Thom
ad333047d9
Merge branch 'master' of https://github.com/mthom/scryer-prolog
2020-08-08 13:12:09 -06:00
Mark Thom
6e5d2d6a36
fix bugs in PausedPrologStream ( #661 )
2020-08-08 13:11:09 -06:00
Mark Thom
4b610b6293
Merge pull request #656 from notoria/try_from_number
...
Fixed some conversion issues
2020-08-08 12:24:29 -03:00
Markus Triska
c55cc3c472
ensure proper lengths of key and initialization vector
...
This avoids crashes when using unsuitable lengths.
2020-08-06 23:27:49 +02:00