]> Repositorios git - scryer-prolog.git/log
scryer-prolog.git
5 years agoMerge pull request #920 from panasenco/serialize
Mark Thom [Thu, 29 Apr 2021 19:11:13 +0000 (13:11 -0600)]
Merge pull request #920 from panasenco/serialize

Character logic cleanup and extension

5 years agoOops, we want to keep digits as characters in library(abnf), but as numbers in librar...
panasenco [Thu, 29 Apr 2021 05:58:04 +0000 (22:58 -0700)]
Oops, we want to keep digits as characters in library(abnf), but as numbers in library(json).

5 years agoRestructuring and improving documentation.
panasenco [Thu, 29 Apr 2021 05:22:00 +0000 (22:22 -0700)]
Restructuring and improving documentation.

5 years agoReplaced object() with pairs() in library(json), and made key type explicit.
panasenco [Wed, 28 Apr 2021 23:09:38 +0000 (16:09 -0700)]
Replaced object() with pairs() in library(json), and made key type explicit.

5 years agoAdded ABNF grammar to library(charsio) as well as octet character type that it depend...
panasenco [Wed, 28 Apr 2021 05:48:03 +0000 (22:48 -0700)]
Added ABNF grammar to library(charsio) as well as octet character type that it depends on. Modified library(json) to use the new ABNF grammar.

5 years agoAlphabetized character logic in macros.rs and system_calls.rs
panasenco [Tue, 27 Apr 2021 18:58:39 +0000 (11:58 -0700)]
Alphabetized character logic in macros.rs and system_calls.rs

5 years agofix use of local skeletons to reload predicates (#919)
Mark Thom [Tue, 27 Apr 2021 08:00:54 +0000 (02:00 -0600)]
fix use of local skeletons to reload predicates (#919)

5 years agoMerge pull request #913 from panasenco/json
Mark Thom [Mon, 26 Apr 2021 19:34:04 +0000 (13:34 -0600)]
Merge pull request #913 from panasenco/json

Another thorough rewrite of library(json) to better preserve the complete set of answers as much as possible

5 years agoReplaced raw_chars//1 in library(pio) with seq//1 in library(dcgs).
panasenco [Sun, 25 Apr 2021 21:53:37 +0000 (14:53 -0700)]
Replaced raw_chars//1 in library(pio) with seq//1 in library(dcgs).

5 years agoAdded \raw_chars//1 to library(pio). Began using setup_call_cleanup/3 as suggested...
panasenco [Sun, 25 Apr 2021 04:29:50 +0000 (21:29 -0700)]
Added \raw_chars//1 to library(pio). Began using setup_call_cleanup/3 as suggested by @triska.

5 years agoAnother thorough rewrite of library(json) to better preserve the complete set of...
panasenco [Fri, 23 Apr 2021 06:51:34 +0000 (23:51 -0700)]
Another thorough rewrite of library(json) to better preserve the complete set of answers as much as possible and thereby write more elegant and simple code. Some performance gains too!

5 years agoMerge pull request #912 from panasenco/json
Mark Thom [Thu, 22 Apr 2021 23:44:44 +0000 (17:44 -0600)]
Merge pull request #912 from panasenco/json

library(json) beta

5 years agoRewrote many parts of library(json) to leave no choicepoints when generating JSON...
panasenco [Thu, 22 Apr 2021 20:31:06 +0000 (13:31 -0700)]
Rewrote many parts of library(json) to leave no choicepoints when generating JSON. However, the generating performance actually worsened slightly...

5 years agoNow preserving distinction between ints and floats
panasenco [Wed, 21 Apr 2021 02:59:01 +0000 (19:59 -0700)]
Now preserving distinction between ints and floats

5 years agoSeem to be generating JSON correctly and at a good speed too!
panasenco [Wed, 21 Apr 2021 00:26:38 +0000 (17:26 -0700)]
Seem to be generating JSON correctly and at a good speed too!

5 years agoRemoved CLP(Z) from library(json), achieving a 100x speedup in JSON parsing.
panasenco [Tue, 20 Apr 2021 23:58:33 +0000 (16:58 -0700)]
Removed CLP(Z) from library(json), achieving a 100x speedup in JSON parsing.

5 years agoFixed forward slash special case issue, added a bunch of test files that were success...
panasenco [Tue, 20 Apr 2021 04:46:11 +0000 (21:46 -0700)]
Fixed forward slash special case issue, added a bunch of test files that were successfully read!

5 years agoFixed defaulty representations of json_members//1 and json_elements//1
panasenco [Mon, 19 Apr 2021 21:57:15 +0000 (14:57 -0700)]
Fixed defaulty representations of json_members//1 and json_elements//1

5 years agoChanged formatting to match Markus Triska's as much as I can tell
panasenco [Mon, 19 Apr 2021 06:44:10 +0000 (23:44 -0700)]
Changed formatting to match Markus Triska's as much as I can tell

5 years agoComplete reordering and partial rewrite to match the official McKeeman form of the...
panasenco [Mon, 19 Apr 2021 06:21:12 +0000 (23:21 -0700)]
Complete reordering and partial rewrite to match the official McKeeman form of the JSON specification

5 years agoAdded objects and type distinction based on the principal functor
panasenco [Sun, 18 Apr 2021 21:59:16 +0000 (14:59 -0700)]
Added objects and type distinction based on the principal functor

5 years agoParsing and generating JSON numbers works perfectly now as far as I can tell
panasenco [Sun, 18 Apr 2021 04:44:57 +0000 (21:44 -0700)]
Parsing and generating JSON numbers works perfectly now as far as I can tell

5 years agoBegan working on json library (fresh start after thinking about instantiation in...
panasenco [Mon, 12 Apr 2021 22:15:29 +0000 (15:15 -0700)]
Began working on json library (fresh start after thinking about instantiation in terms of search strategies)

5 years agoMerge pull request #909 from triska/master
Mark Thom [Sat, 17 Apr 2021 16:34:48 +0000 (10:34 -0600)]
Merge pull request #909 from triska/master

add a new section about support and discussions

5 years agoadd a new section about support and discussions
Markus Triska [Sat, 17 Apr 2021 11:42:35 +0000 (13:42 +0200)]
add a new section about support and discussions

5 years agoMerge pull request #900 from triska/master
Mark Thom [Wed, 14 Apr 2021 21:28:59 +0000 (15:28 -0600)]
Merge pull request #900 from triska/master

remove rectractall/1 (built-in since 8188e3d0cfde3f2277232a5e9ff2931873211af6).

5 years agoassertz/1, asserta/1, retract/1, retractall/1 are meta-predicates (#902, #903)
Mark Thom [Wed, 14 Apr 2021 21:10:45 +0000 (15:10 -0600)]
assertz/1, asserta/1, retract/1, retractall/1 are meta-predicates (#902, #903)

5 years agoremove rectractall/1 (built-in since 8188e3d0cfde3f2277232a5e9ff2931873211af6).
Markus Triska [Wed, 14 Apr 2021 18:18:50 +0000 (20:18 +0200)]
remove rectractall/1 (built-in since 8188e3d0cfde3f2277232a5e9ff2931873211af6).

This resolves #899.

5 years agoMerge pull request #897 from panasenco/master
Mark Thom [Tue, 13 Apr 2021 03:55:58 +0000 (21:55 -0600)]
Merge pull request #897 from panasenco/master

Switched to cargo-chef for preparing the Docker image

5 years agoSwitched to cargo-chef for preparing the Docker image
panasenco [Mon, 12 Apr 2021 21:54:15 +0000 (14:54 -0700)]
Switched to cargo-chef for preparing the Docker image

5 years agoadd missing standard predicates (#896)
Mark Thom [Mon, 12 Apr 2021 16:49:18 +0000 (10:49 -0600)]
add missing standard predicates (#896)

5 years agocall '$erase_ball' before running cleanup code in setup_call_cleanup (#886)
Mark Thom [Wed, 24 Mar 2021 22:56:48 +0000 (16:56 -0600)]
call '$erase_ball' before running cleanup code in setup_call_cleanup (#886)

5 years agostop unifying ! to free variables in control_functor/1 (#887)
Mark Thom [Wed, 24 Mar 2021 21:05:59 +0000 (15:05 -0600)]
stop unifying ! to free variables in control_functor/1 (#887)

5 years agomake retract_local_clauses safe, remove warning about overwriting warning in do_not_d...
Mark Thom [Tue, 23 Mar 2021 18:37:43 +0000 (12:37 -0600)]
make retract_local_clauses safe, remove warning about overwriting warning in do_not_duplicate_path_components test

5 years agouse occurs check when enabled in UnifyValue (#885)
Mark Thom [Tue, 23 Mar 2021 04:05:03 +0000 (22:05 -0600)]
use occurs check when enabled in UnifyValue (#885)

5 years agoreorder declaration matching in loader.pl
Mark Thom [Tue, 23 Mar 2021 00:13:01 +0000 (18:13 -0600)]
reorder declaration matching in loader.pl

5 years agoflush loader term queue before compiling declarations, declare '/1' as dynamic before...
Mark Thom [Mon, 22 Mar 2021 22:53:23 +0000 (16:53 -0600)]
flush loader term queue before compiling declarations, declare '/1' as dynamic before asserting

5 years agoremove redundant retraction records for incremental compilation
Mark Thom [Mon, 22 Mar 2021 21:27:45 +0000 (15:27 -0600)]
remove redundant retraction records for incremental compilation

5 years agocompare the tails of partial string prefixes in compare_pstr_prefixes (#883)
Mark Thom [Mon, 22 Mar 2021 18:44:58 +0000 (12:44 -0600)]
compare the tails of partial string prefixes in compare_pstr_prefixes (#883)

5 years ago copies only those attributes planted by the calling module
Mark Thom [Sun, 21 Mar 2021 19:00:29 +0000 (13:00 -0600)]
 copies only those attributes planted by the calling module

5 years agoremove vestigial attribute goals struct field and related predicates
Mark Thom [Sun, 21 Mar 2021 17:58:37 +0000 (11:58 -0600)]
remove vestigial attribute goals struct field and related predicates

5 years agorename issue841-occure-check.pl to issue841-occurs-check.pl
Mark Thom [Fri, 19 Mar 2021 22:35:50 +0000 (16:35 -0600)]
rename issue841-occure-check.pl to issue841-occurs-check.pl

5 years agorecognize cuts in (->)/(,)/(;) calling contexts (#878)
Mark Thom [Fri, 19 Mar 2021 22:34:55 +0000 (16:34 -0600)]
recognize cuts in (->)/(,)/(;) calling contexts (#878)

5 years agoMerge pull request #872 from notoria/charsio
Mark Thom [Thu, 18 Mar 2021 20:51:36 +0000 (14:51 -0600)]
Merge pull request #872 from notoria/charsio

Extend alnum, add forgotten graphic_token

5 years agofix findall/4 (#873)
Mark Thom [Thu, 18 Mar 2021 18:50:12 +0000 (12:50 -0600)]
fix findall/4 (#873)

5 years agorestore deleted parts of number_chars/2 and number_codes/2 (#721)
Mark Thom [Thu, 18 Mar 2021 02:23:58 +0000 (20:23 -0600)]
restore deleted parts of number_chars/2 and number_codes/2 (#721)

5 years agoprint floating point zero as 0.0 (#859)
Mark Thom [Thu, 18 Mar 2021 02:17:08 +0000 (20:17 -0600)]
print floating point zero as 0.0 (#859)

5 years agomake chars callable (#713)
Mark Thom [Thu, 18 Mar 2021 01:50:41 +0000 (19:50 -0600)]
make chars callable (#713)

5 years agoalways print variable bindings before names (#865)
Mark Thom [Thu, 18 Mar 2021 01:27:53 +0000 (19:27 -0600)]
always print variable bindings before names (#865)

5 years agocheck that a load context path is a filename before potentially returning it as a...
Mark Thom [Thu, 18 Mar 2021 00:58:33 +0000 (18:58 -0600)]
check that a load context path is a filename before potentially returning it as a string

5 years agofindall/4 should be declared as a meta-predicate (#873)
Mark Thom [Thu, 18 Mar 2021 00:13:06 +0000 (18:13 -0600)]
findall/4 should be declared as a meta-predicate (#873)

5 years agoissue an imcomplete reduction error if stream ends with tokens remaining to be parsed...
Mark Thom [Wed, 17 Mar 2021 20:23:34 +0000 (14:23 -0600)]
issue an imcomplete reduction error if stream ends with tokens remaining to be parsed (#871)

5 years agoExtend alnum, add forgotten graphic_token
notoria [Wed, 17 Mar 2021 19:47:09 +0000 (20:47 +0100)]
Extend alnum, add forgotten graphic_token

5 years agoremove operators declared at user-level from files when reloading
Mark Thom [Tue, 16 Mar 2021 19:47:30 +0000 (13:47 -0600)]
remove operators declared at user-level from files when reloading

5 years agoclear user-level definitions when reloading a file (#455)
Mark Thom [Tue, 16 Mar 2021 08:30:09 +0000 (02:30 -0600)]
clear user-level definitions when reloading a file (#455)

5 years agodon't warn about overwriting a clause asserted to a dynamic predicate whose clauses...
Mark Thom [Mon, 15 Mar 2021 20:22:54 +0000 (14:22 -0600)]
don't warn about overwriting a clause asserted to a dynamic predicate whose clauses have all been retracted (#870)

5 years agoremove intra-module predicates from module code directory when module is being re...
Mark Thom [Sun, 14 Mar 2021 06:22:24 +0000 (23:22 -0700)]
remove intra-module predicates from module code directory when module is being re-defined (#848)

5 years agoMerge pull request #866 from Skgland/add_tests
Mark Thom [Sat, 13 Mar 2021 07:39:01 +0000 (00:39 -0700)]
Merge pull request #866 from Skgland/add_tests

Add tests for some recently closed Issues

5 years agofix expected output for syntax_error test
Skgland [Thu, 11 Mar 2021 16:01:26 +0000 (17:01 +0100)]
fix expected output for syntax_error test

5 years agoaddress problems brought up in review
Skgland [Thu, 11 Mar 2021 15:16:31 +0000 (16:16 +0100)]
address problems brought up in review

5 years agoadd more tests
Skgland [Thu, 11 Mar 2021 00:19:17 +0000 (01:19 +0100)]
add more tests

for some of the recently closed issues

5 years agoimprove comment
Skgland [Thu, 11 Mar 2021 00:18:11 +0000 (01:18 +0100)]
improve comment

5 years agoclean up tests/
Skgland [Thu, 11 Mar 2021 00:21:20 +0000 (01:21 +0100)]
clean up tests/

give helper function a more descriptive name

5 years agofix is_cyclic_term (#864)
Mark Thom [Wed, 10 Mar 2021 23:11:43 +0000 (16:11 -0700)]
fix is_cyclic_term (#864)

5 years agoMerge pull request #861 from notoria/mod
Mark Thom [Wed, 10 Mar 2021 20:52:48 +0000 (13:52 -0700)]
Merge pull request #861 from notoria/mod

Small improvement for mod in CLP(Z)

5 years agoAdded a test for mod in CLP(Z)
notoria [Wed, 10 Mar 2021 20:19:47 +0000 (21:19 +0100)]
Added a test for mod in CLP(Z)

5 years agoMerge pull request #862 from notoria/xor
Mark Thom [Tue, 9 Mar 2021 19:33:06 +0000 (12:33 -0700)]
Merge pull request #862 from notoria/xor

Implemented a propagator for xor in CLP(Z)

5 years agoUse functional notation in CLP(Z) for compatibility
notoria [Sun, 7 Mar 2021 19:59:25 +0000 (20:59 +0100)]
Use functional notation in CLP(Z) for compatibility

5 years agoImplemented a propagator for xor in CLP(Z)
notoria [Sun, 7 Mar 2021 17:46:47 +0000 (18:46 +0100)]
Implemented a propagator for xor in CLP(Z)

5 years agoSmall improvement for mod in CLP(Z)
notoria [Sun, 7 Mar 2021 17:38:04 +0000 (18:38 +0100)]
Small improvement for mod in CLP(Z)

5 years agoMerge pull request #858 from triska/master
Mark Thom [Fri, 5 Mar 2021 19:57:20 +0000 (12:57 -0700)]
Merge pull request #858 from triska/master

CLP(B) correction

5 years agois is --> is
Markus Triska [Fri, 5 Mar 2021 17:36:00 +0000 (18:36 +0100)]
is is --> is

5 years agoFIXED: CLP(B): weighted_maximum/3 with repeated variables
Markus Triska [Fri, 5 Mar 2021 17:35:19 +0000 (18:35 +0100)]
FIXED: CLP(B): weighted_maximum/3 with repeated variables

Many thanks to @jburse for reporting this issue:

    https://github.com/triska/clpz/issues/15

Example:

    ?- sat(~(Y*X)), sat(Z=:=Y), weighted_maximum([7,2,5],[X,Y,Z],W).
       W = 7, Y = 0, X = 1, Z = 0
    ;  W = 7, Y = 1, X = 0, Z = 1
    ;  false.

5 years agoadapt comment to Scryer Prolog
Markus Triska [Fri, 5 Mar 2021 17:16:38 +0000 (18:16 +0100)]
adapt comment to Scryer Prolog

5 years agoqualify '$print_project_attributes_exception' call (#857)
Mark Thom [Fri, 5 Mar 2021 08:14:51 +0000 (01:14 -0700)]
qualify '$print_project_attributes_exception' call (#857)

5 years agocall project_attributes from top-level (#846)
Mark Thom [Thu, 4 Mar 2021 23:05:01 +0000 (16:05 -0700)]
call project_attributes from top-level (#846)

5 years agoMerge pull request #856 from triska/master
Mark Thom [Thu, 4 Mar 2021 20:53:25 +0000 (13:53 -0700)]
Merge pull request #856 from triska/master

Improvements for library(format)

5 years agoENHANCED: more readable indentation of nested disjunctions
Markus Triska [Thu, 4 Mar 2021 20:38:39 +0000 (21:38 +0100)]
ENHANCED: more readable indentation of nested disjunctions

Example:

    ?- portray_clause((h :- a ; b ; c)).
    h :-
       (  a
       ;  b
       ;  c
       ).
       true.

5 years agoremove unnecessary argument
Markus Triska [Thu, 4 Mar 2021 20:33:29 +0000 (21:33 +0100)]
remove unnecessary argument

5 years agoMerge pull request #854 from triska/master
Mark Thom [Wed, 3 Mar 2021 23:11:03 +0000 (16:11 -0700)]
Merge pull request #854 from triska/master

Better indentation for nested ( If -> Then ; Else ) constructs

5 years agouse the new portray_clause/1 output for generated definitions
Markus Triska [Wed, 3 Mar 2021 21:17:54 +0000 (22:17 +0100)]
use the new portray_clause/1 output for generated definitions

5 years agoseparate side-effects from declarative description to facilitate test cases etc.
Markus Triska [Wed, 3 Mar 2021 21:13:01 +0000 (22:13 +0100)]
separate side-effects from declarative description to facilitate test cases etc.

5 years agoENHANCED: more readable indentation of nested ( If -> Then ; Else ) constructs
Markus Triska [Wed, 3 Mar 2021 21:04:28 +0000 (22:04 +0100)]
ENHANCED: more readable indentation of nested ( If -> Then ; Else ) constructs

Example:

    ?- portray_clause((h :- ( a -> b ; c -> d ; e, f))).
    h :-
       (  a ->
          b
       ;  c ->
          d
       ;  e,
          f
       ).
       true.

5 years agocatch exceptions thrown from initialization goals (#852)
Mark Thom [Wed, 3 Mar 2021 20:56:13 +0000 (13:56 -0700)]
catch exceptions thrown from initialization goals (#852)

5 years agohas_tail must be false for use as a filename from open/{3,4}
Mark Thom [Wed, 3 Mar 2021 19:16:47 +0000 (12:16 -0700)]
has_tail must be false for use as a filename from open/{3,4}

5 years agoMerge pull request #851 from Skgland/fix_num_test2
Mark Thom [Wed, 3 Mar 2021 06:36:59 +0000 (23:36 -0700)]
Merge pull request #851 from Skgland/fix_num_test2

Workaround to make num tests work

5 years agoworkaround to make num tests work
Skgland [Wed, 3 Mar 2021 00:16:13 +0000 (01:16 +0100)]
workaround to make num tests work

5 years agoMerge pull request #849 from triska/master
Mark Thom [Tue, 2 Mar 2021 18:59:22 +0000 (11:59 -0700)]
Merge pull request #849 from triska/master

Remove duplicated definitions

5 years agoremove min_/3 and max_/3 which are also defined elsewhere
Markus Triska [Tue, 2 Mar 2021 18:59:57 +0000 (19:59 +0100)]
remove min_/3 and max_/3 which are also defined elsewhere

5 years agoremove group_pairs_by_key/2, which is now provided by library(pairs)
Markus Triska [Tue, 2 Mar 2021 18:58:20 +0000 (19:58 +0100)]
remove group_pairs_by_key/2, which is now provided by library(pairs)

5 years agowarn when overwriting a predicate (#848)
Mark Thom [Tue, 2 Mar 2021 18:43:47 +0000 (11:43 -0700)]
warn when overwriting a predicate (#848)

5 years agodo not check for non-unifiability in dif:attribute_goals, which is sure to succeed...
Mark Thom [Tue, 2 Mar 2021 16:50:25 +0000 (09:50 -0700)]
do not check for non-unifiability in dif:attribute_goals, which is sure to succeed, resulting in no goals being printed at top-level (#844)

5 years agoMerge pull request #845 from triska/master
Mark Thom [Mon, 1 Mar 2021 18:45:53 +0000 (11:45 -0700)]
Merge pull request #845 from triska/master

explain the new occurs_check flag

5 years agoexplain the new occurs_check flag
Markus Triska [Mon, 1 Mar 2021 18:42:16 +0000 (19:42 +0100)]
explain the new occurs_check flag

5 years agouse atom_chars to convert .scryerrc path string to atom
Mark Thom [Mon, 1 Mar 2021 06:26:22 +0000 (23:26 -0700)]
use atom_chars to convert .scryerrc path string to atom

5 years agouse plain ! while interpreting control functors in metacalls (#724)
Mark Thom [Mon, 1 Mar 2021 02:12:35 +0000 (19:12 -0700)]
use plain ! while interpreting control functors in metacalls (#724)

5 years agoapply expand_module_names to call(A) goals
Mark Thom [Mon, 1 Mar 2021 02:01:36 +0000 (19:01 -0700)]
apply expand_module_names to call(A) goals

5 years agosuppress tabled/2 existence errors in tabling library, do not print evaluation errors...
Mark Thom [Mon, 1 Mar 2021 01:56:24 +0000 (18:56 -0700)]
suppress tabled/2 existence errors in tabling library, do not print evaluation errors generated by term and goal expansion in loader.pl

5 years agoMerge pull request #843 from mthom/rebis-dev
Mark Thom [Mon, 1 Mar 2021 01:29:35 +0000 (18:29 -0700)]
Merge pull request #843 from mthom/rebis-dev

Merge rebis-dev into master

5 years agocheck that Module is an atom before calling Module:goal_expansion/2
Mark Thom [Mon, 1 Mar 2021 01:28:12 +0000 (18:28 -0700)]
check that Module is an atom before calling Module:goal_expansion/2