Syntax Analysis20

0. Consider the following two statements:
P: Every regular grammar is LL (1)
Q: Every regular set has LR (1) grammar
Which of the following is TRUE?

  • Option : C
  • Explanation :
    Regular grammar may be ambigous and ambigous grammar is never LL(1).
    Every regular set has a unambigous regular grammar so they are LL(1) and every LL(1) is LR(1)
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *