Consider the following grammar:
E → E+T | T
T → T*F | F
F → (E) | id
Draw a SLR state transition diagram for the above grammar. Also draw the SLR table.
STATE TRANSITION DIAGRAM:
FOLLOW(E)=FOLLOW(E')={),$}
FOLLOW(T)=FOLLOW(T')={+,),$}
FOLLOW(F)={*,+,),$}
SLR PARSING TABLE:
What is activation record? Explain clearly the components of an activation record.
What is SRS? Write the features of SRS.
Write a C program to print pattern below:
*
* *
* * *
* * * *
Write a C program to check a number is even or odd.