Connecting Tech Pros Worldwide Forums | Help | Site Map

Boolean expression evaluation routine required

Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
: Apr 9 '07
Hi all.

We have a thread Need Boolean Expression Evaluation Routine - Reward in the VB forum which may interest the wider development community.

Please have a look.

The upshot is that RailGunner wants a routine to evaluate complex boolean expressions passed to it (presumably as a string). Some flavour of BASIC would be preferred, but just about any language would do as a first step - we can probably convert as necessary. It needs to be further converted to a mainframe-based 4GL anyway, so the language is not too important. It's the algoirthm he (or she) needs.

Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#51: Apr 18 '07

re: Boolean expression evaluation routine required


No, I don't; in fact, a few posts ago I mentioned that it would be a difficult task to coerce someone into building this system in a rudimentary language such as BASIC or COBOL for such a low price.

Quote:

Originally Posted by luke14free

and you think that this would be done in basic for just 500$?

Newbie
 
Join Date: Apr 2007
Posts: 20
#52: Apr 19 '07

re: Boolean expression evaluation routine required


Quote:

Originally Posted by luke14free

and you think that this would be done in basic for just 500$? eheh,,,i am not helping railgunner for moneys...but its a quite difficult to do it...i could try to do it in another language such as c python or perl...but in basic is just for people who dont need to reach those levels...correct me if i am wrong, but i think its quite impossible...we should find another solution,isnt it motoba?
however i am valutating the possibility to create a code for hash datas...:)
one question for railgunner: do you sleep an night or you just code?eheh :P

Well, i've managed to write an interpreter than can execute IF/ELSE-IF logic
(minus the parens) in what amounts to COBOL so anythings possible:)

I really didn't expect someone to write the routine from scratch for $500. I was hoping that someone might know where to find an example of such a routine in VB and the reward was for finding it:)

I did actually find the source for a basic interpreter here. The author said he wrote it in a "an hour or two". I hope he's not telling the truth because that would make me feel really dumb.

http://www.sics.se/~adam/ubasic/

I've been looking at it but it's written in C. I guess I could learn C but I was really
hoping I wouldn't have to.
luke14free's Avatar
Member
 
Join Date: Apr 2007
Location: Italy, Milan
Posts: 88
#53: Apr 19 '07

re: Boolean expression evaluation routine required


Quote:

Originally Posted by Railgunner

I've been looking at it but it's written in C. I guess I could learn C but I was really
hoping I wouldn't have to.

So dont learn it...!
i ve found an old basic compiler/compiler written in basic! i am working to get the source code!! and you'll have what you needed!
just wait 2/3 days and i'll give you what you needed
do you prefer all the sources or just the one for the if/else use?
luke14free's Avatar
Member
 
Join Date: Apr 2007
Location: Italy, Milan
Posts: 88
#54: Apr 19 '07

re: Boolean expression evaluation routine required


Never mean what I wrote
you code is here!
thanks to matoma who has gave me the various explainations...the code posted is a complex Tree Function...see my post here for more details...

http://www.thescripts.com/forum/show...76#post2514176
Reply