![]() |
interpreter
so i am kind of done with my parser, well still fixing bugs and all, but mostly done.
The next step is to design the interpreter .... so what is it? lol .... i am a little confused, i tried searching for it online, it wasnt much help what exactly are "control statements"? |
What is a Control Statement?
http://www.intap.net/~drw/cpp/cpp04_01.htm |
No offence programmingnoob but if you dont know what a control statement is then maybe you should do some more reading before you make this interpreter. I may be completely wrong and you may have just had one of those mental and google block(terrible things, no matter how you phrase it it never gives you what you want) moments lol.
Good luck. |
Quote:
|
Thats what i thought. Its a difficult to keep up with the jargon. You learn a new word or phrase and another goes right out of your brain never to be seen again.
|
If only brains had virtual memory... :p
|
Quote:
|
Back on topic, what is this interpreter for, I must have missed something?
|
Quote:
i mean i knew what they meant, but as usual, i didnt have enough confidence to rely on my knowledge |
i have grammar rules, tree for each rule and the list of tokens .... is that enough information to interpret stuff?
if it is, then what am i supposed to do if i am not sure wt action needs to be taken for a specific node/subtree like i see the word "var" which probably means variable ... and i see the tree [var [ : y integer]] which probably means declaring y variable as integer ... the problem is i encountered another tree [: z integer] ... note that there is no "var" as the parent..... but aint i supposed to take the same action with this tree as well? also, both y and z have token types as identifiers before evaluating the subtrees discussed above, but what action needs to be taken when my interpreter encounters those trees |
| All times are GMT -5. The time now is 12:44 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC