I am really really new in AI as well as programming. Its seems to be
very helpful forum!
I am just wondering whether any one worked on PSP (Prolog server page),
very interesting tool to give prolog a graphical interface.
I need help in terms of PSP configuration as well your valuable ideas to
roll the ball. Perhaps some examples will help!!
On the other hand, I am trying to run an example from XPCE user manual
in SWI prolog but I can not get expected result. May be I dont know how
to compile and run XPCE sample in SWI prolog.
Below is the code for program I am trying to implement in XPCE
new(Dialog, dialog(‘Define employee’)),
[ new(N1, text_item(first_name)),
new(S, new(S, menu(sex))),
new(A, int_item(age, low := 18, high := 65)),
new(D, menu(department, cycle)),
button(cancel, message(Dialog, destroy)),
send_list(S, append, [male, female]),
send_list(D, append, [research, development, marketing]),
send(Dialog, default_button, enter),
assert_employee(FirstName, FamilyName, Sex, Age, Depth) :-
format(‘Adding \~w \~w \~w, age \~w, working at \~w\~n’,
[ Sex, FirstName, FamilyName, Age, Depth]).
source: User manual of XPCE
could any one please help me by writing steps needs to run this program.
Any help would be greatly appreciated.
Please log in or register to post a reply.
I don’t know PSP, but in SWI-Prolog you can test-it
You just have to create a new file (File/New..)employee.pl, type the
code, compile it (Compile/Compile buffer) and type in the SWI-Prolog