|Compilers construction tools questions email@example.com (Salvador Valerio Cavadini) (1998-06-24)|
|Re: Compilers construction tools questions firstname.lastname@example.org (1998-06-24)|
|From:||email@example.com (Bob Collins)|
|Date:||24 Jun 1998 10:56:40 -0400|
|Organization:||College of William & Mary|
"Salvador Valerio Cavadini" <firstname.lastname@example.org> wrote:
> 3- I downloaded the Ada grammar from comp.compilers file repository.
> This grammar uses a notation that I didn't see before.
> NT : /* empty */
> | ..NT.. NT
> What means the two point ("..") before and after NT? The grammar
> documentation sais that is a "Yacckeable" version of EBNF. It is? The
> original Yacc accept EBNF? I compiled the grammar with diferent Yacc
> versions, most returned an error, others (included original Yacc)
> compiles but I noted that they not "understand" ..NT.. like EBNF.
An entry like
NT1 : ..NT2.. NT3;
means zero or more instances of NT2.
An entry (with three dots) like
NT1 : NT2 ...NT3..;
means zero or more instances of
Bob Collins <mailto:email@example.com> <http://ratbert.cs.wm.edu>
[Why did they invent yet another EBNF? -John]
Return to the
Search the comp.compilers archives again.