|
From: | Hans Aberg |
Subject: | Re: EBNF |
Date: | Wed, 8 Mar 2006 11:23:38 +0100 |
On 8 Mar 2006, at 08:43, Akim Demaille wrote:
Well, it is far from being "simply". Can you tell me what is $1 here? And what do you do in the following case? options: ( (opt1 | opt2) (',' (opt1 | opt2))* ) ? The question mark is part of the rule, not of my text body.
One will have to attach local actions within each rule, with their own $k values. Then use the hidden variables to expand into ordinary rules.
Hans Aberg
[Prev in Thread] | Current Thread | [Next in Thread] |