SET-1V
(b) Compare and construct pass with phase with an example.
2. (a) Explain the Regular definitions for the language.
(b) What are lexical error? explain the error-recovery action in the lexical errors.
3. (a) Discuss general strategies for the parser can employ from his syntactic error.
(b) Find the FIRST() and FOLOW() for the grammar and also construct LL(1) parsing table:
S--> L=R | R
L-->*R | id
R--> L
4. (a). Compute LR(0) items for the folowing grammar:
S-->AB
A-->a | E(it is epsilon)
B-->b | E( it is epsilon)
(b) Differentiate between LR parser and LL parser.
No comments:
Post a Comment