]> Repositorios git - scryer-prolog.git/log
scryer-prolog.git
2 years agoDOC: new section on applications of Scryer Prolog
Markus Triska [Sun, 9 Jul 2023 12:24:21 +0000 (14:24 +0200)]
DOC: new section on applications of Scryer Prolog

This addresses an important aspect of #1777.

2 years agocorrect \\ to \, addressing #1865
Markus Triska [Sun, 9 Jul 2023 11:36:36 +0000 (13:36 +0200)]
correct \\ to \, addressing #1865

2 years agorefine EOF handling more (#1873)
Mark [Sun, 9 Jul 2023 07:53:40 +0000 (01:53 -0600)]
refine EOF handling more (#1873)

2 years agorefine EOF handling
Mark [Sun, 9 Jul 2023 04:25:30 +0000 (22:25 -0600)]
refine EOF handling

2 years agofollow EOF action after open_parsing_stream in get_char if stream at EOF
Mark [Sun, 9 Jul 2023 01:27:32 +0000 (19:27 -0600)]
follow EOF action after open_parsing_stream in get_char if stream at EOF

2 years agoclarify EOF error across stream types and predicates (#1867, #1870)
Mark [Sat, 8 Jul 2023 19:38:32 +0000 (13:38 -0600)]
clarify EOF error across stream types and predicates (#1867, #1870)

2 years agoMerge pull request #1869 from triska/master
Mark Thom [Sat, 8 Jul 2023 07:24:04 +0000 (01:24 -0600)]
Merge pull request #1869 from triska/master

print version more readably, addressing #1868

2 years agoprint version more readably, addressing #1868
Markus Triska [Sat, 8 Jul 2023 06:19:05 +0000 (08:19 +0200)]
print version more readably, addressing #1868

2 years agotreat unexpected EOF as incomplete reduction in bracketed_comment
Mark [Fri, 7 Jul 2023 19:04:27 +0000 (13:04 -0600)]
treat unexpected EOF as incomplete reduction in bracketed_comment

2 years agointerpret '\u{0}' as end_of_file in get_char/1
Mark [Fri, 7 Jul 2023 17:05:44 +0000 (11:05 -0600)]
interpret '\u{0}' as end_of_file in get_char/1

2 years agoadd stream alias processing to atom_chars/2, atom_codes/2
Mark [Fri, 7 Jul 2023 16:38:05 +0000 (10:38 -0600)]
add stream alias processing to atom_chars/2, atom_codes/2

2 years agoMerge pull request #1832 from aarroyoc/http-fixes
Mark Thom [Thu, 6 Jul 2023 22:30:56 +0000 (16:30 -0600)]
Merge pull request #1832 from aarroyoc/http-fixes

Multiple fixes for http libraries

2 years agoadd stream alias check to atom/1 (#1855)
Mark [Thu, 6 Jul 2023 17:38:12 +0000 (11:38 -0600)]
add stream alias check to atom/1 (#1855)

2 years agoadd scc_block to MachineState to avoid SCC cleanup terms being deallocated too early...
Mark [Thu, 6 Jul 2023 17:20:49 +0000 (11:20 -0600)]
add scc_block to MachineState to avoid SCC cleanup terms being deallocated too early (#1427)

2 years agocorrect heap_print.rs tests
Mark [Thu, 6 Jul 2023 00:11:09 +0000 (18:11 -0600)]
correct heap_print.rs tests

2 years agoshrink scope of control_entry_point catch, add CutPoint tag to printer
Mark [Wed, 5 Jul 2023 20:50:38 +0000 (14:50 -0600)]
shrink scope of control_entry_point catch, add CutPoint tag to printer

2 years agoMerge pull request #1864 from triska/double_quotes
Mark Thom [Wed, 5 Jul 2023 19:49:29 +0000 (13:49 -0600)]
Merge pull request #1864 from triska/double_quotes

make double_quotes write option not dependent on double_quotes flag

2 years agomake double_quotes write option not dependent on double_quotes flag
Markus Triska [Wed, 5 Jul 2023 19:22:49 +0000 (21:22 +0200)]
make double_quotes write option not dependent on double_quotes flag

This gives consistent results without depending on another flag.

2 years agoMerge pull request #1862 from mthom/iso_conformity_tests
Mark Thom [Wed, 5 Jul 2023 16:49:51 +0000 (10:49 -0600)]
Merge pull request #1862 from mthom/iso_conformity_tests

Revise iso_conformity_tests.pl to remove unnecessary spaces

2 years agoadd missing self.pos to peek_char slices (#1726)
Mark [Tue, 4 Jul 2023 23:44:27 +0000 (17:44 -0600)]
add missing self.pos to peek_char slices (#1726)

2 years agorevise iso_conformity_tests.pl in response to new ambiguity check of #1860 iso_conformity_tests origin/iso_conformity_tests
Mark [Tue, 4 Jul 2023 18:13:43 +0000 (12:13 -0600)]
revise iso_conformity_tests.pl in response to new ambiguity check of #1860

2 years agothrow lexer errors from devour_whitespace (#1778)
Mark [Tue, 4 Jul 2023 22:09:54 +0000 (16:09 -0600)]
throw lexer errors from devour_whitespace (#1778)

2 years agoMerge pull request #1861 from aarroyoc/fix-1855
Mark Thom [Tue, 4 Jul 2023 21:11:59 +0000 (15:11 -0600)]
Merge pull request #1861 from aarroyoc/fix-1855

Allow comparisons with stream terms

2 years agowiden CharReader buffer (#1859)
Mark [Tue, 4 Jul 2023 17:22:07 +0000 (11:22 -0600)]
widen CharReader buffer (#1859)

2 years agoAllow comparisons with stream terms
Adrián Arroyo Calle [Tue, 4 Jul 2023 15:33:48 +0000 (17:33 +0200)]
Allow comparisons with stream terms

2 years agoMerge pull request #1857 from triska/master
Mark Thom [Mon, 3 Jul 2023 20:05:16 +0000 (14:05 -0600)]
Merge pull request #1857 from triska/master

advertise newly achieved strong syntactic conformance: all current tests pass

2 years agoadvertise newly achieved strong syntactic conformance: all current tests pass
Markus Triska [Mon, 3 Jul 2023 20:04:26 +0000 (22:04 +0200)]
advertise newly achieved strong syntactic conformance: all current tests pass

This addresses an important aspect of #1777.

2 years agoMerge pull request #1850 from mthom/iso-conformity-tests
Mark Thom [Mon, 3 Jul 2023 19:53:41 +0000 (13:53 -0600)]
Merge pull request #1850 from mthom/iso-conformity-tests

Automate ISO syntax conformity tests

2 years agoupdate tests iso-conformity-tests origin/iso-conformity-tests
Mark [Mon, 3 Jul 2023 19:18:53 +0000 (13:18 -0600)]
update tests

2 years agocorrect tests #171 and #300
Mark [Mon, 3 Jul 2023 18:09:26 +0000 (12:09 -0600)]
correct tests #171 and #300

2 years agoadd double_quotes write option for printing to strings, enable it at toplevel
Mark [Mon, 3 Jul 2023 17:35:07 +0000 (11:35 -0600)]
add double_quotes write option for printing to strings, enable it at toplevel

2 years agocorrect ISO conformity test #185
Mark [Mon, 3 Jul 2023 17:34:41 +0000 (11:34 -0600)]
correct ISO conformity test #185

2 years agoadd iso-conformity-tests.pl to test suite
Mark [Sat, 1 Jul 2023 21:38:05 +0000 (15:38 -0600)]
add iso-conformity-tests.pl to test suite

2 years agocorrect initialization_goals misnomer in iso-conformity-tests.pl
Mark [Fri, 30 Jun 2023 00:03:43 +0000 (18:03 -0600)]
correct initialization_goals misnomer in iso-conformity-tests.pl

2 years agomake setup of test_166_167 pass
Mark [Fri, 30 Jun 2023 00:01:09 +0000 (18:01 -0600)]
make setup of test_166_167 pass

2 years agocheck ambiguity of "'" against tail if atom token is about to be quoted
Mark [Thu, 29 Jun 2023 23:59:25 +0000 (17:59 -0600)]
check ambiguity of "'" against tail if atom token is about to be quoted

2 years agoalways print a space between prefix operator and its operand
Mark [Thu, 29 Jun 2023 23:35:27 +0000 (17:35 -0600)]
always print a space between prefix operator and its operand

2 years agocorrect tests 259 and 304 of tests-pl/iso-conformity-tests.pl
Mark [Thu, 29 Jun 2023 20:57:29 +0000 (14:57 -0600)]
correct tests 259 and 304 of tests-pl/iso-conformity-tests.pl

2 years agointroduce tests-pl/iso-conformity-tests.pl
Mark [Thu, 29 Jun 2023 18:18:14 +0000 (12:18 -0600)]
introduce tests-pl/iso-conformity-tests.pl

2 years agoremoving residual debugging comments from format.pl
Mark [Sun, 2 Jul 2023 17:10:25 +0000 (11:10 -0600)]
removing residual debugging comments from format.pl

2 years agouse lexer to detect remaining layout in parse_number_from_string (#1773)
Mark [Fri, 30 Jun 2023 23:13:38 +0000 (17:13 -0600)]
use lexer to detect remaining layout in parse_number_from_string (#1773)

2 years agoMerge pull request #1854 from triska/needs_bracketing
Mark Thom [Fri, 30 Jun 2023 21:43:45 +0000 (15:43 -0600)]
Merge pull request #1854 from triska/needs_bracketing

remove now unneeded check

2 years agoremove now unneeded check
Markus Triska [Fri, 30 Jun 2023 20:14:00 +0000 (22:14 +0200)]
remove now unneeded check

2 years agocheck that F in needs_bracketing/2 is an atom
Mark [Fri, 30 Jun 2023 19:45:45 +0000 (13:45 -0600)]
check that F in needs_bracketing/2 is an atom

2 years agodo not enclose '(' as atom in brackets (#1487)
Mark [Fri, 30 Jun 2023 18:06:07 +0000 (12:06 -0600)]
do not enclose '(' as atom in brackets (#1487)

2 years agoMerge pull request #1852 from triska/needs_bracketing
Mark Thom [Fri, 30 Jun 2023 17:13:24 +0000 (11:13 -0600)]
Merge pull request #1852 from triska/needs_bracketing

Improvements to needs_bracketing/2

2 years agoremove unneeded case: only operator definitions should count, not quoting
Markus Triska [Fri, 30 Jun 2023 16:03:21 +0000 (18:03 +0200)]
remove unneeded case: only operator definitions should count, not quoting

2 years agoremove subsumed case: F == Value means Arity =:= 0, now considered above
Markus Triska [Fri, 30 Jun 2023 16:02:43 +0000 (18:02 +0200)]
remove subsumed case: F == Value means Arity =:= 0, now considered above

2 years agoshorten needs_bracketing/2
Markus Triska [Fri, 30 Jun 2023 16:01:54 +0000 (18:01 +0200)]
shorten needs_bracketing/2

2 years agoconstrain bracketing to operators with pertaining arity
Markus Triska [Fri, 30 Jun 2023 16:01:17 +0000 (18:01 +0200)]
constrain bracketing to operators with pertaining arity

Example:

    ?- X = -->(a,b,c).
       X = -->(a,b,c).

2 years agoMerge pull request #1851 from triska/operator_bracketing
Mark Thom [Fri, 30 Jun 2023 06:26:18 +0000 (00:26 -0600)]
Merge pull request #1851 from triska/operator_bracketing

bracket all operators that are direct operands of (=)/2

2 years agobracket all operators that are direct operands of (=)/2
Markus Triska [Fri, 30 Jun 2023 05:34:15 +0000 (07:34 +0200)]
bracket all operators that are direct operands of (=)/2

This addresses #804.

2 years agoMultiple fixes for http libraries
Adrián Arroyo Calle [Mon, 19 Jun 2023 17:18:14 +0000 (19:18 +0200)]
Multiple fixes for http libraries

* use reqwest for http_open (still uses Hyper underneath)
* use Hyper 1.0.0-rc3 for server
* Modify all internal handling of server

2 years agofix ReadlineStream peek_char using CharReader
Mark [Thu, 29 Jun 2023 20:58:15 +0000 (14:58 -0600)]
fix ReadlineStream peek_char using CharReader

2 years agoread the cell written to by mark_var when needed in compile_is (#1846)
Mark [Thu, 29 Jun 2023 18:58:15 +0000 (12:58 -0600)]
read the cell written to by mark_var when needed in compile_is (#1846)

2 years agointroduce CutPoint heap tag so that they can be offset by call_continuation/1
Mark [Thu, 29 Jun 2023 18:14:06 +0000 (12:14 -0600)]
introduce CutPoint heap tag so that they can be offset by call_continuation/1

2 years agoMerge pull request #1849 from triska/showterm
Mark Thom [Thu, 29 Jun 2023 18:11:12 +0000 (12:11 -0600)]
Merge pull request #1849 from triska/showterm

remove unneeded single quotes

2 years agoremove unneeded single quotes
Markus Triska [Thu, 29 Jun 2023 17:25:23 +0000 (19:25 +0200)]
remove unneeded single quotes

2 years agocorrect and generalize current_predicate/1
Mark [Wed, 28 Jun 2023 23:31:43 +0000 (17:31 -0600)]
correct and generalize current_predicate/1

2 years agounify stack variables to streams in unify_constant (#1845)
Mark [Tue, 27 Jun 2023 23:35:10 +0000 (17:35 -0600)]
unify stack variables to streams in unify_constant (#1845)

2 years agobetter detect syntax errors in lexer.rs (#1771)
Mark [Tue, 27 Jun 2023 22:39:10 +0000 (16:39 -0600)]
better detect syntax errors in lexer.rs (#1771)

2 years agoMerge pull request #1844 from triska/copy_term_nat
Mark Thom [Tue, 27 Jun 2023 21:26:33 +0000 (15:26 -0600)]
Merge pull request #1844 from triska/copy_term_nat

use copy_term_nat/2

2 years agouse copy_term_nat/2
Markus Triska [Tue, 27 Jun 2023 20:37:23 +0000 (22:37 +0200)]
use copy_term_nat/2

2 years agoenable unification of streams to alias atoms (#1823)
Mark [Tue, 27 Jun 2023 18:23:40 +0000 (12:23 -0600)]
enable unification of streams to alias atoms (#1823)

2 years agosupport module resolution in current_predicate/1 (#1817)
Mark [Tue, 27 Jun 2023 17:08:29 +0000 (11:08 -0600)]
support module resolution in current_predicate/1 (#1817)

2 years agofix builtin_predicate (#1819)
Mark [Tue, 27 Jun 2023 16:41:15 +0000 (10:41 -0600)]
fix builtin_predicate (#1819)

2 years agoremove tabling attributes in each module's attribute_goals//1 (#1825)
Mark [Tue, 27 Jun 2023 16:30:55 +0000 (10:30 -0600)]
remove tabling attributes in each module's attribute_goals//1 (#1825)

2 years agoproperly account for partial string offsets in '$skip_max_list' (#1827)
Mark [Mon, 26 Jun 2023 22:32:30 +0000 (16:32 -0600)]
properly account for partial string offsets in '$skip_max_list' (#1827)

2 years agomark chunk boundary at beginning of disjunct in disjuncts.rs (#1843)
Mark [Sat, 24 Jun 2023 23:03:46 +0000 (17:03 -0600)]
mark chunk boundary at beginning of disjunct in disjuncts.rs (#1843)

2 years agofix string incompleteness (#1828)
Mark [Sat, 24 Jun 2023 20:12:04 +0000 (14:12 -0600)]
fix string incompleteness (#1828)

2 years agoMerge pull request #1842 from infogulch/release-on-tag
Mark Thom [Sat, 24 Jun 2023 19:13:07 +0000 (13:13 -0600)]
Merge pull request #1842 from infogulch/release-on-tag

Fix tags trigger; bump MSRV to 1.65

2 years agoBump msrv to 1.65 due to bumping rug to 1.19
infogulch [Sat, 24 Jun 2023 18:21:42 +0000 (13:21 -0500)]
Bump msrv to 1.65 due to bumping rug to 1.19

https://gitlab.com/tspiteri/rug#version-1190-news-2023-01-06

2 years agoFix tags trigger
infogulch [Sat, 24 Jun 2023 18:05:57 +0000 (13:05 -0500)]
Fix tags trigger

2 years agofix branch subsumption bug (#1840, #1841)
Mark [Sat, 24 Jun 2023 16:59:29 +0000 (10:59 -0600)]
fix branch subsumption bug (#1840, #1841)

2 years agoMerge pull request #1838 from triska/get_line_to_chars
Mark Thom [Sat, 24 Jun 2023 15:19:22 +0000 (09:19 -0600)]
Merge pull request #1838 from triska/get_line_to_chars

MODIFIED: read_line_to_chars/3 is now called get_line_to_chars/3

2 years agoupdate README
Mark [Sat, 24 Jun 2023 15:11:30 +0000 (09:11 -0600)]
update README

2 years agoanother case of "read" --> "get", for an only internally used predicate
Markus Triska [Sat, 24 Jun 2023 09:48:28 +0000 (11:48 +0200)]
another case of "read" --> "get", for an only internally used predicate

2 years agoMODIFIED: read_line_to_chars/3 is now called get_line_to_chars/3
Markus Triska [Sat, 24 Jun 2023 09:47:32 +0000 (11:47 +0200)]
MODIFIED: read_line_to_chars/3 is now called get_line_to_chars/3

This is for consistency with other I/O predicates, where "read" always
indicates Prolog terms. Please adjust your programs accordingly.

2 years agocorrect code_walker.rs in light of compilation improvements
Mark [Fri, 23 Jun 2023 22:49:27 +0000 (16:49 -0600)]
correct code_walker.rs in light of compilation improvements

2 years agoMerge branch 'compiling_disj'
Mark [Fri, 23 Jun 2023 20:57:29 +0000 (14:57 -0600)]
Merge branch 'compiling_disj'

2 years agocorrect reversions after rebase
Mark [Fri, 23 Jun 2023 20:13:40 +0000 (14:13 -0600)]
correct reversions after rebase

2 years agopolish perm free list management
Mark [Fri, 23 Jun 2023 18:53:21 +0000 (12:53 -0600)]
polish perm free list management

2 years agoAdd steps to publish binaries when releases are tagged
infogulch [Fri, 23 Jun 2023 03:14:44 +0000 (22:14 -0500)]
Add steps to publish binaries when releases are tagged

2 years agofree local cut variables after cut
Mark [Fri, 23 Jun 2023 18:24:34 +0000 (12:24 -0600)]
free local cut variables after cut

2 years agomark is/2 allocated permanent variables as safe, add CompareNumber terms to ClauseTyp...
Mark [Fri, 23 Jun 2023 17:13:51 +0000 (11:13 -0600)]
mark is/2 allocated permanent variables as safe, add CompareNumber terms to ClauseType::is_inlined

2 years agoBump openssl from 0.10.48 to 0.10.55
dependabot[bot] [Wed, 21 Jun 2023 22:54:36 +0000 (22:54 +0000)]
Bump openssl from 0.10.48 to 0.10.55

Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.48 to 0.10.55.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.48...openssl-v0.10.55)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2 years agoimprove call/N implementation (#1829)
Mark [Sat, 10 Jun 2023 07:25:47 +0000 (01:25 -0600)]
improve call/N implementation (#1829)

2 years agoset_local_value does not make values safe (#1812)
Mark [Tue, 6 Jun 2023 06:58:44 +0000 (00:58 -0600)]
set_local_value does not make values safe (#1812)

2 years agoread set_value args from temp regs of put_unsafe_value (#1812)
Mark [Tue, 30 May 2023 02:49:54 +0000 (20:49 -0600)]
read set_value args from temp regs of put_unsafe_value (#1812)

2 years agoFIXED: correct dereferencing in atom_codes/2 and number_codes/2.
Markus Triska [Mon, 29 May 2023 09:12:00 +0000 (11:12 +0200)]
FIXED: correct dereferencing in atom_codes/2 and number_codes/2.

This addresses #1818.

Test case:

    run :-
    length(Ls, L),
    portray_clause(L),
    maplist(=(X), Ls),
    X = Y,
    Y = 12,
    atom_codes(_, Ls),
    false.

2 years agoRename INDEX.md to INDEX.dj and add banner about Scryer Prolog Meetup
Adrián Arroyo Calle [Sun, 28 May 2023 22:29:53 +0000 (00:29 +0200)]
Rename INDEX.md to INDEX.dj and add banner about Scryer Prolog Meetup

2 years agoread from machine stack in stackful pre-order iterator (#1812)
Mark [Fri, 26 May 2023 21:19:07 +0000 (15:19 -0600)]
read from machine stack in stackful pre-order iterator (#1812)

2 years agoCompute correctly the domain of the remainder
notoria [Sat, 27 May 2023 11:47:14 +0000 (13:47 +0200)]
Compute correctly the domain of the remainder

2 years agoDon't add variable
notoria [Sat, 27 May 2023 11:19:19 +0000 (13:19 +0200)]
Don't add variable

?- Z #= 0, Z #= X mod Y.
   Z = 0, clpz:(_A*Y#=X), clpz:(Y in inf.. -1\/1..sup) % Unexpected.

The expected result:
   Z = 0, clpz:(X mod Y#=0), clpz:(Y in inf.. -1\/1..sup).

2 years agoRemove and move comments
notoria [Sat, 27 May 2023 11:08:25 +0000 (13:08 +0200)]
Remove and move comments

2 years agooptionally read from machine stack in stackful pre-order iterator (#1812)
Mark [Fri, 26 May 2023 21:19:07 +0000 (15:19 -0600)]
optionally read from machine stack in stackful pre-order iterator (#1812)

2 years agoaffirm integers as rational/1 (#1810)
Mark [Wed, 24 May 2023 19:43:52 +0000 (13:43 -0600)]
affirm integers as rational/1 (#1810)

2 years agoUpdate select crate to 0.6.0 and remove warning
Adrián Arroyo Calle [Wed, 17 May 2023 16:19:19 +0000 (18:19 +0200)]
Update select crate to 0.6.0 and remove warning

2 years agoFIXED: correctly reset counter in reset_gensym/2 (#1807)
Markus Triska [Tue, 16 May 2023 20:42:10 +0000 (22:42 +0200)]
FIXED: correctly reset counter in reset_gensym/2 (#1807)

Many thanks to @infradig for detecting this issue and suggesting this
correction!

2 years agoshorten gensym/2
Markus Triska [Tue, 16 May 2023 20:41:20 +0000 (22:41 +0200)]
shorten gensym/2