]> Repositorios git - scryer-prolog.git/log
scryer-prolog.git
16 months agoupdate install link
Bennet Bleßmann [Thu, 23 Jan 2025 18:20:19 +0000 (19:20 +0100)]
update install link

16 months agoUpdate README.md
Bennet Bleßmann [Thu, 23 Jan 2025 18:18:15 +0000 (19:18 +0100)]
Update README.md

16 months agoUpdate README.md
Bennet Bleßmann [Thu, 23 Jan 2025 18:11:08 +0000 (19:11 +0100)]
Update README.md

16 months agoMerge pull request #2768 from robstolarz/RSTO-nix-macos-fix
Mark Thom [Tue, 14 Jan 2025 05:15:11 +0000 (22:15 -0700)]
Merge pull request #2768 from robstolarz/RSTO-nix-macos-fix

fix: compile under Nix flake on macOS

16 months agoMerge pull request #2756 from adri326/fix-load-context-unreachable
Mark Thom [Sun, 12 Jan 2025 04:27:32 +0000 (21:27 -0700)]
Merge pull request #2756 from adri326/fix-load-context-unreachable

Fix load_context_module triggering unreachable!()

16 months agofix: compile under Nix flake on macOS
Rob Stolarz [Sat, 11 Jan 2025 21:00:46 +0000 (13:00 -0800)]
fix: compile under Nix flake on macOS

17 months agoAdd tests for PR #2756
Emilie Burgun [Tue, 7 Jan 2025 17:10:50 +0000 (18:10 +0100)]
Add tests for PR #2756

17 months agoFix load_context_module triggering unreachable code in unify_atom
Emilie Burgun [Tue, 7 Jan 2025 16:59:13 +0000 (17:59 +0100)]
Fix load_context_module triggering unreachable code in unify_atom

17 months agoMerge pull request #2742 from triska/clpb
Mark Thom [Sat, 4 Jan 2025 20:26:08 +0000 (13:26 -0700)]
Merge pull request #2742 from triska/clpb

Revert "FIXED: CLP(B): Delay BDD restriction until after the instantiation"

17 months agoMerge pull request #2728 from aarroyoc/lets-play-brisca
Mark Thom [Sat, 4 Jan 2025 20:24:35 +0000 (13:24 -0700)]
Merge pull request #2728 from aarroyoc/lets-play-brisca

Add tutorial: Let's play Brisca

17 months agoMerge pull request #2743 from triska/crypto
Mark Thom [Sat, 4 Jan 2025 20:23:59 +0000 (13:23 -0700)]
Merge pull request #2743 from triska/crypto

atom --> string

17 months agoMerge pull request #2744 from triska/files
Mark Thom [Sat, 4 Jan 2025 20:23:44 +0000 (13:23 -0700)]
Merge pull request #2744 from triska/files

state when the predicates are true

17 months agostate when the predicates are true
Markus Triska [Thu, 2 Jan 2025 17:54:27 +0000 (18:54 +0100)]
state when the predicates are true

"returns" is not used in this way in logic programming. "return"
suggests that something went away and is now coming back, but this is
never the case in these situations. The arguments may be variables or
also fully known at the time of the call in most cases.

17 months agoatom --> string
Markus Triska [Thu, 2 Jan 2025 17:30:29 +0000 (18:30 +0100)]
atom --> string

17 months agoRevert "FIXED: CLP(B): Delay BDD restriction until after the instantiation."
Markus Triska [Thu, 2 Jan 2025 17:01:45 +0000 (18:01 +0100)]
Revert "FIXED: CLP(B): Delay BDD restriction until after the instantiation."

This reverts commit e185b626bdf1a99ab8188ae39875f645c0de90f0.

This change is now no longer needed, and the underlying issue is
apparently somewhere else entirely. See the description at:

    https://github.com/mthom/scryer-prolog/issues/2732

Current master behaves differently from Scryer as it was at
099d9aaca6509496ccb28c522659b990f42037f0 (i.e., preceding
the commit that is now being reverted), even on the same file.

For an example, see:

    https://github.com/triska/scryer-prolog/commit/dd41176b97d8369c3bb7de1c9932a9c3d10a0466

Scryer now works as expected, and compatibly with SICStus. We still
need to find out what fixed the root cause of this issue.

17 months agoAdd tutorial: Let's play Brisca
Adrián Arroyo Calle [Sun, 29 Dec 2024 22:55:57 +0000 (23:55 +0100)]
Add tutorial: Let's play Brisca

17 months agoMerge pull request #2681 from hurufu/remove-dcgs-that-have-failed-to-expand
Mark Thom [Wed, 25 Dec 2024 21:29:38 +0000 (14:29 -0700)]
Merge pull request #2681 from hurufu/remove-dcgs-that-have-failed-to-expand

Remove DCGs that have thrown an exception during term expansion

17 months agoqualify module quantification errors better (#2685)
Mark Thom [Wed, 25 Dec 2024 20:23:21 +0000 (12:23 -0800)]
qualify module quantification errors better (#2685)

17 months agostyle corrections
Mark Thom [Wed, 25 Dec 2024 20:11:17 +0000 (12:11 -0800)]
style corrections

17 months agoRemove DCGs that have thrown an exception during term expansion
Aleksy Grabowski [Thu, 5 Dec 2024 10:15:42 +0000 (11:15 +0100)]
Remove DCGs that have thrown an exception during term expansion

Some DCG constructs aren't supported and can't be expanded, here we
remove offending DCG rule and don't compile it at all – in a similar
fashion to what we do when incorrect goal was found – whole predicate
isn't getting compiled.

Fixes #2675

17 months agoMerge pull request #2714 from triska/graphic_token
Mark Thom [Sat, 21 Dec 2024 01:42:09 +0000 (18:42 -0700)]
Merge pull request #2714 from triska/graphic_token

prevent accidental amalgamation of graphic token chars in output

17 months agoMerge pull request #2717 from jasagredo/js/small-doc
Mark Thom [Sat, 21 Dec 2024 01:41:51 +0000 (18:41 -0700)]
Merge pull request #2717 from jasagredo/js/small-doc

Ensure max_assoc/3 is shown as documented

17 months agoleave variable modules uninstantiated (#2685)
Mark Thom [Wed, 18 Dec 2024 07:28:50 +0000 (23:28 -0800)]
leave variable modules uninstantiated (#2685)

17 months agoEnsure max_assoc/3 is shown as documented
Javier Sagredo [Wed, 18 Dec 2024 00:02:45 +0000 (01:02 +0100)]
Ensure max_assoc/3 is shown as documented

17 months agouse round brackets for goals involving operators
Markus Triska [Tue, 17 Dec 2024 21:51:47 +0000 (22:51 +0100)]
use round brackets for goals involving operators

Examples:

    ?- portray_clause(((+) :- a=b,(-))).
    (+) :-
       a=b,
       (-).
       true.

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

This addresses #2715.

Currently, more round brackets than needed are emitted. Ideally, a
better approach to solve the issue here and also in toplevel.pl is
found in the future.

17 months agoprevent accidental amalgamation of graphic token chars in output
Markus Triska [Tue, 17 Dec 2024 18:51:11 +0000 (19:51 +0100)]
prevent accidental amalgamation of graphic token chars in output

This addresses #2713. Many thanks to @notoria for reporting this
excellent case!

Example:

    ?- portray_clause(A = @).
    A= @ .
       true.

At other positions the now inserted space is unnecessary, as in:

    ?- portray_clause((head:- @,b)).
    head :-
       @ ,
       b.
       true.

The toplevel has a similar issue:

    ?- C = # ; false.
       C = # |<-- cursor is here; redundant space after #

There may be a way to solve this issue for all cases like this.

17 months agoMerge pull request #2582 from bakaq/rework_library_interface
Mark Thom [Sat, 14 Dec 2024 04:46:43 +0000 (21:46 -0700)]
Merge pull request #2582 from bakaq/rework_library_interface

Rework library interface

17 months agoMerge pull request #2691 from aarroyoc/remove-meetup-2024
Mark Thom [Sat, 14 Dec 2024 04:39:38 +0000 (21:39 -0700)]
Merge pull request #2691 from aarroyoc/remove-meetup-2024

Remove Scryer Prolog Meetup 2024 announcements

17 months agoMerge pull request #2683 from ffortier/master
Mark Thom [Sat, 14 Dec 2024 04:39:12 +0000 (21:39 -0700)]
Merge pull request #2683 from ffortier/master

Support hermetic build environment

17 months agoMerge pull request #2689 from triska/weighted_maybe
Mark Thom [Sat, 14 Dec 2024 04:38:47 +0000 (21:38 -0700)]
Merge pull request #2689 from triska/weighted_maybe

introduce and use weighted_maybe/2

17 months agoMerge pull request #2690 from notoria/next
Mark Thom [Sat, 14 Dec 2024 04:38:32 +0000 (21:38 -0700)]
Merge pull request #2690 from notoria/next

Add '$random_integer'/3

17 months agoMerge pull request #2696 from jasonhemann/patch-3
Mark Thom [Sat, 14 Dec 2024 04:37:56 +0000 (21:37 -0700)]
Merge pull request #2696 from jasonhemann/patch-3

s/performance characters/performance characteristics/

17 months agoMerge pull request #2698 from jasonhemann/patch-5
Mark Thom [Sat, 14 Dec 2024 03:02:50 +0000 (20:02 -0700)]
Merge pull request #2698 from jasonhemann/patch-5

Documentation for read/2

17 months agoMerge pull request #2703 from jasonhemann/patch-6
Mark Thom [Sat, 14 Dec 2024 03:02:21 +0000 (20:02 -0700)]
Merge pull request #2703 from jasonhemann/patch-6

s/avaibale/available/

17 months agoMerge pull request #2697 from jasonhemann/patch-4
Mark Thom [Sat, 14 Dec 2024 02:57:21 +0000 (19:57 -0700)]
Merge pull request #2697 from jasonhemann/patch-4

"bound to an atom"

17 months agos/avaibale/available/
Jason Hemann [Fri, 13 Dec 2024 18:41:05 +0000 (13:41 -0500)]
s/avaibale/available/

Quick typo fix to docs.

17 months agocargo fmt
bakaq [Thu, 12 Dec 2024 09:03:43 +0000 (06:03 -0300)]
cargo fmt

17 months agoUse Cow<'a,B> for toplevel configuration
bakaq [Thu, 12 Dec 2024 08:59:59 +0000 (05:59 -0300)]
Use Cow<'a,B> for toplevel configuration

17 months agoFIXME in Drop for QueryState
bakaq [Thu, 12 Dec 2024 08:49:52 +0000 (05:49 -0300)]
FIXME in Drop for QueryState

17 months agoLeave residual goals for later
bakaq [Thu, 12 Dec 2024 08:43:23 +0000 (05:43 -0300)]
Leave residual goals for later

17 months agoDerive Default for StreamConfig
bakaq [Thu, 12 Dec 2024 08:38:55 +0000 (05:38 -0300)]
Derive Default for StreamConfig

17 months agoRename lib_machine_tests.rs to tests.rs
bakaq [Thu, 12 Dec 2024 08:34:16 +0000 (05:34 -0300)]
Rename lib_machine_tests.rs to tests.rs

18 months agoUpdate builtins.pl
Jason Hemann [Wed, 11 Dec 2024 13:05:03 +0000 (08:05 -0500)]
Update builtins.pl

s/compund/compound/

18 months agoUpdate builtins.pl
Jason Hemann [Wed, 11 Dec 2024 10:46:28 +0000 (05:46 -0500)]
Update builtins.pl

Simplifying docstring.

18 months agoDocumentation for read/2
Jason Hemann [Wed, 11 Dec 2024 02:18:09 +0000 (21:18 -0500)]
Documentation for read/2

Mirrored the wording in the docstrings for `read/1` and `read_term/3`.

18 months ago"bound to an atom"
Jason Hemann [Wed, 11 Dec 2024 02:07:48 +0000 (21:07 -0500)]
"bound to an atom"

Quick typo.

18 months agos/performance characters/performance characteristics/
Jason Hemann [Wed, 11 Dec 2024 01:56:44 +0000 (20:56 -0500)]
s/performance characters/performance characteristics/

Small typo fix in docs.

18 months agoRemove Scryer Prolog Meetup 2024 announcements
Adrián Arroyo Calle [Mon, 9 Dec 2024 12:52:43 +0000 (13:52 +0100)]
Remove Scryer Prolog Meetup 2024 announcements

18 months agoHandle errors in QueryState
bakaq [Sun, 8 Dec 2024 22:47:18 +0000 (19:47 -0300)]
Handle errors in QueryState

18 months agoMigrate benches
bakaq [Sat, 12 Oct 2024 22:08:45 +0000 (19:08 -0300)]
Migrate benches

18 months agoMigrate tests to new API
bakaq [Sat, 12 Oct 2024 20:41:48 +0000 (17:41 -0300)]
Migrate tests to new API

18 months agoSeparate lib_machine tests into separate file
bakaq [Sat, 12 Oct 2024 20:04:29 +0000 (17:04 -0300)]
Separate lib_machine tests into separate file

18 months agoShrink MVP API surface
bakaq [Sat, 12 Oct 2024 19:58:38 +0000 (16:58 -0300)]
Shrink MVP API surface

18 months agoRename PrologTerm to Term
bakaq [Sat, 12 Oct 2024 19:48:13 +0000 (16:48 -0300)]
Rename PrologTerm to Term

18 months agoRemove parsed_results.rs
bakaq [Sat, 12 Oct 2024 19:42:56 +0000 (16:42 -0300)]
Remove parsed_results.rs

18 months agoMachineBuilder
bakaq [Sat, 12 Oct 2024 19:07:13 +0000 (16:07 -0300)]
MachineBuilder

18 months agoFix Machine links
bakaq [Mon, 30 Sep 2024 02:53:37 +0000 (23:53 -0300)]
Fix Machine links

18 months ago#[deny(missing_docs)]
bakaq [Mon, 30 Sep 2024 02:50:15 +0000 (23:50 -0300)]
#[deny(missing_docs)]

18 months agoDocument test methods
bakaq [Mon, 30 Sep 2024 02:45:40 +0000 (23:45 -0300)]
Document test methods

18 months agoAdd interfaces for QueryState methods
bakaq [Mon, 30 Sep 2024 02:42:11 +0000 (23:42 -0300)]
Add interfaces for QueryState methods

18 months agoDocs for Machine and QueryState
bakaq [Mon, 30 Sep 2024 02:30:57 +0000 (23:30 -0300)]
Docs for Machine and QueryState

18 months agoDocs for run_binary()
bakaq [Mon, 30 Sep 2024 02:22:51 +0000 (23:22 -0300)]
Docs for run_binary()

18 months agoLeafAnswer docs and success checking methods
bakaq [Mon, 30 Sep 2024 02:21:18 +0000 (23:21 -0300)]
LeafAnswer docs and success checking methods

18 months agoMore PrologTerm documentation
bakaq [Mon, 30 Sep 2024 02:09:47 +0000 (23:09 -0300)]
More PrologTerm documentation

18 months agoConjunctions, disjunction, and LeafAnswer to PrologTerm
bakaq [Mon, 30 Sep 2024 02:06:43 +0000 (23:06 -0300)]
Conjunctions, disjunction, and LeafAnswer to PrologTerm

18 months agoAssociated functions for creating PrologTerm
bakaq [Mon, 30 Sep 2024 01:30:24 +0000 (22:30 -0300)]
Associated functions for creating PrologTerm

18 months agoBasic docs and non_exhaustive for PrologTerm
bakaq [Mon, 30 Sep 2024 01:12:29 +0000 (22:12 -0300)]
Basic docs and non_exhaustive for PrologTerm

18 months agoMachine and stream config rework
bakaq [Mon, 30 Sep 2024 00:30:27 +0000 (21:30 -0300)]
Machine and stream config rework

18 months agoRename LeafAnswer
bakaq [Sat, 7 Sep 2024 04:15:05 +0000 (01:15 -0300)]
Rename LeafAnswer

18 months agoRename PrologTerm
bakaq [Sat, 7 Sep 2024 02:06:20 +0000 (23:06 -0300)]
Rename PrologTerm

18 months agointroduce and use weighted_maybe/2
Markus Triska [Sun, 8 Dec 2024 20:21:05 +0000 (21:21 +0100)]
introduce and use weighted_maybe/2

Many thanks to @hurufu for the very nice definition!

This is until library(random) provides this functionality,
and a good name is found for it. See #2670.

18 months agoAdd '$random_integer'/3
notoria [Sun, 8 Dec 2024 19:00:00 +0000 (20:00 +0100)]
Add '$random_integer'/3

18 months agoinstantiate module resolutions for meta-predicate lookups when expanding calls (...
Mark Thom [Sat, 7 Dec 2024 07:30:36 +0000 (23:30 -0800)]
instantiate module resolutions for meta-predicate lookups when expanding calls (#2255, #2619, #2684)

18 months agoMerge pull request #2677 from jasagredo/js/get-single-char-windows
Mark Thom [Fri, 6 Dec 2024 03:25:25 +0000 (20:25 -0700)]
Merge pull request #2677 from jasagredo/js/get-single-char-windows

Ignore `KeyEventKind::Release` events when reading a char

18 months agoMerge pull request #2679 from jasonhemann/patch-2
Mark Thom [Fri, 6 Dec 2024 03:24:56 +0000 (20:24 -0700)]
Merge pull request #2679 from jasonhemann/patch-2

s/red/read/ typo in documentation.

18 months agoexport toplevel repl/0
Francis Fortier [Thu, 5 Dec 2024 14:38:38 +0000 (09:38 -0500)]
export toplevel repl/0

18 months agobuild: resolve include_str path during the compilation of libraries.rs instead of...
Francis Fortier [Thu, 5 Dec 2024 14:10:52 +0000 (09:10 -0500)]
build: resolve include_str path during the compilation of libraries.rs instead of during he build.rs execution to support different build tools (bazel in this case)

18 months agos/red/read/ typo in documentation.
Jason Hemann [Thu, 5 Dec 2024 06:19:51 +0000 (01:19 -0500)]
s/red/read/ typo in documentation.

Small quick fix.

18 months agoIgnore `KeyEventKind::Release` events when reading a char
Javier Sagredo [Tue, 3 Dec 2024 23:05:10 +0000 (00:05 +0100)]
Ignore `KeyEventKind::Release` events when reading a char

18 months agoadmit YF in current_op/3 (#2639)
Mark Thom [Fri, 15 Nov 2024 05:39:56 +0000 (22:39 -0700)]
admit YF in current_op/3 (#2639)

18 months agoMerge pull request #2652 from gruhn/patch-1
Mark Thom [Fri, 15 Nov 2024 04:51:03 +0000 (05:51 +0100)]
Merge pull request #2652 from gruhn/patch-1

update Docker install instructions

18 months agoMerge pull request #2653 from srenatus/sr/issue-2650
Mark Thom [Fri, 15 Nov 2024 04:50:51 +0000 (05:50 +0100)]
Merge pull request #2653 from srenatus/sr/issue-2650

toplevel.pl: fix arity mismatch in read_input/2

19 months agotoplevel: add more Stop=continue, remove nesting
Stephan Renatus [Sun, 3 Nov 2024 12:31:47 +0000 (13:31 +0100)]
toplevel: add more Stop=continue, remove nesting

Signed-off-by: Stephan Renatus <[email protected]>
19 months agotoplevel.pl: attempt to fix continue/stop logic
Stephan Renatus [Sat, 2 Nov 2024 20:07:02 +0000 (21:07 +0100)]
toplevel.pl: attempt to fix continue/stop logic

Signed-off-by: Stephan Renatus <[email protected]>
19 months agotoplevel.pl: fix arity mismatch in read_input/2
Stephan Renatus [Fri, 1 Nov 2024 14:42:48 +0000 (15:42 +0100)]
toplevel.pl: fix arity mismatch in read_input/2

I ran into the same problem today and I figured I'd take a stab at it.
Unfortunately, I'm not certain it is the right approach, but it no
longer errors like it did before.

Fixes #2650.

Signed-off-by: Stephan Renatus <[email protected]>
19 months agoREADME: update Docker install instructions
Niklas Gruhn [Fri, 1 Nov 2024 09:58:44 +0000 (10:58 +0100)]
README: update Docker install instructions

19 months agoMerge pull request #2647 from panasenco/master
Mark Thom [Tue, 29 Oct 2024 19:15:08 +0000 (13:15 -0600)]
Merge pull request #2647 from panasenco/master

Updated Dockerfile

19 months agoUpdated and tested Dockerfile
Aram Panasenco [Mon, 28 Oct 2024 16:28:01 +0000 (10:28 -0600)]
Updated and tested Dockerfile

19 months agoMerge pull request #2527 from bakaq/leaf_answers_callbacks
Mark Thom [Sun, 13 Oct 2024 18:13:08 +0000 (12:13 -0600)]
Merge pull request #2527 from bakaq/leaf_answers_callbacks

Toplevel reimplementation with leaf answer callbacks

19 months agoFix priority in op/3
bakaq [Sun, 13 Oct 2024 02:37:58 +0000 (23:37 -0300)]
Fix priority in op/3

20 months agoMerge pull request #2596 from Skgland/issue-2588
Mark Thom [Sun, 6 Oct 2024 04:12:45 +0000 (22:12 -0600)]
Merge pull request #2596 from Skgland/issue-2588

fix issue #2588

20 months agofix miri
Bennet Bleßmann [Fri, 4 Oct 2024 18:25:02 +0000 (20:25 +0200)]
fix miri

20 months agofix issue #2588
Bennet Bleßmann [Fri, 4 Oct 2024 17:25:34 +0000 (19:25 +0200)]
fix issue #2588

20 months agoMerge remote-tracking branch 'upstream/master' into issue-2588
Bennet Bleßmann [Fri, 4 Oct 2024 17:11:26 +0000 (19:11 +0200)]
Merge remote-tracking branch 'upstream/master' into issue-2588

20 months agoadd test for load_html
Bennet Bleßmann [Fri, 4 Oct 2024 17:09:35 +0000 (19:09 +0200)]
add test for load_html

20 months agoRemove trailing whitespace in toplevel.pl
bakaq [Wed, 2 Oct 2024 00:58:59 +0000 (21:58 -0300)]
Remove trailing whitespace in toplevel.pl

20 months agoMerge pull request #2581 from bakaq/fix_hostname_feature
Mark Thom [Mon, 30 Sep 2024 03:09:22 +0000 (21:09 -0600)]
Merge pull request #2581 from bakaq/fix_hostname_feature

Fix not compiling without hostname feature

20 months agoFix not compiling without hostname feature
bakaq [Sun, 29 Sep 2024 19:50:06 +0000 (16:50 -0300)]
Fix not compiling without hostname feature

20 months agoMerge pull request #2573 from srenatus/sr/readme-link-to-latest-releases
Mark Thom [Thu, 26 Sep 2024 16:50:51 +0000 (10:50 -0600)]
Merge pull request #2573 from srenatus/sr/readme-link-to-latest-releases

README: link to latest release

20 months agoREADME: link to latest release
Stephan Renatus [Thu, 26 Sep 2024 07:43:26 +0000 (09:43 +0200)]
README: link to latest release

This will automatically redirect to the release marked "latest" in GitHub.
So the link won't become stale and doesn't need updating.

Signed-off-by: Stephan Renatus <[email protected]>