implementing loops
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mark_Andersen
Posted On:   Friday, April 27, 2001 12:28 PM

Hi.

Ok, now I have a parser that recognizes my language, and I have implemented some of the basic functionality in C++. But how is it possible to implement loops, that executes the c++ code associated with the block right after the loop Token? ex.

loop
: LOOP i:INT TIMES block
;

I have not made an AST yet, would that help? if so how is it done there.

-thanks

Re: implementing loops

Posted By:   Ric_Klaren  
Posted On:   Tuesday, May 1, 2001 02:17 AM

If you are trying to implement an interpreter
then you might want to look at the tinybasic
example.
About | Sitemap | Contact