Commit Graph

1323 Commits

Author SHA1 Message Date
Vítor Santos Costa
9ab7ab0a5e fix possible error in modules. 2012-04-03 16:24:14 +01:00
Vítor Santos Costa
f8972365f8 fix phrase/3 2012-03-29 22:32:56 +01:00
Vítor Santos Costa
32167b5465 Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3 2012-03-28 17:55:06 +01:00
Vítor Santos Costa
7d3d9bcf41 fix module stuff. 2012-03-28 14:35:09 +01:00
Vítor Santos Costa
d149d041a3 hack around phrase 2012-03-28 10:58:53 +01:00
Vítor Santos Costa
a223c33e0b UN keysort/2 partial error checking and tiny speedup 2012-03-27 14:17:29 +01:00
Vítor Santos Costa
9c42dfa26c UW Experimental: Superfast phrase/3. This version is simply using call/3 2012-03-23 15:00:58 +00:00
Vítor Santos Costa
52f06f5f60 un: strict iso update 2012-03-23 14:42:26 +00:00
Vítor Santos Costa
bdb855a57b make skip_list available to user code 2012-03-22 23:30:02 +00:00
Vítor Santos Costa
372f3d795e fix bad use of skip_list. 2012-03-22 22:41:41 +00:00
Vítor Santos Costa
65e61cfefd patch by UN: op/3 typo in error 2012-03-22 22:13:11 +00:00
Vítor Santos Costa
1e2abadd78 patch by UN: op/3 typo in error 2012-03-22 22:12:13 +00:00
Vítor Santos Costa
4d5c70b64b fix operator handling (by UN). 2012-03-22 22:10:23 +00:00
Vítor Santos Costa
756bba9bc5 fix by UN to do type checking on sort. 2012-03-22 22:09:08 +00:00
Vítor Santos Costa
e6b48be445 avoid making choice-point. 2012-03-22 21:43:26 +00:00
Vítor Santos Costa
1698bb3c91 imessage for missing library. 2012-03-22 21:42:41 +00:00
Vítor Santos Costa
36acb5f897 fix profiling support. 2012-03-09 11:46:34 +00:00
Vítor Santos Costa
020323d633 list_or_partial_list support. 2012-03-06 14:41:23 +00:00
Vítor Santos Costa
5a472616e7 fix recent regressions on :- if, etc. 2012-03-04 10:22:40 +00:00
João Santos
78fb13e651 parallel_findfirst/3 2012-02-27 18:31:57 +00:00
Vítor Santos Costa
ddcf1f003b make sure we can consult from external code directly. 2012-02-27 16:37:31 +00:00
Vítor Santos Costa
e38c850361 fix yap_flag(user_* (obs from Nicos). 2012-02-27 14:20:34 +00:00
Vítor Santos Costa
5d65c49292 fix user defined directives. 2012-02-26 23:26:08 +00:00
Vítor Santos Costa
6c16f4e953 iadd export functionality. 2012-02-14 09:54:56 +00:00
Vitor Santos Costa
8d9c5617eb fix clash. 2012-02-14 07:46:55 +00:00
Vítor Santos Costa
fb04195314 first version for occurs_check flag. 2012-02-13 11:26:05 +00:00
Vítor Santos Costa
8a5413c2fb follow SWI. 2012-02-13 11:23:30 +00:00
Vítor Santos Costa
7c2ba414a3 support predicate flagas and declaration support. 2012-02-13 09:41:37 +00:00
Vítor Santos Costa
d5bfd78b64 $length1 was broken. 2012-02-13 09:40:57 +00:00
Vítor Santos Costa
db35eb4b3c call SWI's predicate option expansion. 2012-02-13 09:39:57 +00:00
Vítor Santos Costa
a128d1d78d allow calling directives with VL and Line Number. 2012-02-13 09:39:29 +00:00
Vítor Santos Costa
c8787a29f2 allow weird use of atom_file_name
exists_source/1.
2012-02-13 09:36:44 +00:00
Vítor Santos Costa
037597ce2f fix qly to load .yaprc before -l starts. 2012-01-13 23:23:18 +00:00
Vítor Santos Costa
37b79f663f module stuff. 2012-01-10 18:50:04 +00:00
Vitor Santos Costa
aef7555e02 fix new version of length/2. 2012-01-10 09:33:10 +00:00
Vitor Santos Costa
805ad7f958 update length to use skip_list/3. 2012-01-09 23:46:17 +00:00
Ricardo Rocha
1fe86ba2b3 fix parallel_findall/3 2012-01-05 16:04:32 +00:00
Ricardo Rocha
d33829205e support for local pages with threads 2011-12-07 13:53:20 +00:00
Vítor Santos Costa
c637863616 Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3 2011-11-10 12:31:35 +00:00
Vítor Santos Costa
cfc13a0d61 improve term expansion: avoid duplicated calls and handle throws gracefully. 2011-11-10 12:27:36 +00:00
Ricardo Rocha
88760aa0b1 mode directed tabling 2011-11-09 11:00:31 +00:00
Vítor Santos Costa
d971219b7e just add a comment. 2011-11-08 15:48:55 +00:00
Vítor Santos Costa
a90eaa4937 fix syntax error handling. 2011-11-08 15:30:06 +00:00
Vítor Santos Costa
d690ffdb18 make ground.yap use new C-code. 2011-11-03 07:49:06 +09:00
Vítor Santos Costa
22b0bcac14 mode directed tabling. 2011-10-22 16:49:13 +01:00
Vítor Santos Costa
8d4c9160eb add compile_predicates/1. 2011-10-21 23:02:07 +01:00
Vítor Santos Costa
c8061d46d6 fix length/2. 2011-10-02 19:55:12 -03:00
Vítor Santos Costa
5b0874be32 avoid error handling overhead. 2011-09-15 15:50:41 +01:00
Vítor Santos Costa
91791f8e3d icleanups to initialization process.w 2011-09-09 21:39:15 +01:00
Vitor Santos Costa
7940ec75b2 fix bad transitions on missing file. 2011-09-07 22:28:13 +02:00
Vitor Santos Costa
3d1781d2f3 fix initialization of arithmetic. 2011-09-07 22:17:23 +02:00
Vitor Santos Costa
9a32038e8c allow import of DCGs. 2011-09-05 03:07:40 +02:00
Vitor Santos Costa
5a91af843f encoding is done by SWI code, don't mess around. 2011-09-02 21:03:41 +01:00
Vitor Santos Costa
0c940b2dce be sure to respect priority in saving flags 2011-08-31 21:12:25 -07:00
Vitor Santos Costa
841dd3a3e1 fix prompt 2011-08-31 21:10:49 -07:00
Vitor Santos Costa
51e635f0c9 more QLY stuff. 2011-08-31 13:59:30 -07:00
Vitor Santos Costa
bdce2e7241 ifix non ground flags 2011-08-31 13:53:03 -07:00
Vitor Santos Costa
347e654273 new version of qly 2011-08-27 21:29:04 -03:00
Vitor Santos Costa
26e3f2cea0 qly fixes 2011-08-24 12:40:06 +01:00
Vitor Santos Costa
7c0ba3b867 qly stuff. 2011-08-24 00:11:54 -03:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
b6aca9463d Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3 2011-08-18 22:35:13 +01:00
Vitor Santos Costa
cd4d55be9b don't test flag options. 2011-08-16 08:53:29 -07:00
Vitor Santos Costa
2256c3bf8b add timezone flag 2011-08-16 13:31:19 +00:00
Vitor Santos Costa
b9effea2e9 fix changes 2011-08-09 08:12:52 -03:00
Vitor Santos Costa
bdeea3b15e support ply 2011-08-03 16:30:39 +01:00
Vitor Santos Costa
b79a885480 fix prompt stuff. 2011-07-27 16:49:43 +01:00
Vitor Santos Costa
40976581a3 fix exists. 2011-07-27 16:30:29 +01:00
Vitor Santos Costa
e2179a277d make top-level more SWI like 2011-07-26 23:32:50 +01:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
4fe1833ece Merge branch 'master' of /cygdrive/z/vitor/Yap/yap-6.3 2011-07-25 17:09:43 +01:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
840e287cda mode changes 2011-07-25 17:09:28 +01:00
Vitor Santos Costa
67ddf94afa fix error messages. 2011-07-22 23:38:19 +01:00
Vitor Santos Costa
a16a7d5b1c fix calling of Write and Read for new SWI style interface. 2011-07-22 15:49:40 +01:00
Vitor Santos Costa
c78aa3cf1d fix user-c spying. 2011-07-22 14:10:55 +01:00
ubu32
d488984753 get rid of loop alias. 2011-07-11 07:40:58 -07:00
ubu32
e379928239 make cd look for ~ and $HOME expansion. 2011-07-11 07:40:43 -07:00
ubu32
d62fb5c2d7 fix volatile processing (doesn't do much more). 2011-07-10 04:52:33 -07:00
Vitor Santos Costa
6863a43e76 fix handling of backtrackable C-code in longjmp and other long range cuts. 2011-07-09 07:56:11 -04:00
Paulo Moura
5332cc45fb Fixed some meta_predicate/1 directives (goals are represented by "0", not ":". 2011-06-25 06:50:22 -05:00
Paulo Moura
c723d98869 Corrected a typo/bug in the processing of the YAP flag "associate". 2011-06-24 11:26:29 -05:00
Paulo Moura
8f8e62ea63 Corrected bug in the processing of the option file_errors/1 for absolute_file_name/3. 2011-06-23 21:35:42 -05:00
Ricardo Rocha
b849d3a86d fix parallel_once/1 2011-06-22 19:20:56 +01:00
Ricardo Rocha
61f2c53b47 fix meta_predicate declaration 2011-06-22 15:00:58 +01:00
Vítor Santos Costa
d4ed02bdd3 absolute_file_name 2011-06-22 12:29:35 +01:00
Vítor Santos Costa
46ab2e7590 file_name_on_path 2011-06-22 12:29:24 +01:00
Vítor Santos Costa
a1e3f0daa2 file_name_on_path 2011-06-22 12:29:01 +01:00
Vítor Santos Costa
0b6b471359 more SWI style flags: associate and shared_object_extension. 2011-06-22 12:27:05 +01:00
Vitor Santos Costa
dba2fd398f fix absolute_file_path and its use by load_files to new SWI framework. 2011-06-21 22:36:09 +01:00
Vitor Santos Costa
249010bd90 add SWI compatible file_name_variables flag. 2011-06-21 22:33:10 +01:00
Ricardo Rocha
8116aac432 parallel execution is now explicit using one of the new built-in
predicates: parallel/1, parallel_findall/3 or parallel_once/1.
2011-06-21 15:19:07 +01:00
Vitor Santos Costa
a516d6ad47 more SWI stuff. 2011-06-14 09:04:03 +01:00
Vitor Santos Costa
ad5e29ba72 fix comment option in read_term. 2011-06-14 09:03:44 +01:00
Vitor Santos Costa
318c906966 export some SWI builtins 2011-06-14 09:03:00 +01:00
Vitor Santos Costa
dfe3fcbf0b use SWI stuff module. 2011-06-14 09:02:44 +01:00
Vitor Santos Costa
eaf96e918b allow multifile as an user predicate. 2011-06-14 09:02:16 +01:00
Vitor Santos Costa
9c8d759a43 insert SWI-compatible hook for comment processing. 2011-06-14 09:01:10 +01:00
Vitor Santos Costa
5c03739525 SWI inherited stuff 2011-06-14 08:59:58 +01:00
Vitor Santos Costa
b57e809adb fix bug in public directive. 2011-06-13 01:45:03 +01:00
Vitor Santos Costa
c67cac0a36 improve // handling. 2011-06-13 01:44:31 +01:00
Vitor Santos Costa
d6e87420e3 user:prolog_file_type/2.
avoid using old OS stuff, if we have it in.
2011-06-13 01:43:40 +01:00
Vitor Santos Costa
261e02b43e support for option comments(X) in read_term/1. 2011-06-12 17:23:10 +01:00
Ricardo Rocha
e63cba963e new local predicates for tabling with threads 2011-05-25 20:08:04 +01:00
Ricardo Rocha
1d4fdd53c0 use SWI's IOSTREAM for output 2011-05-25 18:38:46 +01:00
Vitor Santos Costa
0886c7d114 try to fix prompting. 2011-05-12 23:05:49 +01:00
Vitor Santos Costa
47f1499ae0 fix comments and use of peek in file scanning. 2011-05-12 22:34:44 +01:00
Vitor Santos Costa
c1f74b7682 fix usage of cd/1. 2011-05-12 22:26:10 +01:00
Vitor Santos Costa
8aad2d0bde fix non-determinism in arithmetic compilation. 2011-05-08 23:11:56 +01:00
Vitor Santos Costa
fee158c071 fix call to read_vars 2011-05-02 23:28:59 +01:00
Vitor Santos Costa
fa5989587d fix |: prompt with readline. 2011-05-01 22:43:54 +01:00
Paulo Moura
cfe65cea0a Corrected a bug in the implementation of yap_flag/2 when returning the user_input, uer_error, and user_ouput flag values. 2011-04-30 20:22:20 +02:00
Vítor Santos Costa
49daa4ab0b fix prolog_load_context position detection to be SWI compatible (obs from Paulo Moura).wq 2011-04-30 10:57:00 +01:00
Vítor Santos Costa
de0f8a8236 dbload 2011-04-30 01:16:40 +01:00
Vítor Santos Costa
e49e59c705 include optimise flag. 2011-04-04 16:23:46 +01:00
Vítor Santos Costa
7463cbea96 protect readline against failure. 2011-04-04 14:35:42 +01:00
Vitor Santos Costa
a6d0944996 fix memory leak in between/3. 2011-03-30 23:20:49 +01:00
Vitor Santos Costa
9c3d6a187d debugging cleanups
actually use readline flag.
2011-03-26 15:45:42 +00:00
Vitor Santos Costa
c1c32ec26a fix left stuff. 2011-03-26 15:30:30 +00:00
Vitor Santos Costa
89d605d6c0 Merge branch 'master' of ssh://yap.git.sf.net/gitroot/yap/yap-6.3
Conflicts:
	packages/PLStream/pl-file.c
	packages/http
	packages/plunit
	pl/flags.yap
2011-03-26 15:27:03 +00:00
Vitor Santos Costa
48cd3bd675 use SWI flags. 2011-03-26 15:18:56 +00:00
Vítor Santos Costa
e03acef3f9 use SWI flags. 2011-03-26 15:17:17 +00:00
Vítor Santos Costa
f31e15deb8 SWI compat: use $VAR(ATOM) for names 2011-03-18 19:34:19 +00:00
Vítor Santos Costa
36a0023fbf iimprove SWI compat 2011-03-15 23:49:28 +00:00
Vítor Santos Costa
3bfcc2e7b4 fix bad call. 2011-03-14 20:37:55 +00:00
Vítor Santos Costa
921fb1c815 thread_create should ignore bad options, not complain. 2011-03-11 20:36:00 +00:00
Vítor Santos Costa
e05b84ce4e fix to thread support. 2011-03-11 19:49:32 +00:00
Vítor Santos Costa
c52ad77861 fix swi IO predicates. 2011-03-09 23:28:30 +00:00
Vítor Santos Costa
d0465f0d7d use SWI code directly. 2011-03-09 23:20:37 +00:00
Vitor Santos Costa
4ad0407388 fix small differences 2011-03-09 13:33:30 +00:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
752fa4fc53 support windows compilation, upgrade to current uxnt. 2011-03-09 00:02:21 +00:00
Vítor Santos Costa
90d93fdbdd cache abstra machine register in threaded mode. 2011-03-07 16:02:55 +00:00
Vítor Santos Costa
6f1537475f fix -p option to work with SYSTEM_MALLOC 2011-03-02 09:20:18 +00:00
ubu32
851b07c240 fix small bugs 2011-02-28 15:45:14 -08:00
ubu32
53e8811077 fixes to use SWI version of readline. 2011-02-26 18:34:44 -08:00
Vítor Santos Costa
f92fa69eab more PLStream stuff. 2011-02-23 17:46:50 +00:00
Vitor Santos Costa
4a5ba35937 assembly fixes
more support for readline, including getting more stuff from read.
2011-02-17 00:57:49 +00:00
Vitor Santos Costa
b902efe21f remove $access 2011-02-15 22:56:15 +00:00
Vitor Santos Costa
5a5a992cc6 more encoding stuff. 2011-02-15 22:46:59 +00:00
Vítor Santos Costa
3e77151af0 fix bad var. 2011-02-15 21:19:10 +00:00
ubu32
cd028bbd3f handle case where system:goal_expansion/2 is undefined. 2011-02-15 07:51:12 -08:00
ubu32
8c975eca5d make [a/b] more robust. 2011-02-15 07:50:33 -08:00
ubu32
185bb1b3f0 cleanups. 2011-02-15 06:43:28 -08:00
ubu32
140318ff16 read works now. 2011-02-14 23:39:27 -08:00
ubu32
78ea2213d1 remove small predicates 2011-02-14 14:55:59 -08:00
ubu32
f0d217dd92 ifix small stuff. 2011-02-14 14:19:30 -08:00
ubu32
4dbdaaa772 eplace format 2011-02-14 14:13:45 -08:00
ubu32
52f8cb1041 skip
more write updates.
2011-02-14 12:47:34 -08:00
ubu32
f13215700b write 2011-02-14 12:40:10 -08:00
ubu32
eff5dd3166 Edinburgh stuff. 2011-02-14 12:25:57 -08:00
ubu32
38fa886e18 more stream stuff. 2011-02-14 12:14:31 -08:00
ubu32
c8aee540ce put 2011-02-14 11:57:22 -08:00
ubu32
85a7e7b9b0 peek_ 2011-02-14 11:50:30 -08:00
ubu32
6469a0d464 add temporary definitions. 2011-02-14 11:46:27 -08:00
ubu32
7fa58bca40 set_input 2011-02-14 11:43:54 -08:00
ubu32
a851c56e3d get predicates. 2011-02-14 11:39:23 -08:00
ubu32
9691a0843d port flush predicates. 2011-02-14 11:28:44 -08:00
ubu32
a46e5b313d iuse SWI prompts 2011-02-14 07:19:37 -08:00
ubu32
f6befe5796 alias stuff. 2011-02-14 06:59:15 -08:00
Vitor Santos Costa
8b2312daf7 close must be last to be proted, otherwise YAP gets confused about who owns the stream. 2011-02-13 01:29:25 +00:00
Vitor Santos Costa
80f190bc8a use SWI user_*. 2011-02-13 01:03:08 +00:00
Vitor Santos Costa
98684ba4bb remove YAP sockets interface. 2011-02-12 23:38:24 +00:00
Vitor Santos Costa
2d07a7730e remove YAP memory (string) streams. 2011-02-12 18:42:44 +00:00
Vitor Santos Costa
be79c3326e first pass at open/ and friends. 2011-02-12 14:14:12 +00:00
Vitor Santos Costa
3bdece404b cd and getcwd stuff. 2011-02-12 01:24:15 +00:00
Vitor Santos Costa
74d780698e s_absolute_file_name/2 2011-02-12 01:23:48 +00:00
Vitor Santos Costa
efc65fdb28 SWI file_name builtins. 2011-02-12 01:03:22 +00:00
Vitor Santos Costa
9efbc0fce8 support time_file and access_file from SWI library. 2011-02-12 00:45:33 +00:00
Vitor Santos Costa
712300027e include support for working_directory/2 as a system predicate. 2011-02-12 00:26:28 +00:00
Vítor Santos Costa
b041ae00c2 use SWI code for char_type and friends. 2011-02-11 19:00:59 +00:00
Vítor Santos Costa
1da3cc8b5c compatibility with SWI generated error messages. 2011-02-11 19:00:32 +00:00
Paulo Moura
c95134e94d Fixed a bug in the implementation of between/3. Reported by Bernd Gutmann. 2011-02-04 12:38:05 +00:00
Vitor Santos Costa
d52d05a626 fix atom_term builtin not to require previous loading of charsio. 2011-01-20 11:51:46 -06:00
Vitor Santos Costa
d593f99c13 fix style check on reconsulting. 2011-01-20 11:50:08 -06:00
Vitor Santos Costa
75703ed89a fix top-level message 2011-01-20 11:49:37 -06:00
Vitor Santos Costa
088869c5ea make yap return an error on undef preds by default. 2010-12-30 23:21:07 -06:00
Vitor Santos Costa
4e8e81f044 don't ask for solutions if we know there are none left. 2010-12-30 23:20:49 -06:00
Vitor Santos Costa
8161cf64b7 fix overflow in atom_to_term error (UN #206) 2010-12-30 23:00:10 -06:00
Vitor Santos Costa
95281f78ee fix leap over meta-predicates. 2010-12-19 21:57:40 +00:00
Vítor Santos Costa
828f8b07f7 make YAP more compatible with SWI by going inside 0 arguments (obs from Roberto). 2010-12-14 12:39:24 +00:00
Vítor Santos Costa
666ef1877d itry to respect SWI semantics on expand_goal/2. 2010-12-13 22:03:54 +00:00
Vítor Santos Costa
eec588f488 distribute goal_Expansion over comma 2010-12-13 21:33:43 +00:00
Vítor Santos Costa
9f8f8ee73e fix missing cut (obs from Bernd). 2010-12-13 19:35:16 +00:00
Vítor Santos Costa
1369057cc4 fix style checker to be more self-contained. 2010-12-13 19:13:33 +00:00
Vitor Santos Costa
3c4da56af2 allow write to find out about SWI streams in SWI mode. 2010-12-13 12:38:37 +00:00
Vítor Santos Costa
7c2c3febe5 checker should be called after preprocessing (obs from Roberto Bagnara). 2010-12-12 19:19:49 +00:00
Paulo Moura
76ee19ab59 Corrected the meta_predicate/1 directive for the built-in tabling predicate tabling_mode/2. 2010-12-09 18:21:26 +00:00
Vítor Santos Costa
21bbffceda make sure we rebuild saved state stuff even if we do not actually enter top-level.
fix bug with some definitions being reset at load time.
2010-12-07 15:06:53 +00:00
Vítor Santos Costa
1deb6d2663 fix order at boot 2010-12-06 20:15:05 +00:00
Vítor Santos Costa
c6f41e2970 YAP_FAIL_ERROR in case a fail has been requested, but not accepetd yet. 2010-12-04 18:45:09 +00:00
Vítor Santos Costa
268a378ba0 fix p(X) :- once((X, write(yippee), nl)). (obs from Gerlof Bouma). 2010-12-03 15:14:00 +00:00
Vítor Santos Costa
552d424ee0 debugger should use the same code that system uses to find undefined predicates. 2010-12-03 12:40:30 +00:00
Vítor Santos Costa
2f6733e37a add expand_file_name/2 2010-12-02 19:57:55 +00:00
Vítor Santos Costa
514758e65b imake call_foreign_function module aware. 2010-12-01 19:30:58 +00:00
Vítor Santos Costa
c454690a67 fix save_program to reload foreign files SWI style when restarting. 2010-11-29 18:44:39 +00:00
Vítor Santos Costa
863747da7b fix save/1 and save/2 to at least work now. 2010-11-29 18:08:11 +00:00
Vitor Santos Costa
99f1249382 fix file_name_extension with '' as second arg (obs from Crhis Mungall) 2010-11-26 23:44:11 +00:00
Vitor Santos Costa
35100fe515 add interface to SWI's prolog_to_os_filename/2 2010-11-24 08:41:21 +00:00
Vítor Santos Costa
576d37510c fix ls/0. 2010-11-22 18:22:53 +00:00
Vitor Santos Costa
20699fd838 fix syntax error. 2010-11-22 12:50:50 +00:00
Vitor Santos Costa
1b36c79733 ISO: conforming type errors for setof/3 etc ulrich neumerkel patch 2010-11-21 21:49:13 +00:00
Paulo Moura
a0201aa53f Added implementation of the SWI-Prolog predicates pwd/0, cd/0, and ls/0 (work in progress). 2010-11-09 16:36:22 +00:00
Vitor Santos Costa
9396252588 patches to provide initial support UTF32 encodings(from Paulo Moura) 2010-10-27 14:49:27 +01:00