Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Self Doubt
iamdeepakji
asked
in
Compiler Design
Oct 10, 2018
retagged
Jun 18, 2022
by
Lakshman Bhaiya
297
views
0
votes
0
votes
What is actual difference between in LALR(1) and CLR(1).
please explain this by taking one example.
compiler-design
parsing
lr-parser
iamdeepakji
asked
in
Compiler Design
Oct 10, 2018
retagged
Jun 18, 2022
by
Lakshman Bhaiya
by
iamdeepakji
297
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
0
votes
No. of states in CLR(1) is greater than or equal to LALR(1) parser.
If grammar is CLR(1), it may or may not be LALR(1), because conflict may arise when you will merge the states for constructing LALR(1) table.
If grammar is not CLR(1), it will not be LALR(1), because already conflict happened in CLR(1) so the conflict will always present in LALR(1).
If there is no SR conflict in CLR(1), there will be no SR conflict in LALR(1).
If there is no RR conflict in CLR(1), we can't say about RR conflict in LALR(1) because there is a chance that when we merge the states, RR conflict may arise.
abhishek tiwary
answered
Oct 21, 2020
by
abhishek tiwary
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
2
answers
1
Raj Kumar 7
asked
in
Compiler Design
Dec 30, 2018
393
views
self doubt
S → aA / CB A → BaA / epsilon B → bB / Abc / epsilon C → B what is follow of C , FOLLOW(C)? I think answer is FOLLOW (C) = First(B) = { b, first (A), (dollar for epsilon) } = {b, a, $} Am i right? Because i found some where FOLLOW(C) = FOLLOW(B) . Is this statement correct? (But I think this is wrong) PLZ confirm the solution of above doubt………………..!!!!!!!!!!!
Raj Kumar 7
asked
in
Compiler Design
Dec 30, 2018
by
Raj Kumar 7
393
views
compiler-design
parsing
lr-parser
0
votes
0
votes
1
answer
2
manisha11
asked
in
Compiler Design
Oct 21, 2018
416
views
Compiler self doubt
Can we comment/compare the number of GOTO moves in LALR and CLR CLR and SLR?
manisha11
asked
in
Compiler Design
Oct 21, 2018
by
manisha11
416
views
compiler-design
parsing
lr-parser
0
votes
0
votes
2
answers
3
eyeamgj
asked
in
Compiler Design
May 16, 2018
298
views
SELF DOUBT
it is confirmed that every LL(1) is LR(1) i.e CLR(1),but i want to know that is every LL(1) grammar is also LALR????? becz LALR is subset of CLR(1).
eyeamgj
asked
in
Compiler Design
May 16, 2018
by
eyeamgj
298
views
compiler-design
parsing
lr-parser
ll-parser
0
votes
0
votes
1
answer
4
shivanisrivarshini
asked
in
Compiler Design
Mar 10, 2018
558
views
self doubt
Can we have a grammar $G$ which is $LL(1)$ but not $SLR(1)$ ,If so given example grammar
shivanisrivarshini
asked
in
Compiler Design
Mar 10, 2018
by
shivanisrivarshini
558
views
compiler-design
parsing
ll-parser
lr-parser
descriptive
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy