Question: Construct an extended BNF grammar for floating - point numbers with the following features: ( i ) floating - point - number longrightarrowf - sign
Construct an extended BNF grammar for floatingpoint numbers with the following
features:
i floatingpointnumber longrightarrowfsign fracpart esign exponent
iisign is optional ie it can be omitted for positive values
iii fracpart longrightarrowx.
iv is a nonempty digit string ie is invalid
v is a nonempty digit string ie is invalid
vi and have lengths no more than
vii esign is optional ie can be omitted for positive values
viii exponent has length
ix esign exponent is optional ie is valid
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
