parsing if .. then and integer expressions
Posted on 2004-04-28
After many years of asp web programming i've decided to make a pascal script for development in the future, working on both delphi and web development makes you feel like using stoneage axes to break eggs when you begin asp programming after a long Delphi session.
I found one project (DWS delphi web script) available but 900kb source code was frightening, and i want something to be able to modify and tweak with, add plugins etc. so now have finally gotten around the creating of an isapi dll and making it available to IIS.
Does anyone know algorithims for parsing if <stament> then <something> and the i := ((((j+2)/(3+i))*3)/2)+2 situation
if statments like (((a=b) and (b>c)) and (c<d)) or (f=3) i guess this has to be done with recursive algorithm, currently i've managed simple if statments but havent really much clue about how to do this recursivly.