help-bison
[Top][All Lists]
Advanced

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

Re: EBNF


From: Hans Aberg
Subject: Re: EBNF
Date: Wed, 8 Mar 2006 20:55:37 +0100

I will post an outline of a proposal of EBNF for Bison to the Bug- Bison list, where Bison development issues are better discussed.

On 8 Mar 2006, at 08:43, Akim Demaille wrote:

sometimes I really feel like writing rules like this:

Rule: (A | B) C D

Which would allow A C D or B C D. What is the reason to that such constructs
are 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.






reply via email to

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