Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

EBNF or followed by statement

I am looking at this line of EBNF:

<zeg> = <zig>|<zag>[<zug><zug>]

Does [<zug><zug>] only become available when <zag> is used, or is it always available, even with <zig>?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The | would be the most-loosely bound thing. In other words:

<zeg> is equivalent to <zig> | (<zag>[<zug><zug>])

and NOT equivalent to (<zig> | <zag>)[<zug><zug>].

So your first interpretation.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading