Question: 2 . ( 1 5 pt ) Consider a language containing integers, floats and ranges ( digit is any decimal digit 0 . . 9

2.(15pt) Consider a language containing integers, floats and ranges (digit is any decimal digit 0..9);
there are four token types:
- integer : digit digit
- float: digit
(digit .+. digit)digit
- int-range: integer..integer
- float-range: float..float
Construct:
(a)(10pt) a DFA and
(b)(5pt) a scanner table(15pt) Consider a language containing integers, floats and ranges (digit is any decimal digit 0..9);
there are four token types:
integer: digit digit ?*
float: digit digit.+. digit) digit ?*
int-range: integer .. integer
float-range: float. . float
Construct:
(a)(10pt) a DFA and
(b)(5pt) a scanner table
2 . ( 1 5 pt ) Consider a language containing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!