07-12-2003, 06:48 PM
Quote:Nobody is going to implement and test about 700 lines of code to do it the conventional way. That's too much work.
Of course it is. That's why I implemented this simple evaluator which takes numeric literals and *, /, + and - operations in just 30 lines:
Code:
This was somewhat wrong
EDIT: Check a later post for OK code
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