fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.6K
active users

#nonterminal

0 posts0 participants0 posts today
Ed Howland<p>With <a href="https://fosstodon.org/tags/EBNF" class="mention hashtag" rel="tag">#<span>EBNF</span></a> , we have no need of Epsilon here. The <a href="https://fosstodon.org/tags/nonterminal" class="mention hashtag" rel="tag">#<span>nonterminal</span></a> followed by the <br />&#39;*&#39; operator simply means 0 or more of the preceding thing, here: The ElIfClause.<br />And for completeness: (else Statements)? means 0 or 1 of the preceding group making them optional.<br />Many times when trying to model your language syntax in <a href="https://fosstodon.org/tags/BNF" class="mention hashtag" rel="tag">#<span>BNF</span></a>, you are forced<br />to break out a new NonTerminal, and to supply a alternate Epsilon.<br />Often, you can avoid this with grouping and &#39;*&#39;, &#39;+&#39; or &#39;?&#39;.<br />Where is E used in <a href="https://fosstodon.org/tags/EBNF" class="mention hashtag" rel="tag">#<span>EBNF</span></a></p>