Solution Found!
Use BNF notation to define the set of decimal numbers, which consist of an optional sign
Chapter 3, Problem 62(choose chapter or problem)
Use BNF notation to define the set of decimal numbers, which consist of an optional sign (+ or -), followed by one or more digits, followed by a decimal point, followed by zero or more digits.
Questions & Answers
QUESTION:
Use BNF notation to define the set of decimal numbers, which consist of an optional sign (+ or -), followed by one or more digits, followed by a decimal point, followed by zero or more digits.
ANSWER:Step 1 of 2
A symbolic notation for describing sets of strings that are recursively defined is called Backus–Naur form, or BNF. In BNF notation, items that are defined in terms of other items are enclosed in angle brackets, while specific items that are not further broken down do not appear in brackets. The vertical line | denotes a choice, that is the “or” condition.