help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loops


From: Hans Aberg
Subject: Re: loops
Date: Mon, 19 Jun 2006 23:09:16 +0200

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


_______________________________________________
address@hidden http://lists.gnu.org/mailman/listinfo/help-bison




_______________________________________________
address@hidden http://lists.gnu.org/mailman/listinfo/help-bison





reply via email to

[Prev in Thread] Current Thread [Next in Thread]