Question: We want to describe Javastyle class declarations same as the following examples: class Car extends Vehicle public class JavaIsCrazy implements Factory, Builder, Listener public final
We want to describe Javastyle class declarations same as the following examples: class Car extends Vehicle public class JavaIsCrazy implements Factory, Builder, Listener public final class President extends Person implements Official For this we have the following grammar: 
Q.Compute Nullable values for all Non-terminals and all production rules. You submit the Nullable calculation rules for all. You submit the final results. You dont need to submit the iterative table which is used for calculation. To refer to productions you use production numbers mentioned above. The following is an example:
Instead of Nullable(extends identifier) you use Nullable(6).
The Nullable() rules are provided here for your convenience:

(1) C P F class identifier X Y (2) P public (3) P (4) F-final (5) F (6) X-extends identifier (8) Y implements I (9) Y (10) I->identifier J (12) J (1) C P F class identifier X Y (2) P public (3) P (4) F-final (5) F (6) X-extends identifier (8) Y implements I (9) Y (10) I->identifier J (12) J
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
