Commit Graph

227 Commits

Author SHA1 Message Date
Vítor Santos Costa
5721ce5e7d fix bad call to use_module. 2014-08-20 09:09:20 -05:00
Vítor Santos Costa
8a4590f3ce put mod_scan back. 2014-08-20 08:08:21 -05:00
Vítor Santos Costa
823175f50a fix small bugs from changing style_check 2014-08-04 09:45:30 -05:00
Vitor Santos Costa
0ef90c9b6a Merge branch 'master' of git.dcc.fc.up.pt:yap-6.3
Conflicts:
	pl/modules.yap
2014-07-26 19:45:16 -05:00
Vitor Santos Costa
9179e4780b avoid operators 2014-07-26 19:43:16 -05:00
Vítor Santos Costa
325c819f79 intermediate steo in improving doc system to doxygeb 2014-07-26 19:14:15 -05:00
Vítor Santos Costa
ce8a4b6958 module fixes plus add better docs 2014-07-17 12:19:38 -05:00
Vítor Santos Costa
1b57bdc2eb try to be really sicstus compatible 2014-07-16 11:54:59 -05:00
Vítor Santos Costa
74a65633d8 fix duplicated system predicate + android related cleanups 2014-06-20 11:13:39 +01:00
Vitor Santos Costa
87d7c90171 adtdefs.c: add debugging code to verify when a specific predicate is added.
modules.* implemente module_property/2:class(_)
prism: comment unneeded labels.
2014-06-17 15:44:46 +01:00
Vítor Santos Costa
ff2a7a364f mod prperty step 1 2014-06-16 15:00:04 +01:00
Vítor Santos Costa
ed04954b3f fix module expansion inside arguments. 2014-06-13 10:16:18 +01:00
Vítor Santos Costa
2c7e62ad71 handle :-use_module on non module.
improve handling of redefinitions.
2014-05-25 20:51:42 +01:00
Vítor Santos Costa
a8c77d2609 fix string_concat/2 2014-04-09 12:39:29 +01:00
Vitor Santos Costa
cc84cd8cb5 check for mistypes 2014-04-06 17:05:17 +01:00
Vítor Santos Costa
875546e36a don't optimise sub-args, as it may introduce new variables. 2014-03-18 17:24:20 +00:00
Vitor Santos Costa
2c89aadb11 WIN64 support (sill needs improvement) 2014-03-06 02:09:48 +00:00
Vítor Santos Costa
d3b3a45dde improve handling of meta-call in setof and debugging 2014-02-19 00:04:26 +00:00
Vítor Santos Costa
12364bb89a cleanup modules and fix loading swi emulation 2014-02-14 20:26:09 +00:00
Vitor Santos Costa
e0642dbaa3 reexport again 2014-02-09 18:06:37 +00:00
Vitor Santos Costa
ca0c43ba8d module expansion, again 2014-02-09 10:47:44 +00:00
Vitor Santos Costa
b3aa3e37c6 fix small bugs and declare format_time to be a meta-predicate 2014-02-06 21:55:01 +00:00
Vítor Santos Costa
3edb01f5f7 more reflection updates 2013-11-26 10:40:00 +01:00
Vítor Santos Costa
ea99d42897 current_predicate and imports 2013-11-25 23:57:05 +01:00
Vítor Santos Costa
b46dd8d392 speed-up imports 2013-11-25 23:08:35 +01:00
Vítor Santos Costa
b3ee389d5e module_property 2013-11-25 16:50:57 +01:00
Vítor Santos Costa
b167e62bc7 fix typo 2013-11-18 12:56:00 +00:00
Vítor Santos Costa
f67c7c184b fix reexport adding to export list 2013-11-17 21:41:41 +00:00
Vítor Santos Costa
f6f7f70b7f handle verbosity and autoload 2013-11-10 11:18:00 +00:00
Vítor Santos Costa
318199a47b fix first fail in autoload 2013-11-10 10:58:09 +00:00
Vítor Santos Costa
4085f268af fix reconsult non-mod file, fix cases where users call source, fix bad atom_concat 2013-11-08 08:24:06 +00:00
Vítor Santos Costa
cbba7e93df clean up load_files and friends to reuse code 2013-11-08 00:02:38 +00:00
Vítor Santos Costa
ad0ff98f1a use swi flags whenever possible 2013-11-04 01:14:48 +00:00
Vítor Santos Costa
990dfbecbf fix flags upgrade 2013-10-30 09:41:45 +00:00
Vítor Santos Costa
0a0b3cf6ac re-enable arit compilation 2013-03-03 20:27:20 -06:00
Vítor Santos Costa
046cb5f8d6 debugging 2013-02-08 10:36:45 -06:00
Vitor Santos Costa
8c8392b5da exo support 2013-01-15 11:18:09 +00:00
Vitor Santos Costa
556937195d avoid meta-call in system; improve goal/pred expansion 2012-12-07 08:08:32 +00:00
Vítor Santos Costa
2cbf3439ac introduce at_halt/1.
fix bug in naming variables in suspended goals.
2012-12-02 13:18:29 +00:00
Vítor Santos Costa
2607e59a16 add stash_predicate and fix hide_predicate. 2012-11-25 23:36:43 +00:00
Vítor Santos Costa
f74164c642 correct support for goal expansion (bug report from Paulo Moura) 2012-11-07 13:49:54 +00:00
Vitor Santos Costa
43c3c89f30 export patch from Paulo Moura 2012-10-22 15:04:52 +01:00
Vítor Santos Costa
7fa7c8b92a patch module code (by Paulo Moura) 2012-10-22 10:18:26 +01:00
Vítor Santos Costa
0228bfbb30 qsave_program/2. 2012-06-26 10:09:10 +01:00
Vítor Santos Costa
0efe86f3ba fix bad fix on modules, hope this one works. 2012-04-30 15:35:17 +01:00
Vítor Santos Costa
2bfc88db98 fix module dereferencing. 2012-04-27 16:30:23 +01:00
Vítor Santos Costa
9e36576951 fix implicit import 2012-04-27 15:52:03 +01:00
Vítor Santos Costa
e11d8bbda1 fix module generating detection and messages. 2012-04-20 12:29:10 +02:00
Vítor Santos Costa
9ab7ab0a5e fix possible error in modules. 2012-04-03 16:24:14 +01:00
Vítor Santos Costa
7d3d9bcf41 fix module stuff. 2012-03-28 14:35:09 +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
6c16f4e953 iadd export functionality. 2012-02-14 09:54:56 +00:00
Vítor Santos Costa
8a5413c2fb follow SWI. 2012-02-13 11:23:30 +00:00
Vitor Santos Costa
9a32038e8c allow import of DCGs. 2011-09-05 03:07:40 +02: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
a516d6ad47 more SWI stuff. 2011-06-14 09:04:03 +01:00
Vitor Santos Costa
c67cac0a36 improve // handling. 2011-06-13 01:44:31 +01:00
ubu32
cd028bbd3f handle case where system:goal_expansion/2 is undefined. 2011-02-15 07:51:12 -08: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
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
514758e65b imake call_foreign_function module aware. 2010-12-01 19:30:58 +00:00
Vítor Santos Costa
735f318b77 fix silly cut in autoload 2010-06-18 00:30:11 +01:00
Vítor Santos Costa
4a5a74929c give correct opts to absolute_file_name 2010-06-17 11:05:17 +01:00
Vitor Santos Costa
3cb5e57833 declare meta-predicate call arguments (Paulo Moura). 2010-04-22 20:45:57 +01:00
Vítor Santos Costa II
52ef6ae819 improve dialect support (make it less hackhish).
first  attempt at emulation of autoloader.
2010-04-22 12:16:37 +01:00
Vítor Santos Costa II
1a4c414831 meta-expansion should be done before calling goal_expansion :( 2010-04-20 23:14:15 +01:00
Vitor Santos Costa
5b1a2067f9 add support for with_output_to/2. 2010-04-14 10:57:00 +01:00
Vítor Santos Costa II
a3667150d3 remove debugging message 2010-04-13 13:34:05 +01:00
Vitor Santos Costa
0546df7ac3 fix goal_expansion 2010-03-01 22:30:31 +00:00
Vitor Santos Costa
dcd1c37fa8 make expand_goal built-in. 2010-02-28 22:25:54 +00:00
Vitor Santos Costa
2cb3ef5fa4 fix set_base_module to retract previous modules,
add delete_import_module.
2009-12-04 21:32:36 +00:00
Vitor Santos Costa
b3088710d3 emulate SWI module inheritance mechanism (at least, I hope). 2009-12-04 11:00:13 +00:00
Vitor Santos Costa
bc4b718afb follow import recursively so that we don't lose properties like being a
meta predicate.
2009-12-03 16:33:44 +00:00
Vitor Santos Costa
fe6148ef15 be more cautions about removing prolog: from calls. 2009-11-23 10:15:11 +00:00
Vitor Santos Costa
ffe1dfdfff support for module based operators. 2009-11-20 00:33:14 +00:00
Vitor Santos Costa
f7214090cb make operators defined within a module local to the module, operators in header are still global to every module, though (UN #131). 2009-11-17 00:59:06 +00:00
Vítor Manuel de Morais Santos Costa
3b7e5544f6 m:subgoal should compile subgoal with m as default module (obs from Nuno Fonseca). 2009-11-04 12:29:31 +00:00
Vítor Manuel de Morais Santos Costa
0f4b64d199 make should only look at reconsulted files, it makes no sense to use make for
consulted files.
2009-10-16 08:31:23 +01:00
Vitor Santos Costa
557ed169e8 fix processing of meta-arguments. 2009-06-14 22:58:12 -05:00
Vitor Santos Costa
a22f66a4fa don't import everything in a module by default when reexporting it #134 2009-06-14 12:16:54 -05:00
Ulrich Neumerkel
7ae4c887fc Instantiation error for looping :- meta_predicate P. 2009-06-08 20:26:57 -05:00
Vitor Santos Costa
99ac4f4d4a handle SWI style goal expansion natively, instead of trying to be smart. 2009-05-24 19:18:52 -05:00
Vitor Santos Costa
c7066b43ec first try of setup_call_cleanup/3 and setup_call_catcher_cleanup/4 2009-05-19 23:53:14 -07:00
Vitor Santos Costa
04fa96e8a0 add call_residue_vars (SWI and SICStus 4 compatibility). 2009-05-13 16:43:24 -05:00
Vitor Santos Costa
f668676e72 make a better effort to avoid walking through system code. 2009-04-17 15:46:13 -05:00
Vitor Santos Costa
fc2e01f320 improve code for disjunctions by trying to avoid permanent variables. 2009-03-10 16:24:26 +00:00
Vitor Santos Costa
ad2d073184 allow better writing of inlined operations
disallow eval.yap
2009-02-16 21:04:30 +00:00
Vitor Santos Costa
8a3978e3e1 rename BinaryTestPredFlag to BinaryPredFlag
get rid of small annoying arithmetic bugs
2009-02-09 21:56:40 +00:00
Vitor Santos Costa
67d9e0ef26 fix compilation of (V;_) where V is unbound (obs from Ingo Molnar). 2008-10-29 18:16:11 +00:00
Vitor Santos Costa
46744810ae support exporting DCG rules as // (swi compatibility). 2008-08-24 14:24:02 +01:00
vsc
2c829f8e5c fixes to module expansion
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2295 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-06 00:56:11 +00:00
vsc
75c72d7b7d SWI and module fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2290 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-22 23:34:50 +00:00
vsc
8e6403794f fix abolish bug
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2252 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-02 17:20:28 +00:00
vsc
316811d2cd user:goal_expand should be called before import
add extra apply_macros and apply stuff; fix unexisting definitions.
add forall/2 and ignore/1 to system stuff.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2237 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-15 13:41:48 +00:00
vsc
1090771c90 fix breakage in module system
disable stack writing in error for now


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2155 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-17 18:31:16 +00:00
vsc
d02bc3de81 update chr
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2143 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-13 14:38:02 +00:00
vsc
fda34985b9 fix lists predicates
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2141 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-12 17:05:04 +00:00
vsc
c07c5286c0 replace $append by lists:append
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2140 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-12 16:26:51 +00:00