Costa Vitor
da79af201b
top-level more SWI style.
2013-02-12 12:47:30 -06:00
Vítor Santos Costa
046cb5f8d6
debugging
2013-02-08 10:36:45 -06:00
Vitor Santos Costa
d2a47ca4c0
protect exo compilation from atom gc
2013-01-22 22:21:44 +00:00
Vitor Santos Costa
20398352e3
who will you check?
2013-01-18 14:32:13 +00:00
Vitor Santos Costa
f98a2d5e01
fix unbound throw (obs from Paualo Moura).
2013-01-17 14:00:12 +00:00
Vitor Santos Costa
8c8392b5da
exo support
2013-01-15 11:18:09 +00:00
Vítor Santos Costa
4d35c1f70a
fix call to undefined halt/1.
2012-12-14 23:30:48 +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
f371fca6c5
check if defined
2012-11-08 00:19:48 +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
48f07ad338
fix parsing of input strings.
2012-10-09 16:31:43 +01:00
Vítor Santos Costa
d5bf100b71
make full init even before entering Prolog top-level
2012-09-21 11:49:59 +01:00
Vitor Santos Costa
f85a2112c9
make sure we can use clause.
2012-08-23 21:02:15 +01:00
Costa Vitor
51b47d14da
if/3 didn't work.
2012-08-07 18:32:45 -05:00
Vítor Santos Costa
f166b8bfb6
make sure library_path is initialised at boot time, so that people get no
...
surprises.
2012-07-06 18:49:02 -05:00
Vitor Santos Costa
71eeda081c
fix *-> (thanks to ulrich).
2012-06-21 15:41:35 +01:00
Vitor Santos Costa
a997f5647c
fix save & restore in 6.3.
2012-06-12 14:50:36 +01:00
Vítor Santos Costa
e55d143e8d
fix extra CP.
2012-06-08 13:26:11 +01:00
Vitor Santos Costa
58c3445d82
win console.
2012-06-08 06:55:23 -05:00
Vitor Santos Costa
3669cb894f
Merge branch 'master' of https://github.com/tacgomes/yap6.3
...
Conflicts:
packages/CLPBN/clpbn/horus.yap
2012-06-04 16:29:56 +01:00
Vítor Santos Costa
cdd1af567e
if commit is called from C-code we can't trust getval not to send exceptions.
2012-04-15 00:01:26 +01:00
Vítor Santos Costa
7d3d9bcf41
fix module stuff.
2012-03-28 14:35:09 +01: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
cfc13a0d61
improve term expansion: avoid duplicated calls and handle throws gracefully.
2011-11-10 12:27:36 +00:00
Vítor Santos Costa
91791f8e3d
icleanups to initialization process.w
2011-09-09 21:39:15 +01: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
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
b79a885480
fix prompt stuff.
2011-07-27 16:49:43 +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
840e287cda
mode changes
2011-07-25 17:09:28 +01:00
ubu32
d488984753
get rid of loop alias.
2011-07-11 07:40:58 -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
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
9c8d759a43
insert SWI-compatible hook for comment processing.
2011-06-14 09:01:10 +01:00
Vitor Santos Costa
261e02b43e
support for option comments(X) in read_term/1.
2011-06-12 17:23:10 +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
fa5989587d
fix |: prompt with readline.
2011-05-01 22:43:54 +01:00
Vítor Santos Costa
7463cbea96
protect readline against failure.
2011-04-04 14:35:42 +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
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
b902efe21f
remove $access
2011-02-15 22:56:15 +00:00
ubu32
185bb1b3f0
cleanups.
2011-02-15 06:43:28 -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
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
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
3900933694
fix true messages.
2011-01-06 11:20:29 -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
Vítor Santos Costa
1369057cc4
fix style checker to be more self-contained.
2010-12-13 19:13:33 +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
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
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
c454690a67
fix save_program to reload foreign files SWI style when restarting.
2010-11-29 18:44:39 +00:00
Vítor Santos Costa
c081d01e78
implement access_file/2 in C
2010-08-03 21:04:16 +01:00
Vítor Santos Costa
e21526ffc8
allow term_expansion from system
2010-06-23 11:45:18 +01:00
Vítor Santos Costa
dc4557c707
more fixes to verbose_load
2010-06-14 08:56:05 +01:00
Vítor Santos Costa
380fd692d9
:- G should not go top-level (obs from Ingo Molnar).
2010-05-25 16:15:09 +01:00
Vítor Santos Costa II
788193b0c9
Merge branch 'master' of gitosis@yap.dcc.fc.up.pt:yap-6
2010-04-22 12:17:39 +01:00
Vítor Santos Costa II
28cc9171c3
another victim of system name change
2010-04-22 12:15:59 +01:00
Ricardo Rocha
7eee5a5b56
new built-in predicates to access OPTYap statistics related to memory
...
usage.
2010-04-20 03:59:48 +01:00
Vitor Santos Costa
066603c79b
fix global variables
2010-04-08 01:44:08 +01:00
Vitor Santos Costa
f7e6242fe9
fix spy bug (obs from Nuno Fonseca).
2010-04-07 01:32:57 +01:00
Vitor Santos Costa
c468d8431e
try to make top level writing more SWI compatible.
2010-03-27 11:34:10 +00:00
Vitor Santos Costa
2ba051e908
SWI compatibility for term_expansion
2010-03-14 09:30:24 +00:00
Vitor Santos Costa
c4b39d3ab9
update Prolog code: do a cleanup and make delays use SWI interface.
2010-03-12 14:26:35 +00:00
Vitor Santos Costa
e92107e4cc
version is 6.0
2010-03-05 08:33:29 +00:00
Vitor Santos Costa
8cfbee9584
support exception/3 on undefined predicates.
2010-03-01 23:02:24 +00:00
Vitor Santos Costa
233926ea00
fix nb_getval to handle exceptions.
2010-03-01 22:32:40 +00:00
Vitor Santos Costa
28c60f7e09
fix missing global.
2010-03-01 08:47:39 +00:00
Vitor Santos Costa
dcd1c37fa8
make expand_goal built-in.
2010-02-28 22:25:54 +00:00
Vitor Santos Costa
8582d4ff45
term_expansion can be called from the current_module, as well as from user.
2010-02-28 10:08:01 +00:00
Vitor Santos Costa
12b8acfa20
fix missing initialization (obs from Paulo Moura).
2010-02-28 09:08:06 +00:00
Vitor Santos Costa
7037b38fa7
make nb_ undefined variable return an error, as SWI does.
2010-02-28 00:57:29 +00:00
Vitor Santos Costa
495529e69e
SWI compatible option: prompt_alternatives_on.
2010-02-28 00:05:38 +00:00
Vitor Santos Costa
b4481ca98c
fix confusion with file names.
2010-02-26 13:41:40 +00:00
Vitor Santos Costa
69b6f47b73
make open remember original file.
2010-02-26 11:23:15 +00:00
Vitor Santos Costa
a8039df035
protect unbound ball
2010-02-26 10:22:09 +00:00
Vitor Santos Costa
61eb299ba5
fix call(\+ !).
2010-02-26 10:03:32 +00:00
Vitor Santos Costa
daa55352ec
fix bad module passing.
2010-02-26 09:25:47 +00:00
U-Khasa\Vitor
f350e369b5
handle cr in files
2010-02-11 12:06:27 -06:00
Vitor Santos Costa
de46b64eee
allow debugging inside directives.
2010-01-25 09:02:00 +00:00
Vítor Manuel de Morais Santos Costa
5ef31fbfd2
experiment in or-parallel threads.
2010-01-14 15:58:19 +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
06d30b9fc9
Jump and Throw need to store the term away, if they try to use arena
...
the term will hang in the stack (#152 ).
2009-12-02 21:59:41 +00:00
Vítor Manuel de Morais Santos Costa
98f79484ae
change throw mechanism to fit better with cleanup mechanism:
...
- balls are now stored off line and recovered by Prolog code when everything
is safe.
- if a ball exists, throw uses the *existing* one (be careful not to have one
laying around).
- Jump routine cleans up every cp except ones for setup_call handling, backtracking simply calls setup handlers.
2009-11-27 11:21:24 +00:00
Vitor Santos Costa
d91bab4247
make sure goal_expansion is never seen as an undefined goal. It should at least always succeed.
2009-11-23 10:01:55 +00:00
Vitor Santos Costa
628d181923
protect against var usage.
2009-11-20 00:32:14 +00:00
Vitor Santos Costa
ce5ae8b972
another oops :(
2009-11-17 00:48:16 +00:00
Vitor Santos Costa
84022de89d
disable creep when top-level starts: this prevents creeping after a top-level.
2009-11-17 00:32:38 +00:00
Vitor Santos Costa
0ea348c26d
extend SWI interface with PL_toplevel and to handle C++ code.
...
prolog/0 built-in
fixes to parms.h changes.
2009-10-23 16:50:43 +01:00
Vitor Santos Costa
0179998d60
change Heap.h to YapHeap.h
...
rename $live to prolog/0 (for SWI compatibility).
2009-10-23 14:22:17 +01:00
Vitor Santos Costa
218bc2e423
fix to slow reconsult (Jos Deroo)
2009-09-20 10:03:10 -05:00
Vitor Santos Costa
0688fb4d68
handle old style binding lists.
2009-09-09 18:00:35 -05:00
Vitor Santos Costa
9047ad2e6e
fix bad call.
2009-09-02 23:08:36 -05:00
Vitor Santos Costa
4f71103b88
idon't disable interrupts for creeping.
2009-05-25 09:57:59 -05:00
Vitor Santos Costa
f5bff2a21d
just indenting
2009-05-24 15:16:40 -05:00
Vitor Santos Costa
51e669dcfb
support for passing priority as argument to write. (Ulrich's #45 ).
...
fixes on making write handle infinite loops
2009-05-22 13:24:27 -05:00
Vitor Santos Costa
e466bf2c5b
fix $notrace (Ulrich Neumerkel #26 )
2009-05-21 23:51:34 -05:00
Vitor Santos Costa
3736ba5793
$notrace should call $execute and disable interrupts below.
2009-05-21 22:35:24 -05:00
Vitor Santos Costa
1fe1b19534
cleanup handling of attributed variables:
...
- try to make it clear when to call project
- try to make it clear when to generate goals for attributed variables (get_goalist_from_attvars).
- change call_residue to rely this infrastructure and then add extra variables.
- change frozen never to call project.
2009-05-16 12:00:56 -07:00
Vitor Santos Costa
42442bd360
make sure throw goes away on deterministic computations.
2009-05-04 18:10:07 -05:00
Vitor Santos Costa
50fd7dca5a
support thread_initialization.
2009-04-25 12:54:21 -05:00
Vitor Santos Costa
13f66957b6
break should restore system_mode.
2009-04-23 11:48:06 -05:00
Vitor Santos Costa
c1aba9a840
fix the signal handling a bit better.
2009-04-22 16:13:08 -05:00
Vitor Santos Costa
2f8c9c6b6c
block users from catching user balls.
2009-04-22 11:32:07 -05:00
Vitor Santos Costa
9d07b51937
make sure we don't redo things.
2009-04-21 15:19:26 -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
bdd625c8ae
arena is allocated by the system now.
2009-03-24 13:47:32 +00:00
Vítor Santos Costa
73373e1ca5
global arena is now allocated in the C-code, when initing stacks.
2008-12-29 00:13:28 +00:00
Vitor Santos Costa
0dcf34b7bc
mainbranch fixes to:
...
- fix quoted characters output
- fix line position in read_term and friends
- make messages look a bit better
- CLP(BN) EM improvements.
2008-10-23 22:17:45 +01:00
Vítor Santos de Costa
7207c18e65
fix longmp in trow not to recover trail. This way we do not need to do
...
copy_term/2 and we avoid losing the attributed variable stack.
2008-10-18 11:03:25 +01:00
Vítor Santos de Costa
8b171db743
fix notrace so that it will not call goal_expansion and friends.
2008-10-08 13:43:33 +01:00