Question: a) Construct a phrase-structure grammar that generates all signed decimal numbers, consisting of a sign, either + or ; a nonnegative integer; and a decimal
b) Give the Backus-Naur form of this grammar.
c) Construct a derivation tree for−31.4 in this grammar.
Step by Step Solution
3.40 Rating (150 Votes )
There are 3 Steps involved in it
a A string such as 34 is not allowed by this definition but a string such as 02 780 is This is prett... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
923-M-C-M-S (2649).docx
120 KBs Word File
