Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,211 of 2,753    |
|    Jens Kallup to All    |
|    interpreter: how is it possible to inter    |
|    15 May 13 07:42:19    |
      From: jkallup@web.de              Hello,              like the topic says:              a give construct should be interpret through a single pass???:              IF 2 == 3        print "not print"               IF 2 == 3        print "not"        ELSE        print "wrong1"        ENDIF               print "3"              ELSE               print "this"              ENDIF                     Thanks for helping       Jens       [My usual advice is to translate the source to something easy to       interpret like an AST, then run your interpreter on that. Trying       to jump around in the source code and remember when to parse what       and to avoid side effects when parsing through code you're supposed       to skip is miserable. -John]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca