|
From: | Akim Demaille |
Subject: | Re: EBNF |
Date: | Wed, 8 Mar 2006 08:43:47 +0100 |
sometimes I really feel like writing rules like this: Rule: (A | B) C DWhich would allow A C D or B C D. What is the reason to that such constructsare not possible?Simply because nobody has implemented it. I think some grads at Berkeley made a Bison version with such constructs.
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.
[Prev in Thread] | Current Thread | [Next in Thread] |