Mark Thom
326fb99849
Merge pull request #1033 from aarroyoc/fix-1022
...
Add a -f switch to load alternative initialization files
2021-08-23 22:26:15 -06:00
Mark Thom
fe1ced9f58
Merge pull request #1032 from aarroyoc/fix-1009
...
Fix #1009 by providing a naive num-bigint implementation of count_ones
2021-08-23 22:25:44 -06:00
Adrián Arroyo Calle
00d0502cbd
Rename init_file to disable_init_file
2021-08-23 09:53:15 +02:00
Adrián Arroyo Calle
c30bd51b91
use consult instead of use_module
2021-08-22 11:44:17 +02:00
Adrián Arroyo Calle
9391dd9d51
Rename to disable_init_file and change description
2021-08-22 11:36:27 +02:00
Adrián Arroyo Calle
3cd112b60f
PR feedback
2021-08-21 17:53:20 +02:00
Adrián Arroyo Calle
dce0c43e26
Read scryerrc if goals specified but not -f specified
2021-08-20 14:15:16 +02:00
Adrián Arroyo Calle
80e228f236
Clean the code
2021-08-20 14:06:57 +02:00
Adrián Arroyo Calle
8ee2545b05
Add a -f switch to load alternative initialization files
2021-08-20 14:00:32 +02:00
Adrián Arroyo Calle
9bcc56e337
Make it line
2021-08-20 12:40:27 +02:00
Adrián Arroyo Calle
3c5a94452a
Fix #1009 by providing a naive num-bigint implementation of count_ones
2021-08-20 12:38:15 +02:00
Mark Thom
fce7f8aa68
Merge pull request #1029 from triska/format
...
ENHANCED: Domain error non_empty_list for empty arguments, addressing #1024
2021-08-15 08:59:06 -06:00
Markus Triska
9e13f18463
ENHANCED: Domain error non_empty_list for empty arguments, addressing #1024 .
...
Example:
?- format("~d", []).
%@ caught: error(domain_error(non_empty_list,[]),format_//2)
2021-08-15 12:29:28 +02:00
Mark Thom
2905f6b465
Merge pull request #1027 from triska/format
...
ENHANCED: format_string domain error for invalid radix in format string
2021-08-14 23:06:28 -06:00
Markus Triska
9d3f3eb013
ENHANCED: format_string domain error for invalid radix in format string
...
This addresses #1024 .
Example:
?- format("hello ~0r!", [12]).
%@ caught: error(domain_error(format_string,"~0r"),format_//2)
2021-08-14 20:04:07 +02:00
Mark Thom
75b5afa759
Merge pull request #1026 from triska/format
...
ENHANCED: If N is omitted in ~Nr or ~NR, it defaults to 8.
2021-08-14 09:15:30 -06:00
Markus Triska
78c2f19e72
ENHANCED: If N is omitted in ~Nr or ~NR, it defaults to 8.
...
This is for compatibility with Quintus, SICStus and GNU Prolog,
addressing #1024 .
Example:
?- format("~r", [10]).
%@ 12 true.
2021-08-14 13:48:21 +02:00
Mark Thom
9a66a626f7
run user-level and module-level initialization goals from loader.pl ( #1012 )
2021-08-01 09:25:55 -06:00
Mark Thom
f42b7f4efa
Merge pull request #1001 from triska/master
...
ADDED: ... //0, describing an arbitrary number of elements
2021-07-08 14:44:29 -06:00
Markus Triska
bf9654e138
ADDED: ... //0, describing an arbitrary number of elements
...
This is a very versatile nonterminal. For instance, repeated elements:
?- phrase((...,[E],...,[E],...), "hello!!").
%@ E = l
%@ ; E = !
%@ ; false.
2021-07-03 09:54:01 +02:00
Mark Thom
4decd1d784
Merge pull request #996 from triska/master
...
address #995 : wrong results for popcount/1
2021-06-22 11:56:56 -06:00
Markus Triska
3e7cd24814
address #995 : wrong results for popcount/1
...
Many thanks to @notoria and @flexoron for very useful test cases!
2021-06-21 21:19:37 +02:00
Mark Thom
3e0bece53a
Merge pull request #993 from triska/master
...
ADDED: popcount(+Integer)
2021-06-18 18:13:30 -06:00
Mark Thom
c1b89b3b06
Merge pull request #986 from Regan-Koopmans/981
...
Add popcount/2
2021-06-18 18:13:18 -06:00
Regan-Koopmans
f5eadb2957
981 Prefer must_be/2
2021-06-18 08:22:43 +02:00
Markus Triska
ee393c66dd
ADDED: popcount(+Integer)
...
Example:
?- X #= popcount(3+5).
X = 1.
This builds on #986 provided by @Regan-Koopmans. Many thanks!
2021-06-17 20:18:36 +02:00
Regan-Koopmans
72a7765b58
981 Reimplement as library system call
2021-06-17 12:10:25 +02:00
Mark Thom
176daeec03
Merge pull request #983 from triska/master
...
check for correct domain of integers in reifiable expressions also in the expanded code
2021-06-03 18:32:48 -06:00
Markus Triska
066f740819
check for correct domain of integers in reifiable expressions also in the expanded code
...
This is to preserve domain errors instead of failing silently. Example:
?- 5 #> 3 #<==> 2.
%@ caught: error(domain_error(clpz_reifiable_expression,2),unknown(2)-1)
2021-06-03 22:57:58 +02:00
Mark Thom
04121644a3
Merge pull request #978 from Skgland/master
...
fix beta build and tests
2021-06-03 12:38:18 -06:00
Mark Thom
1e37a0d9e6
Merge pull request #982 from triska/master
...
ENHANCED: Goal expansion for reified constraints.
2021-06-03 12:35:31 -06:00
Markus Triska
fc8d33a98a
ENHANCED: Goal expansion for reified constraints.
...
Used in package precautionary by @dcnorris.
2021-06-03 20:26:44 +02:00
Skgland
2089727c7f
ignore setup_call_cleanup tests as their output is apparently non-deterministic
2021-06-02 17:41:14 +02:00
Skgland
fbbf705d10
fix tests
2021-06-02 17:15:31 +02:00
Skgland
e08c302756
fix beta build
2021-06-02 16:43:10 +02:00
Mark Thom
87ef3519d9
Merge pull request #972 from pmoura/add_pid_predicate
...
Add pid/1 predicate to the os library
2021-05-19 14:09:21 -06:00
Mark Thom
9002c33046
leave the expansion of incomplete goals in meta-predicates to call/N ( #967 , #970 )
2021-05-19 14:07:46 -06:00
Paulo Moura
b9ad6f4fd2
Add pid/1 predicate to the os library
2021-05-18 20:05:30 +01:00
Mark Thom
57db17853e
Merge pull request #971 from pmoura/add_rename_file_predicate
...
Add rename_file/2 predicate to the files library
2021-05-18 12:49:52 -06:00
Paulo Moura
58555d598b
Add rename_file/2 predicate to the files library
2021-05-18 18:08:30 +01:00
Mark Thom
0eeae24049
Merge pull request #968 from pmoura/add_make_directory_path_predicate
...
Add make_directory_path/1 predicate to the files library
2021-05-18 10:26:06 -06:00
Mark Thom
3def7c66ad
Merge pull request #969 from pmoura/add_delete_directory_predicate
...
Add delete_directory/1 predicate to the files library
2021-05-18 10:25:52 -06:00
Paulo Moura
eeac3bc436
Add delete_directory/1 predicate to the files library
2021-05-18 08:41:19 +01:00
Paulo Moura
bdebc7f32e
Add make_directory_path/1 predicate to the files library
2021-05-18 00:21:11 +01:00
Mark Thom
e7d6811948
Merge pull request #965 from pmoura/fix_current_predicate_error_checking
...
Fix current_predicate/1 predicate error checking
2021-05-16 23:37:20 -06:00
Paulo Moura
0e263dd753
Fix current_predicate/1 predicate error checking
2021-05-16 23:49:21 +01:00
Mark Thom
56bbcb1cb3
Merge pull request #956 from pmoura/fix_subsumes_term_predicate
...
Fix subsumes_term/2 predicate to use unify_with_occurs_check/2 instead of (=)/2
2021-05-13 23:18:58 -06:00
Mark Thom
f02648022a
Merge pull request #960 from triska/master
...
FIXED: correct propagation of tuples_in/2 (#929 )
2021-05-13 23:18:47 -06:00
Mark Thom
9bb1f4e6f8
Merge pull request #958 from pmoura/fixes_for_retract_predicates
...
Fixes for retract predicates
2021-05-13 23:18:36 -06:00
Mark Thom
d219f0bdc6
Merge pull request #957 from pmoura/fix_at_end_of_stream_predicate_missing_check_for_instantiation_error
...
Fix at_end_of_stream/1 predicate missing check for instantiation error
2021-05-13 23:17:59 -06:00