3c567b895f
Fix (**)/2 operator type
Paulo Moura2021-05-09 21:02:44 +01:00
673c75fb72
Fix missing argument in current_op/3 predicate exception term
Paulo Moura2021-05-09 20:51:41 +01:00
7a576ee36e
Fix bitwise shift functions type error in the second argument
Paulo Moura2021-05-09 19:58:35 +01:00
73c09e3365
Fix open/3-4 predicates error term when the stream argument is bound
Paulo Moura2021-05-09 19:21:21 +01:00
07dd2b279e
Fix throw/1 control construct to throw an instantiation error when the argument is not bound
Paulo Moura2021-05-09 12:42:51 +01:00
c7943d2521
Switched from using @LukeMathWalker's image to using the official Rust image. Was experiencing cache issues before that, either due to the image, or due to Docker cache being weird...
panasenco2021-05-08 17:04:54 -07:00
9b483d381f
Merge pull request #928 from panasenco/permutation
Mark Thom2021-05-08 15:09:01 -06:00
4e25337779
Merge pull request #933 from pmoura/add_epsilon_arithmetic_constant
Mark Thom2021-05-08 15:08:13 -06:00
1e5041b8b0
Moved MIT header to top of lists.pl
panasenco2021-05-08 13:32:30 -07:00
3f4bbe9b9e
Add epsilon/0 arithmetic constant
Paulo Moura2021-05-08 21:23:54 +01:00
56eaf883dc
Merge pull request #932 from pmoura/fix_abolish_bug_with_no_existing_predicates
Mark Thom2021-05-08 12:39:28 -06:00
d8c0af7ded
Fix abolish/1 to succeed on non-existing predicates as per standard
Paulo Moura2021-05-08 11:13:08 +01:00
8724a6b6e2
Ported permutation/2 from SWI library(lists)
panasenco2021-05-07 00:29:48 -07:00
b968b2c438
add missing default RevJmpBy arm to thread_choice_instr_at_to (prompted by #922)
Mark Thom2021-05-05 11:16:33 -06:00
533d1ea9ab
set self.dynamic_mode to FirstOrNext::Next independently of succeed or failure in dynamic indexing instructions (prompted by #922)
Mark Thom2021-05-04 20:54:00 -06:00
bba836dc31
fail on undefined multifile/discontiguous/dynamic predicates (#915)
Mark Thom2021-04-30 21:46:50 -06:00
14fc8e2efa
support full paths in load_context_path/2 (#916)
Mark Thom2021-04-30 20:38:26 -06:00
d8bd4fbea6
fail when retracting undefined dynamic predicates (#918)
Mark Thom2021-04-30 20:36:56 -06:00
7cc89da879
Merge pull request #920 from panasenco/serialize
Mark Thom2021-04-29 13:11:13 -06:00
baed12f45e
Oops, we want to keep digits as characters in library(abnf), but as numbers in library(json).
panasenco2021-04-28 22:58:04 -07:00
dfbf291725
Restructuring and improving documentation.
panasenco2021-04-28 22:22:00 -07:00
cb07074246
Replaced object() with pairs() in library(json), and made key type explicit.
panasenco2021-04-28 16:09:38 -07:00
0198fe90b6
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.
panasenco2021-04-27 22:48:03 -07:00
061221b073
Alphabetized character logic in macros.rs and system_calls.rs
panasenco2021-04-27 11:58:39 -07:00
7e4cfede7d
fix use of local skeletons to reload predicates (#919)
Mark Thom2021-04-27 02:00:54 -06:00
02b89362b2
Replaced raw_chars//1 in library(pio) with seq//1 in library(dcgs).
panasenco2021-04-25 14:53:37 -07:00
e0e812f95c
Added
aw_chars//1 to library(pio). Began using setup_call_cleanup/3 as suggested by @triska.
panasenco2021-04-24 21:29:50 -07:00
2cbc7e4f9a
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!
panasenco2021-04-22 23:51:34 -07:00
828550687c
Rewrote many parts of library(json) to leave no choicepoints when generating JSON. However, the generating performance actually worsened slightly...
panasenco2021-04-22 13:31:06 -07:00
d3caba4073
Now preserving distinction between ints and floats
panasenco2021-04-20 19:59:01 -07:00
7e802706fe
Seem to be generating JSON correctly and at a good speed too!
panasenco2021-04-20 17:26:38 -07:00
c87e3eac08
Removed CLP(Z) from library(json), achieving a 100x speedup in JSON parsing.
panasenco2021-04-20 16:58:33 -07:00
5b1b12ec9e
Fixed forward slash special case issue, added a bunch of test files that were successfully read!
panasenco2021-04-19 21:46:11 -07:00
c0c6f13d44
Fixed defaulty representations of json_members//1 and json_elements//1
panasenco2021-04-19 14:57:15 -07:00
20f192daa1
Changed formatting to match Markus Triska's as much as I can tell
panasenco2021-04-18 23:44:10 -07:00
0e73b53803
Complete reordering and partial rewrite to match the official McKeeman form of the JSON specification
panasenco2021-04-18 23:21:12 -07:00
e2923c378e
Added objects and type distinction based on the principal functor
panasenco2021-04-18 14:59:16 -07:00
216d4da85a
Parsing and generating JSON numbers works perfectly now as far as I can tell
panasenco2021-04-17 21:44:57 -07:00
407e775282
Began working on json library (fresh start after thinking about instantiation in terms of search strategies)
panasenco2021-04-12 15:15:29 -07:00
10e92eec32
call '$erase_ball' before running cleanup code in setup_call_cleanup (#886)
Mark Thom2021-03-24 16:56:48 -06:00
37f2336eee
stop unifying ! to free variables in control_functor/1 (#887)
Mark Thom2021-03-24 15:05:59 -06:00
290cb1b517
make retract_local_clauses safe, remove warning about overwriting warning in do_not_duplicate_path_components test
Mark Thom2021-03-23 12:37:43 -06:00
7520fe7000
use occurs check when enabled in UnifyValue (#885)
Mark Thom2021-03-22 22:05:03 -06:00
9f861dfe89
reorder declaration matching in loader.pl
Mark Thom2021-03-22 18:13:01 -06:00
fffb87d013
flush loader term queue before compiling declarations, declare '/1' as dynamic before asserting
Mark Thom2021-03-22 16:53:23 -06:00
0cb731c584
remove redundant retraction records for incremental compilation
Mark Thom2021-03-22 15:27:45 -06:00
233faea200
compare the tails of partial string prefixes in compare_pstr_prefixes (#883)
Mark Thom2021-03-22 12:44:58 -06:00
1b9015a049
copies only those attributes planted by the calling module
Mark Thom2021-03-21 13:00:29 -06:00
111de1462c
remove vestigial attribute goals struct field and related predicates
Mark Thom2021-03-21 11:58:37 -06:00
7fb0b4a8df
rename issue841-occure-check.pl to issue841-occurs-check.pl
Mark Thom2021-03-19 16:35:50 -06:00
627c49c5db
recognize cuts in (->)/(,)/(;) calling contexts (#878)
Mark Thom2021-03-19 16:34:55 -06:00
5f7abda22d
remove operators declared at user-level from files when reloading
Mark Thom2021-03-16 13:47:30 -06:00
51424aed32
clear user-level definitions when reloading a file (#455)
Mark Thom2021-03-16 02:30:09 -06:00
914fb09ed0
don't warn about overwriting a clause asserted to a dynamic predicate whose clauses have all been retracted (#870)
Mark Thom2021-03-15 14:22:54 -06:00
7ea7e5c951
remove intra-module predicates from module code directory when module is being re-defined (#848)
Mark Thom2021-03-13 23:22:24 -07:00
c69807b416
Merge pull request #866 from Skgland/add_tests
Mark Thom2021-03-13 00:39:01 -07:00
08320119f1
fix expected output for syntax_error test
Skgland2021-03-11 17:01:26 +01:00
49dcd9bb4a
address problems brought up in review
Skgland2021-03-11 16:16:31 +01:00