Code Comments
Programming Forum and web based access to our favorite programming groups.Hi!
I have problem how to write swi-prolog program which count aritmetic
value. I have to use DCG. This program should add, subtract, multiply
and see brackets.
E.g.
?- arytm(['(',1,'-',4,')','*',9], W).
W = -27
Yes
Thx for help!
Post Follow-up to this messageOn Tue, 1 Apr 2008 17:12:07 -0700 (PDT), szwejk <szwejkc@gmail.com>
wrote:
>Hi!
>
>I have problem how to write swi-prolog program which count aritmetic
>value. I have to use DCG. This program should add, subtract, multiply
>and see brackets.
>
>E.g.
>
>?- arytm(['(',1,'-',4,')','*',9], W).
>W = -27
>Yes
>
>Thx for help!
Means, we should write program for you?...
A.L.
Post Follow-up to this messageOn 2 Kwi, 02:45, A.L. <alewa...@zanoza.com> wrote: > On Tue, 1 Apr 2008 17:12:07 -0700 (PDT), szwejk <szwe...@gmail.com> > wrote: > > > > > > > Means, we should write program for you?... > I'd be very glad, but if You show me only how to start I'll be thankful. szwejk
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.