predutils package available (Re: PAC library for develop version available)

Kuniaki Mukai <[email protected]> Tue, 30 Sep 2014 15:22:44 +0900
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Hi Michael,

I have managed to install "predutils" package, which I am calling pac library.
(ERROR message below is for  minor updates.)  

% swipl
Welcome to SWI-Prolog (Multi-threaded, 64 bits, Version 7.1.23-28-g70f014a)
Copyright (c) 1990-2014 University of Amsterdam, VU Amsterdam
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.

For help, use ?- help(Topic). or ?- apropos(Word).

?- [library(predutils)].
true.

?- module(pac).
true.

pac:  ?- phrase(w("[^\\n]*$", A), `abc\n`, R).
A = [97, 98, 99],
R = [] ;
A = [97, 98, 99],
R = [] ;
false.

pac:  ?- val((X\X)@1, X).
X = 1 .

pac:  ?- maplist(pred([X, Y, X-Y]), [1,2,3],[a,b,c], R).
R = [1-a, 2-b, 3-c].

pac:  ?-

Anyway I have to write user manual for predutils  package.

BTW, the above query  "?- module(pac)."  is not necessary on my 
local non_package version,  but as for installed package,   
without changing module,  the above three pac queries 
do not work, with "undefined val/2", for example.
Maybe I am missing something related module behaviours in packaging
of SWI-Prolog.   I am new to packaging, and it is not easy task for me,
though I am enjoying a little also.

I am looking forward to exploring into your regex package soon.

Thank you for introducing packaging to me.


Kuniaki Mukai

On Sep 27, 2014, at 4:15, Michael Hendricks <[email protected]> wrote:

> On Sep 26, 2014 10:42 AM, "Kuniaki Mukai" <[email protected]> wrote:
>> I have uploaded PAC library at
>> 
>>  http://web.sfc.keio.ac.jp/~mukai/pac-lite.zip
> 
> This sounds very useful. It would be great if you could bundle this up as a
> package as described at http://swi-prolog.org/howto/Pack.html
> 
> That would allow others to run pack_install(pac) at the top level to
> install and reuse the code locally.
> 
> Cheers.
> 
> Michael
> -------------- next part --------------
> HTML attachment scrubbed and removed
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.iai.uni-bonn.de/pipermail/swi-prolog/attachments/20140930/dbc54227/signature.asc>