Home > Uncategorized > Specifying how to specify a BNF-like grammar in a BNF-like grammar

Specifying how to specify a BNF-like grammar in a BNF-like grammar

I love this bit of the XML specification, the part where in definitions 47-50, it states how to use * to mean “the preceding can appear zero or more times” and + to mean “the preceding can appear one or more times” and ? to mean “the preceding is optional” and | to mean “either of these may appear”, but it does this using those very same symbols, with the same meanings.

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. October 1, 2011 at 4:28 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: