Syntax Analysis25

0. Consider the grammar shown below
S → i E t S S'|α
S' → eS | ε
E → b
In the predictive parse table M, of this grammar, the entries M[S', e] and M[S', $] respectively are

  • Option : A
  • Explanation :
    S → iE tSS1\a
      S' ⇒ eS|a
      E → b
    This is left factor grammar
    Thus we may expand S to ibtSS' on input i and wait untill ibtS has been seen to decide whether to expand S' → eS|∈
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 *