]>
Repositorios git - scryer-prolog.git/log
Markus Triska [Sun, 26 Apr 2020 19:37:24 +0000 (21:37 +0200)]
add more information about tabling
Mark Thom [Sun, 26 Apr 2020 15:17:09 +0000 (12:17 -0300)]
Merge pull request #402 from notoria/pio
Small patch for library pio
notoria [Sun, 26 Apr 2020 12:54:20 +0000 (14:54 +0200)]
Small patch for library pio
Mark Thom [Sun, 26 Apr 2020 02:35:27 +0000 (23:35 -0300)]
Merge pull request #399 from notoria/debug
Implemented the Debug trait for all data structures
notoria [Sun, 26 Apr 2020 00:18:45 +0000 (02:18 +0200)]
Implemented the Debug trait for all data structures
Mark Thom [Sat, 25 Apr 2020 20:20:24 +0000 (17:20 -0300)]
Merge pull request #398 from triska/master
Several smaller improvements
Markus Triska [Sat, 25 Apr 2020 18:08:56 +0000 (20:08 +0200)]
include library(pio) and library(charsio) in the description
Markus Triska [Sat, 25 Apr 2020 18:01:04 +0000 (20:01 +0200)]
update toplevel interaction
Markus Triska [Sat, 25 Apr 2020 17:59:12 +0000 (19:59 +0200)]
ENHANCED: Throw domain errors in char_type/2 for wrong types
This is especially important because a few of our names diverge from
ctype(3), and we better inform programmers when the type they are
using is not available at all.
Markus Triska [Sat, 25 Apr 2020 17:59:38 +0000 (19:59 +0200)]
use an anonymous variable
Mark Thom [Sat, 25 Apr 2020 17:17:24 +0000 (14:17 -0300)]
Merge pull request #396 from notoria/phrase_from_file
Implemented phrase_from_file/2 and /2
notoria [Sat, 25 Apr 2020 16:20:20 +0000 (18:20 +0200)]
No trimming of the buffer
notoria [Sat, 25 Apr 2020 16:00:16 +0000 (18:00 +0200)]
Implemented phrase_from_file/2 and /2
Mark Thom [Sat, 25 Apr 2020 15:58:03 +0000 (12:58 -0300)]
Merge pull request #391 from notoria/msb_lsb2
Implemented lsb/2 and msb/2
notoria [Fri, 24 Apr 2020 20:47:24 +0000 (22:47 +0200)]
Implemented lsb/2 and msb/2
Mark Thom [Fri, 24 Apr 2020 00:57:03 +0000 (21:57 -0300)]
Merge pull request #380 from notoria/char_type
Implementation of the predicate char_type for a subset
notoria [Wed, 22 Apr 2020 18:44:10 +0000 (20:44 +0200)]
Implementation of the predicate char_type for a subset
notoria [Tue, 21 Apr 2020 22:46:54 +0000 (00:46 +0200)]
Draft of an implementation of char_type
Mark Thom [Wed, 22 Apr 2020 00:16:40 +0000 (21:16 -0300)]
Merge pull request #381 from triska/master
ADDED: library(format) now provides a rudimentary version of listing/1
Markus Triska [Tue, 21 Apr 2020 23:53:20 +0000 (01:53 +0200)]
ADDED: library(format) now provides a rudimentary version of listing/1
Example:
:- dynamic(a/1).
a(X) :- X = true, b(X).
Yielding:
?- listing(a/1).
%@ a(A) :-
%@ A=true,
%@ b(A).
%@ true.
listing/1 only works for predicates and DCGs that are declared dynamic/1.
Mark Thom [Mon, 20 Apr 2020 22:16:12 +0000 (19:16 -0300)]
Merge pull request #377 from triska/master
portray_clause/1 now correctly tracks variable names (#376)
Markus Triska [Mon, 20 Apr 2020 20:53:15 +0000 (22:53 +0200)]
portray_clause/1 now correctly tracks variable names (#376)
Example:
?- portray_clause((A :- B)).
%@ A :-
%@ B.
%@ true
%@ ; ...
Also, change the indentation from 8 to 3 at the express request of @UWN.
Mark Thom [Mon, 20 Apr 2020 14:52:25 +0000 (11:52 -0300)]
Merge pull request #375 from notoria/sleep
Changed the error being thrown by sleep/1
Mark Thom [Mon, 20 Apr 2020 17:37:32 +0000 (11:37 -0600)]
speed unification of pairs of partial strings
Mark Thom [Mon, 20 Apr 2020 16:37:00 +0000 (10:37 -0600)]
change CPU_now to CpuNow
Mark Thom [Mon, 20 Apr 2020 16:35:30 +0000 (10:35 -0600)]
check for num in comparisons, bump num-rug-adapter to 0.1.3
notoria [Mon, 20 Apr 2020 14:34:56 +0000 (16:34 +0200)]
Corrected the error being thrown by sleep/1
notoria [Mon, 20 Apr 2020 09:27:28 +0000 (11:27 +0200)]
Changed the error being thrown by sleep/1
Mark Thom [Mon, 20 Apr 2020 00:41:33 +0000 (21:41 -0300)]
Merge pull request #371 from notoria/sleep
Added the sleep predicate
Mark Thom [Mon, 20 Apr 2020 03:34:59 +0000 (21:34 -0600)]
do casts between different arithmetic types for comparison and equality (#372)
Mark Thom [Mon, 20 Apr 2020 02:58:53 +0000 (20:58 -0600)]
speed comparisons of partial strings
Mark Thom [Mon, 20 Apr 2020 01:54:23 +0000 (19:54 -0600)]
use default machine policies in term expansions
Mark Thom [Sun, 19 Apr 2020 22:43:32 +0000 (16:43 -0600)]
Merge branch 'master' of https://github.com/mthom/rusty-wam
Mark Thom [Sun, 19 Apr 2020 22:01:35 +0000 (16:01 -0600)]
update toplevel comments, add mutable stack to zipped acyclic iterators
notoria [Sun, 19 Apr 2020 21:26:16 +0000 (23:26 +0200)]
Undo a workaround
notoria [Sun, 19 Apr 2020 21:04:51 +0000 (23:04 +0200)]
Corrected bound
notoria [Sun, 19 Apr 2020 20:44:48 +0000 (22:44 +0200)]
Merge pull request #3 from triska/sleep
update comment
notoria [Sun, 19 Apr 2020 20:43:13 +0000 (22:43 +0200)]
Thrown an error if T < 0 or T > 0xfffffffffffffbff in sleep(T)
Markus Triska [Sun, 19 Apr 2020 20:36:27 +0000 (22:36 +0200)]
update comment
notoria [Sun, 19 Apr 2020 19:35:49 +0000 (21:35 +0200)]
Added the sleep predicate
Mark Thom [Sun, 19 Apr 2020 19:33:51 +0000 (16:33 -0300)]
Merge pull request #370 from triska/master
ENHANCED: time(Goal) now also reports the time if Goal fails
Markus Triska [Sun, 19 Apr 2020 19:13:15 +0000 (21:13 +0200)]
ENHANCED: time(Goal) now also reports the time if Goal fails
Mark Thom [Sun, 19 Apr 2020 17:29:09 +0000 (14:29 -0300)]
Merge pull request #367 from triska/master
ADDED: library(time), providing time/1 for benchmarking
Mark Thom [Sun, 19 Apr 2020 18:58:54 +0000 (12:58 -0600)]
Merge branch 'master' of https://github.com/mthom/rusty-wam
Mark Thom [Sun, 19 Apr 2020 18:58:44 +0000 (12:58 -0600)]
throw '' whenever an interrupt is made (#365, #366)
Markus Triska [Sun, 19 Apr 2020 17:24:22 +0000 (19:24 +0200)]
add entry for time/1
Markus Triska [Sun, 19 Apr 2020 17:17:00 +0000 (19:17 +0200)]
update answer to use the latest toplevel improvements
Markus Triska [Sun, 19 Apr 2020 17:13:27 +0000 (19:13 +0200)]
ADDED: library(time), providing time/1 for benchmarking
sleep/1 and predicates for reasoning about time stamps should also
be added to this library.
Mark Thom [Sun, 19 Apr 2020 01:54:17 +0000 (22:54 -0300)]
Merge pull request #364 from triska/master
Documentation addition, and correction of error term
Markus Triska [Sun, 19 Apr 2020 00:12:01 +0000 (02:12 +0200)]
Restore the type_error, which was implemented correctly by @notoria.
This corrects
f28e87b2401960e3b31bea114318e2b3ef1616d3 :
in_character is a valid type by 7.12.2 Error classification!
Markus Triska [Sat, 18 Apr 2020 23:59:16 +0000 (01:59 +0200)]
document ~| format modifier to place a tab stop at this position
This works best when used in tandem with ~N+, since it is currently
equivalent to ~0| and does not take the actual text position into account.
However, when using relative positions, this works as intended.
Mark Thom [Sat, 18 Apr 2020 23:37:32 +0000 (20:37 -0300)]
Merge pull request #363 from triska/master
Delay toplevel output until after the goal succeeds
Mark Thom [Sun, 19 Apr 2020 02:10:53 +0000 (20:10 -0600)]
remove SCCCutPolicy panic, revise (;)/2 so that comma'ed cuts are handled properly (#361)
Mark Thom [Sun, 19 Apr 2020 02:06:52 +0000 (20:06 -0600)]
drop $ naming convention inside '' when unnecessary
Mark Thom [Sat, 18 Apr 2020 23:37:54 +0000 (17:37 -0600)]
use correct signs in fixnum remainders
Markus Triska [Sat, 18 Apr 2020 23:30:56 +0000 (01:30 +0200)]
use the most recent improvements
Markus Triska [Sat, 18 Apr 2020 23:28:50 +0000 (01:28 +0200)]
ENHANCED: Delay toplevel output until after the goal succeeds.
This is to accommodate goals that are used for their side-effects,
when we are interested in their output.
Examples:
?- portray_clause((a :- a)).
a :-
a.
true
; false.
?- format("hello~w~n", [!]).
hello!
true
; false.
Mark Thom [Sat, 18 Apr 2020 20:37:14 +0000 (14:37 -0600)]
add domain and type errors for compare/3 (#296)
Mark Thom [Sat, 18 Apr 2020 20:17:13 +0000 (14:17 -0600)]
Merge branch 'master' of https://github.com/mthom/rusty-wam
Markus Triska [Sat, 18 Apr 2020 16:08:08 +0000 (18:08 +0200)]
reintroduce "n" as a synonym for ";" and " "
Markus Triska [Sat, 18 Apr 2020 15:47:24 +0000 (17:47 +0200)]
ENHANCED: the toplevel interaction now supports RETURN as a synonym for "."
This is made possible due to the recent improvements by @notoria.
Markus Triska [Sat, 18 Apr 2020 15:40:19 +0000 (17:40 +0200)]
small simplifications
notoria [Sat, 18 Apr 2020 16:28:26 +0000 (18:28 +0200)]
Removed a check in get_single_char
notoria [Sat, 18 Apr 2020 14:57:45 +0000 (16:57 +0200)]
Added Space for continuation
notoria [Sat, 18 Apr 2020 13:21:19 +0000 (15:21 +0200)]
Fixed the predicate name when error is thrown
Markus Triska [Sat, 18 Apr 2020 12:38:03 +0000 (14:38 +0200)]
instead of a type error, use a domain error
The preceding use of atom_length/2 already ensures that C has the
correct type (i.e., atom). However, its domain may still be wrong,
if its length is greater than 1.
Markus Triska [Sat, 18 Apr 2020 12:33:11 +0000 (14:33 +0200)]
use get_single_char/1
notoria [Sat, 18 Apr 2020 11:54:18 +0000 (13:54 +0200)]
Removed $raw_input_read_char
notoria [Sat, 18 Apr 2020 11:33:42 +0000 (13:33 +0200)]
get_single_char reads Tab as \t
notoria [Sat, 18 Apr 2020 11:30:52 +0000 (13:30 +0200)]
get_single_char reads Enter as \n
notoria [Sat, 18 Apr 2020 10:52:49 +0000 (12:52 +0200)]
Moved get_single_char from builtins.pl to charsio.pl
notoria [Sat, 18 Apr 2020 09:49:28 +0000 (11:49 +0200)]
Added predicate for reading a single character
Mark Thom [Sat, 18 Apr 2020 20:13:41 +0000 (14:13 -0600)]
bracket graphic token chars in toplevel.pl (#357)
Mark Thom [Sat, 18 Apr 2020 18:24:42 +0000 (12:24 -0600)]
slight tweaks to bimetatrans
Mark Thom [Wed, 15 Apr 2020 20:11:45 +0000 (14:11 -0600)]
index Constant::Usize (#355)
Mark Thom [Wed, 15 Apr 2020 19:45:35 +0000 (13:45 -0600)]
quote single dots only
Markus Triska [Wed, 15 Apr 2020 15:49:01 +0000 (17:49 +0200)]
ADDED: list_to_set/2, using the first occurrence of each element
Example:
?- list_to_set([B,a,b,a,B,A,b,A], Ls).
Ls = [B,a,b,A]
; false.
Mark Thom [Wed, 15 Apr 2020 16:32:23 +0000 (10:32 -0600)]
allow characters as atoms in Machine::use_module and Machine::use_qualified_module
Mark Thom [Wed, 15 Apr 2020 16:27:20 +0000 (10:27 -0600)]
remove underscores in printed variables produced by write_term_to_chars (#340)
Mark Thom [Wed, 15 Apr 2020 16:07:44 +0000 (10:07 -0600)]
don't count the terminator in PStrIter len
Mark Thom [Wed, 15 Apr 2020 06:54:32 +0000 (00:54 -0600)]
quote dot when quoted(true) (#349)
Mark Thom [Wed, 15 Apr 2020 06:37:00 +0000 (00:37 -0600)]
privilege new op declarations over old ones (#346)
Mark Thom [Wed, 15 Apr 2020 06:08:35 +0000 (00:08 -0600)]
interrupt running queries and return to toplevel (#323)
Mark Thom [Wed, 15 Apr 2020 05:25:15 +0000 (23:25 -0600)]
write [a,b,c] correctly with write_canonical (#349)
Markus Triska [Tue, 14 Apr 2020 17:24:13 +0000 (19:24 +0200)]
update the toplevel description, incorporating the latest changes
Mark Thom [Sat, 18 Apr 2020 17:10:26 +0000 (14:10 -0300)]
Merge pull request #360 from notoria/master
Add get_single_char predicate.
notoria [Sat, 18 Apr 2020 16:51:37 +0000 (18:51 +0200)]
Merge pull request #2 from triska/get_single_char
New feature: RET can now be used as a synonym for "." in the interaction
notoria [Sat, 18 Apr 2020 16:28:26 +0000 (18:28 +0200)]
Removed a check in get_single_char
Markus Triska [Sat, 18 Apr 2020 16:08:08 +0000 (18:08 +0200)]
reintroduce "n" as a synonym for ";" and " "
Markus Triska [Sat, 18 Apr 2020 15:47:24 +0000 (17:47 +0200)]
ENHANCED: the toplevel interaction now supports RETURN as a synonym for "."
This is made possible due to the recent improvements by @notoria.
Markus Triska [Sat, 18 Apr 2020 15:40:19 +0000 (17:40 +0200)]
small simplifications
notoria [Sat, 18 Apr 2020 14:57:45 +0000 (16:57 +0200)]
Added Space for continuation
notoria [Sat, 18 Apr 2020 13:21:19 +0000 (15:21 +0200)]
Fixed the predicate name when error is thrown
notoria [Sat, 18 Apr 2020 12:50:32 +0000 (14:50 +0200)]
Merge pull request #1 from triska/get_single_char
use get_single_char/1
Markus Triska [Sat, 18 Apr 2020 12:38:03 +0000 (14:38 +0200)]
instead of a type error, use a domain error
The preceding use of atom_length/2 already ensures that C has the
correct type (i.e., atom). However, its domain may still be wrong,
if its length is greater than 1.
Markus Triska [Sat, 18 Apr 2020 12:33:11 +0000 (14:33 +0200)]
use get_single_char/1
notoria [Sat, 18 Apr 2020 11:54:18 +0000 (13:54 +0200)]
Removed $raw_input_read_char
notoria [Sat, 18 Apr 2020 11:33:42 +0000 (13:33 +0200)]
get_single_char reads Tab as \t
notoria [Sat, 18 Apr 2020 11:30:52 +0000 (13:30 +0200)]
get_single_char reads Enter as \n
notoria [Sat, 18 Apr 2020 10:52:49 +0000 (12:52 +0200)]
Moved get_single_char from builtins.pl to charsio.pl