Mark Thom
f9b98f97b6
remove unnecessary cause of failure in parser, qualify call to op_/3 in builtins.pl
2021-02-17 11:56:58 -07:00
Mark Thom
00bf39204d
add missing variable checks in various places
2021-02-17 11:12:19 -07:00
Mark Thom
e9ba3ad223
handle user:goal_expansion, but not Target:goal_expansion, explicitly in loader.pl
2021-02-17 01:19:51 -07:00
Mark Thom
6b6666be47
support discontiguous and multifile declarations
2021-02-16 22:08:32 -07:00
Mark Thom
e2a413df78
compile scoped clauses from loader.pl
2021-02-13 19:41:04 -07:00
Mark Thom
b24f68eee7
remove vestigial uses of constant_eq
2021-02-11 19:22:03 -07:00
Mark Thom
72c1a0222c
Box LoadStatePayload when storing it in the heap
2021-02-11 19:21:20 -07:00
Mark Thom
bd97083268
remove unused is_internal function from indexing.rs
2021-02-11 18:51:21 -07:00
Mark Thom
e7cf5d4f3d
use machine-generated PartialEq instance for hashing Constant ( #817 )
2021-02-11 18:40:23 -07:00
Mark Thom
2429971bcd
update call/N indices in user-level code_dir in addition to those of pre-loaded modules
2021-02-11 15:38:30 -07:00
Mark Thom
170a71bd02
offset SwitchOnTerm's Internal indices only if the proper instructions were emitted
2021-02-11 15:38:16 -07:00
Mark Thom
14efbb1356
roll back extent of heap when loads are complete in loader.pl
2021-02-11 15:37:43 -07:00
Mark Thom
20cd0dd77a
use IndexMap over HashMap in prolog_parser
2021-02-11 15:35:14 -07:00
Mark Thom
2db1fac1eb
break out of the first inner loop if constants contains no key in remove_constant_indices ( #816 )
2021-02-10 14:13:37 -07:00
Mark Thom
ce8490ed41
Merge pull request #813 from triska/rebis-dev
...
~| now incorporates the number of characters described so far
2021-02-09 17:57:08 -07:00
Mark Thom
7e208984de
reset merging_ptr offset before insertion of each overlapping constant ( #816 )
2021-02-09 17:18:00 -07:00
Mark Thom
4d29a3ae3c
check for control functors (,/;/->) before jumping to internal interpretation ( #815 )
2021-02-09 16:40:25 -07:00
Mark Thom
547c63b28e
qualify exception handling code in loader.pl ( #809 )
2021-02-09 15:47:14 -07:00
Mark Thom
9004aae597
Merge branch 'rebis-dev' of https://github.com/mthom/scryer-prolog into rebis-dev
2021-02-09 14:30:09 -07:00
Markus Triska
1bdfc5a1a4
~| now incorporates the number of characters described so far
...
Therefore, subsequent uses of ~N| now yield the specified column,
instead of potentially overshooting.
Example:
?- format("hello~|~t~8|!", []).
hello ! true.
Such cases are probably rather uncommon: Relative positioning with ~N+
is more likely to be used in such cases, and that worked as intended
also previously as it does now:
?- format("hello~|~t~3+!", []).
hello ! true.
In fact, if absolute positions are used, then ~| can be omitted entirely:
?- format("hello~t~8|!", []).
hello ! true.
2021-02-09 20:55:46 +01:00
Mark Thom
195273f01d
throw exceptions when modules do not contain claimed exports
2021-02-09 12:17:34 -07:00
Mark Thom
605aea2211
Merge pull request #811 from triska/master
...
link to announcement of Rebis Development Branch, call for testing
2021-02-09 11:59:59 -07:00
Markus Triska
d1afcb941f
link to announcement of Rebis Development Branch, call for testing
2021-02-09 19:14:25 +01:00
Mark Thom
cc7e21170f
correct faulty removal of clauses in abolish/1
2021-02-08 19:02:26 -07:00
Mark Thom
30602c0849
clean up implementation of (->)/2, (;)/2, and (,)/2
2021-02-07 21:13:27 -07:00
Mark Thom
1dabe95899
remove tidy_trail
2021-02-07 15:39:48 -07:00
Mark Thom
4995c0ed94
append .pl to names of files that do not exist in loader.pl
2021-02-07 15:38:03 -07:00
Mark Thom
df82dbe5f5
use parent() instead of ancestors().next() in load_context_directory()
2021-02-07 13:51:01 -07:00
Mark Thom
de9c74e1d9
Merge branch 'Skgland-clean_up' into rebis-dev
2021-02-07 00:34:57 -07:00
Bennet Bleßmann
d89eb9ff0e
change reposity url
2021-02-06 22:38:40 +01:00
Skgland
5041042925
rename prolog_parser_rebis to prolog_parser
...
also remove remaining extern crate statements that slipped through earlier
2021-02-06 22:13:34 +01:00
Skgland
0d983e63a1
fix incorrect rug path
2021-02-06 22:13:06 +01:00
Skgland
3f7a60d84b
more clippy lints
2021-02-06 22:13:06 +01:00
Skgland
1eb9fcf521
more clippy lints
2021-02-06 22:13:06 +01:00
Skgland
1571690bbb
fix clippy lint match|if let looks like matches! macro
2021-02-06 22:13:05 +01:00
Skgland
eb2133e648
fix clippy lint Manual RangeInclusive::contains implementation
2021-02-06 22:13:05 +01:00
Skgland
9107b3ddbe
fix some clippy lint warnings
2021-02-06 22:13:05 +01:00
Skgland
64433bd8dd
fix macro hygien
2021-02-06 22:13:04 +01:00
Skgland
bc6159c538
change prolog_parse_rebis to use 2018 edition rust
...
so all crates use the same edition
2021-02-06 22:13:04 +01:00
Skgland
8e5954f36f
remove use statements from main.rs that temporary replaced extern crate and fixed paths that previously used them
2021-02-06 22:13:04 +01:00
Skgland
b53ef148a0
remove extern crate declaration and fix outfall (macros now need to be imported into scope)
...
using use declarations in main.rs so that use paths don't need to be updated as well, this will be done in a later commit
2021-02-06 22:12:31 +01:00
Mark Thom
3f950490f9
set rustyline to check the cursor position ( #802 ), don't add .pl extension to files in loader.pl ( #800 )
2021-02-06 13:47:26 -07:00
Mark Thom
49b1c1368e
remove dynamic clause declaration for clause internal
2021-02-05 23:16:42 -07:00
Mark Thom
bdb5df104a
shed module names from arguments of the (->)/2, (,)/2, (;)/2 predicates
2021-02-05 22:50:57 -07:00
Mark Thom
700778e574
collate paths as atoms in loader.pl ( #778 )
2021-02-05 20:18:56 -07:00
Mark Thom
a104b35cea
gather initialization goals and call them once load succeeds ( #792 )
2021-02-05 18:42:30 -07:00
Mark Thom
bbbf95705b
implement abolish/1
2021-02-05 18:35:06 -07:00
Mark Thom
927871d73d
Merge branch 'rebis-dev' of https://github.com/mthom/scryer-prolog into rebis-dev
2021-02-05 17:17:14 -07:00
Mark Thom
62419e975f
bootstrap the top-level by calling ''/1 as in master ( #790 )
2021-02-05 17:16:42 -07:00
Mark Thom
3fc2c4223b
delay premature set_switch_var_offset_* calls in retract_clause, add module resolution for asserta/assertz/retract/clause
2021-02-05 17:12:25 -07:00