Recent questions tagged parsing

0 votes
1 answer
601
0 votes
1 answer
603
0 votes
1 answer
604
0 votes
1 answer
605
2 votes
1 answer
608
S->aAb/aBc/bAd/bBeA->gB->gHow many states in slr(1)
2 votes
1 answer
609
If lalr(1) has no conflict then clr(1) never contain any conflictIt is true or falseIf it is false explain
2 votes
2 answers
610
Follow(S) comes as {(, ). $ }So, do we count $ as terminal or not.Could anyone please tell me, $ should be considered as terminal or not ? Although I think, I should not...
0 votes
1 answer
611
3 votes
3 answers
613
Q1. Are all LR(0) grammars LL(1) ...??Please provide an example if not.Q2. Does all parsing methods parses only DCFL ..??PS. Is it true for general case that LR(k) = LL(k...
0 votes
1 answer
615
Can a grammar which is not LL can be SLR?where will you fit LL in sequence below:LR(0) = SLR = LALR = LR * = stands for implies
0 votes
1 answer
616
Can anybody enumerate the similarities and dissimilarities between LL, SLR, LALR and LR parsers.
0 votes
1 answer
617
Which of the following set could result SR conflict in LALR(1)?a) A→ a.b, {b} B→ a. , {a}b) A→ a.a , {a} B→ a. , {b}c) A→ b.a , {b} B→ b.,{a}d) A→ b...
1 votes
2 answers
618
Consider the following grammerS→ bAd /bBeA→aB→aThe above grammer is ________________1) SLR(1)2) LALR(1) but not SLR(1)3) CLR(1) but not LALR(1)d) Not LR(1)
1 votes
3 answers
619
Which of the following could result in Shift-Reduce conflict in LR(0) parser?1){ A→ b.c ,B→b. }2){A→a.b,B→b. }3) {A→∊. , B→.a}4)All of these
0 votes
2 answers
620
S'→SS→A/BA→fAi/nB→fBii/dFor the above augmented grammer , the number of states in LR(1) parser are_______________
3 votes
1 answer
621
give example for LL(*) grammar
11 votes
2 answers
626
Does there exist LL(1) grammar for every Regular Language ? ORFor Every Regular Language there exist atleast one LL(1) Grammar . True /False
5 votes
3 answers
627
Consider the grammar $S \to AaAb \mid BbBa$ $A \to \epsilon$$B \to \epsilon$ This grammar is LL(1)- True or false
4 votes
1 answer
629
Identify the type of the grammar and give justificationS $\rightarrow$ XYcX $\rightarrow$ Yb | aY $\rightarrow$ c | $\epsilon$ SLR(1)Not SLR(1)LR(1)LALR(1)Someone please ...