172 views

1 Answer

0 votes
0 votes

Here c→ cc will never be terminate this is wrong question. I don’t know how they got the answer.

Related questions

967
views
1 answers
0 votes
Souvik33 asked Jan 1, 2023
967 views
Let G be any grammar with the following productions:X → X+Y | YY→ Y*Z | ZZ → (X)Z → idIf LR(1) parser is used to parse the above grammar, then total how many look-a-heads are present for the item “X→.Y” and “Z →.id” in the initial state?
321
views
1 answers
2 votes
Sadique Ul Malik asked Nov 20, 2017
321 views
S --> aA | CBA --> BaA | ϵB --> bB | Abc | ϵC --> BWhat will be first(B)?
690
views
1 answers
1 votes
vaibhav101 asked Jan 13, 2018
690 views
According to my understanding, we LALR is constructed by reducing LR(1) automaton states. So I think it should be LR(1)However, we construct SLR(1) items from the LR(0) ... ...) is equal to number of states in LALR(...), how can this be?
362
views
1 answers
0 votes