Actually, I am refusing to implement all the c features in my c interpreter, I am leaving lots of call stubs to fill in later as I use more advanced features, like subroutine calls and structures or floating point. Thus, my approach makes sense, do the partial parse and leave the interpretation to a sub system routine, which I mostly leave blank. Yet I still get the things I need, while loops, simple integer increment and decrement, automatic use of variables via the symbol table. and line terminations allowing multiple sequence scripts.
No comments:
Post a Comment