07-23-2003, 03:04 PM
Quote:[...]the top of your stack is now the answer. However, the only trouble is converting from infix to postfix (RPN) notation. Im still trying to figure out myself how i should be going about how to do this.
My expression evaluator works this way. If you take a glance at it (and add a PRINT at the top with the received data) you'll notice that it parses the string and extract members to make recursive calls using RPN. The prob comes with 2 * -3 'cause I made a mistake in the parser, but it can be easily solved.
I sum: My expression evaluator works in RPN translating an infix string at the same time.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i