Groups | Search | Server Info | Login | Register


Groups > comp.sources.d > #50

Question on ABNF

From Generic Usenet Account <usenet@sta.samsung.com>
Newsgroups comp.theory, comp.programming, alt.comp.programming, comp.sources.d
Subject Question on ABNF
Date 2011-10-25 10:38 -0700
Organization http://groups.google.com
Message-ID <846a6785-9ca1-4378-9131-1fa073169efc@n18g2000vbv.googlegroups.com> (permalink)

Cross-posted to 4 groups.

Show all headers | View raw


Hello,

Are the following ABNF snippets equivalent?  If yes, which one is more
preferable?

Option 1
========
A = B [ ( "&" / "|" ) A ]
B = C / "(" C ")"
C = ...


Option 2
========
A = B * (( "&" / "|" ) B )
B = C / "(" C ")"
C = ...


In my opinion they are equivalent and I prefer Option 2.

Thanks,
Song

Back to comp.sources.d | Previous | Next | Find similar


Thread

Question on ABNF Generic Usenet Account <usenet@sta.samsung.com> - 2011-10-25 10:38 -0700

csiph-web