help-bison
[Top][All Lists]
Advanced

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

Re: optional nonterminal symbols


From: Joel E. Denny
Subject: Re: optional nonterminal symbols
Date: Mon, 21 Nov 2005 12:30:06 -0500 (EST)

On Mon, 21 Nov 2005, Arkadius Nowakowski wrote:

tag1: tag1_1 {}
        | tag1_1 tag1_2 {}
;

This makes TAG1_2 optional.

tag1_2: /*empty*/ {}
        | TAG1_2 {}
;

So does this.  Get rid of the empty production.

Joel




reply via email to

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