A LEVEL COMPUTING

BNF

Theory

# 3. BNF example 2

Reminder:

Some of the BNF notation include:

< > used to enclose a syntactic item

::= means "is defined by" or "consists of"

| when placed between two items means an OR choice between them

{ } curly brackets means zero or more repetitions of the content.

### Example 2 Defining a digit

So a digit is any number between zero and nine

**Challenge** see
if you can find out one extra fact on this topic that we haven't
already told you

Click on this link: using BNF

Copyright © www.teach-ict.com