Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Expression evaluator
#51
That's what I do, only that I call recursively using the RPN approach instead of doing it iteratively. I think recursively:

A. I think.
B. I think that I think.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#52
aga: It seems like a waste of time to have RPN, but its really not. Once you get the rpn bit working, coding is so much easier. But thats just my opinion.

nathan: Coolness, i never realised. Ill prolly look at your code alot closer heh.
Reply
#53
Of course it's easier. You basically already got the solution!
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#54
exactly Smile. I was making a rpn compiler once lol. it was very minimalistic and nearly finished in 2 days heh.
Reply
#55
i once tried to make such an rpn compiler because the programmer formerly known as cgi joe told me about it, but i never quite got the hang of it. i couldnt understand how you interpret and unfold everything.

instead, also in two days, i made a much more complex-sounding work-around that solved simple strings within parenthesis, and continually replaced the parenthesis in a loop until there were none left.

do you have that program? i'd like to study the source. c'mon, i'll be your friieeend.

...

nuts.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#56
I warn you, its in PASCAL Smile.

Also toonski can i add you to my msn/icq list or something? thnx..
Reply
#57
AIM jofers.

got nothing else right now Sad

and dont worry - pascal aint got nothin on me. delphi? well, you aint been tellin' me 'bout no delphi, but pascal, man, bring it on!
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#58
ok. Heh could you add me to your aim list (trillian is being evil i cant find you). My username is darknessdoshoar (i just signed up for it then heh cant remember my old account).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)