In the one variation, you let your parser to write say some C-code,
which is then compiled, the resulting program executing the loop. In
the other, you write a class "loop" which can hold a sequence of
commands, and then write a function "evaluate()", which can execute
the commands after a "loop" object has been built.
On 19 Jun 2006, at 21:17, temp14 wrote:
Can you show me some examples??
[If you reply, make sure to cc the Help-Bison list.]
There is a section in the Bison manual, "Implementing Gotos/Loops".
You must build a "closure", that can execute the loop after the
parsing has been done, either by outputting some code in a language
that can execute it, or write it directly into the memory.
On 19 Jun 2006, at 01:54, temp14 wrote:
How i can do loop?
I have:
loop: REPEAT statement UNTIL condiction ';'
Can someone write me action for this?
Tenx
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison