Re: [CS3304_1381] EBNF mistake?

New Message Reply About this list Date view Thread view Subject view Author view

Patrick Raphael (praphael@VT.EDU)
Sun, 23 Apr 2000 22:36:49 +0000


Message-ID:  <39037B01.61310AF8@vt.edu>
Date:         Sun, 23 Apr 2000 22:36:49 +0000
From: Patrick Raphael <praphael@VT.EDU>
Subject:      Re: [CS3304_1381] EBNF mistake?

No, the EBNF is accurate. Expressions in brakcets mean '0 or more of'
You could have it as 'term { (+/-) expression }' but that only makes the
grammar harder to parse.

Sean Cooper wrote:
>
> Is it just me or is the EBNF not 100% accurate?
>
> expression -> term { ( + / - ) term}
>
> shouldn't it be
> expression -> term { (+/-) expression}
>
> because if you follow the given definition 1+1+1 doesn't work... and 1-1-1
> doesn't work...
>
> -Sean
> secooper@vt.edu


New Message Reply About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Sun Apr 23 2000 - 13:15:17 EDT