[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional execution rules
From: |
Hans Aberg |
Subject: |
Re: Conditional execution rules |
Date: |
Mon, 6 Aug 2001 22:22:13 +0200 |
At 03:15 +1000 2001/08/07, James Buchanan wrote:
>No, the grammar part is fairly much OK. What I really meant was how to
>translate it into something useful, like how the action code emits labels or
>whatever so the flow of control can go to an else-if part if the if part
>evaluated false and so on.
Then you need to build a "closure", that is, a snippet of code that later
can execute the "if" clause. The same applies to loops, as Bison is wholly
deterministic, and never backtracks.
Hans Aberg