Markus Triska
b604177ca1
include library(pio) and library(charsio) in the description
2020-04-25 20:12:54 +02:00
Markus Triska
f27597cab5
update toplevel interaction
2020-04-25 20:12:54 +02:00
Markus Triska
40619c8184
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.
2020-04-25 20:12:54 +02:00
Markus Triska
b0a5df2838
use an anonymous variable
2020-04-25 19:59:46 +02:00
Mark Thom
ae9232a2cb
Merge pull request #396 from notoria/phrase_from_file
...
Implemented phrase_from_file/2 and /2
2020-04-25 14:17:24 -03:00
notoria
ad28d0025a
No trimming of the buffer
2020-04-25 18:20:20 +02:00
notoria
d6772c5ca5
Implemented phrase_from_file/2 and /2
2020-04-25 18:04:13 +02:00
Mark Thom
a2400767ed
Merge pull request #391 from notoria/msb_lsb2
...
Implemented lsb/2 and msb/2
2020-04-25 12:58:03 -03:00
notoria
1873b655a8
Implemented lsb/2 and msb/2
2020-04-24 23:52:32 +02:00
Mark Thom
e27c2b59c8
Merge pull request #380 from notoria/char_type
...
Implementation of the predicate char_type for a subset
2020-04-23 21:57:03 -03:00
notoria
4b50608642
Implementation of the predicate char_type for a subset
2020-04-23 16:09:06 +02:00
notoria
e3a7f9eb7a
Draft of an implementation of char_type
2020-04-22 12:57:18 +02:00
Mark Thom
c130b3a92e
Merge pull request #381 from triska/master
...
ADDED: library(format) now provides a rudimentary version of listing/1
2020-04-21 21:16:40 -03:00
Markus Triska
20fb6d6669
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.
2020-04-22 01:53:20 +02:00
Mark Thom
caf20cd43d
Merge pull request #377 from triska/master
...
portray_clause/1 now correctly tracks variable names (#376 )
2020-04-20 19:16:12 -03:00
Markus Triska
608d661355
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.
2020-04-20 22:53:15 +02:00
Mark Thom
31c868818b
Merge pull request #375 from notoria/sleep
...
Changed the error being thrown by sleep/1
2020-04-20 11:52:25 -03:00
Mark Thom
443c4b6cd0
speed unification of pairs of partial strings
2020-04-20 11:37:32 -06:00
Mark Thom
ee425bb7f0
change CPU_now to CpuNow
2020-04-20 10:37:00 -06:00
Mark Thom
9d1c026231
check for num in comparisons, bump num-rug-adapter to 0.1.3
2020-04-20 10:35:30 -06:00
notoria
6d7612ead6
Corrected the error being thrown by sleep/1
2020-04-20 16:36:57 +02:00
notoria
b3e31094ff
Changed the error being thrown by sleep/1
2020-04-20 11:27:28 +02:00
Mark Thom
c9750fab2c
Merge pull request #371 from notoria/sleep
...
Added the sleep predicate
2020-04-19 21:41:33 -03:00
Mark Thom
5a1348e4d1
do casts between different arithmetic types for comparison and equality ( #372 )
2020-04-19 21:34:59 -06:00
Mark Thom
b64d45a74e
speed comparisons of partial strings
2020-04-19 20:58:53 -06:00
Mark Thom
ba5a4c3945
use default machine policies in term expansions
2020-04-19 19:54:23 -06:00
Mark Thom
9ba37a932b
Merge branch 'master' of https://github.com/mthom/rusty-wam
2020-04-19 16:43:32 -06:00
Mark Thom
8ce377d033
update toplevel comments, add mutable stack to zipped acyclic iterators
2020-04-19 16:01:35 -06:00
notoria
a7f3dafd81
Undo a workaround
2020-04-19 23:26:16 +02:00
notoria
fb38b4b906
Corrected bound
2020-04-19 23:04:51 +02:00
notoria
f0a1a90b0e
Merge pull request #3 from triska/sleep
...
update comment
2020-04-19 22:44:48 +02:00
notoria
fb331d39a6
Thrown an error if T < 0 or T > 0xfffffffffffffbff in sleep(T)
2020-04-19 22:43:13 +02:00
Markus Triska
7a3e6e19b1
update comment
2020-04-19 22:36:27 +02:00
notoria
5a063c541d
Added the sleep predicate
2020-04-19 21:35:49 +02:00
Mark Thom
eef25ec638
Merge pull request #370 from triska/master
...
ENHANCED: time(Goal) now also reports the time if Goal fails
2020-04-19 16:33:51 -03:00
Markus Triska
7141fb18c1
ENHANCED: time(Goal) now also reports the time if Goal fails
2020-04-19 21:13:15 +02:00
Mark Thom
2c92be5e3d
Merge pull request #367 from triska/master
...
ADDED: library(time), providing time/1 for benchmarking
2020-04-19 14:29:09 -03:00
Mark Thom
cae0733149
Merge branch 'master' of https://github.com/mthom/rusty-wam
2020-04-19 12:58:54 -06:00
Mark Thom
5d6ca7a88e
throw '' whenever an interrupt is made ( #365 , #366 )
2020-04-19 12:58:44 -06:00
Markus Triska
23b8a4d364
add entry for time/1
2020-04-19 19:24:22 +02:00
Markus Triska
c0df8cb578
update answer to use the latest toplevel improvements
2020-04-19 19:18:47 +02:00
Markus Triska
4693c23a49
ADDED: library(time), providing time/1 for benchmarking
...
sleep/1 and predicates for reasoning about time stamps should also
be added to this library.
2020-04-19 19:18:47 +02:00
Mark Thom
86364ff278
Merge pull request #364 from triska/master
...
Documentation addition, and correction of error term
2020-04-18 22:54:17 -03:00
Markus Triska
60f1f1cb3d
Restore the type_error, which was implemented correctly by @notoria.
...
This corrects f28e87b240 :
in_character is a valid type by 7.12.2 Error classification!
2020-04-19 02:15:59 +02:00
Markus Triska
ab3c520006
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.
2020-04-19 01:59:16 +02:00
Mark Thom
3798dcb98d
Merge pull request #363 from triska/master
...
Delay toplevel output until after the goal succeeds
2020-04-18 20:37:32 -03:00
Mark Thom
9daf290432
remove SCCCutPolicy panic, revise (;)/2 so that comma'ed cuts are handled properly ( #361 )
2020-04-18 20:10:53 -06:00
Mark Thom
3438f88c1e
drop $ naming convention inside '' when unnecessary
2020-04-18 20:06:52 -06:00
Mark Thom
2c8858ff2d
use correct signs in fixnum remainders
2020-04-18 17:37:54 -06:00
Markus Triska
45ed9405b0
use the most recent improvements
2020-04-19 01:34:13 +02:00