in Compiler Design edited by
1,312 views
1 vote
1 vote

Consider the following Translation rules for the Grammar G :

What will be the output for input string abebebe for bottom up parser ?

  1. CBBPBPBP
  2. CBBBPPBB
  3. CBPBPBPB
  4. CBPBBPPB
in Compiler Design edited by
by
1.3k views

4 Comments

 had it be top down or bottom up, print when you encounter any semantic action

1
1
Its private . Can you please make available? @Mk Utkarsh
0
0
I think

Option C is correct according to TOP DOWN parser.

Is it BPBPBPBC in BOTTOM UP parser??

Please check and explain

Thanks.
0
0

1 Answer

1 vote
1 vote
None ...no option are matching ...either question should mention ...top down parser

1 comment

Option ‘C’ is definitely correct. And yes, here even top-down will produce the same answer.
0
0