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
Please solve my doubt
kallu singh
asked
in
Compiler Design
Sep 5, 2017
edited
Jun 21, 2022
by
Lakshman Bhaiya
660
views
2
votes
2
votes
Q if any Grammar is LL(1) definitely LALR(1) ?
It is true or false
Please ans explain in detail.
compiler-design
parsing
ll-parser
lr-parser
true-false
kallu singh
asked
in
Compiler Design
Sep 5, 2017
edited
Jun 21, 2022
by
Lakshman Bhaiya
by
kallu singh
660
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.
2
Answers
1
vote
1
vote
if any Grammer is LL(1) then it compulsory BUP that means must be CLR(1) , powerful one of BUP definitely satisfy but there is no guarantee of LALR(1).
bcoz BUP is more powerful than TDP.that means atleast most powerful person must satisfy
rajoramanoj
answered
Sep 6, 2017
by
rajoramanoj
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
0
votes
0
votes
False! each LL(1) is CLR(1) but each CLR(1) may or may not be LALR(1). I think there is no relation b/w LL(1) and LALR(1) but LL(1) are proper subet of CLR(1).
Note that, every epsilon free LL(1) grammar is LALR(1).
Manu Thakur
answered
Sep 5, 2017
edited
Sep 5, 2017
by
Manu Thakur
comment
Follow
share this
3 Comments
by
Shubhanshu
commented
Sep 5, 2017
reply
Follow
share this
LALR is a LR parser uses LALR(1) language, and LL are proper subset of LR languages then, it should be true. ryt.
0
0
by
just_bhavana
commented
Sep 6, 2017
reply
Follow
share this
Among the various LR parsers, only CLR(1) is the strongest of all. So every LL(1) grammar is CLR(1). However, only a proper subset of LALR(1) grammars is LL(1).
0
0
by
kallu singh
commented
Sep 6, 2017
reply
Follow
share this
Can you explain explain with example which LL(1) but not LALR(1)
0
0
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
2
votes
2
votes
1
answer
1
arch
asked
in
Compiler Design
Nov 19, 2017
306
views
parser
every LL(k) grammer is also SLR(k) grammer. (true / false)
arch
asked
in
Compiler Design
Nov 19, 2017
by
arch
306
views
compiler-design
parsing
ll-parser
lr-parser
true-false
0
votes
0
votes
2
answers
2
eyeamgj
asked
in
Compiler Design
May 16, 2018
301
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
301
views
compiler-design
parsing
lr-parser
ll-parser
0
votes
0
votes
1
answer
3
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
1
vote
1
vote
1
answer
4
sushmita
asked
in
Compiler Design
Jan 17, 2017
517
views
COMPILERS DOUBT
IS EVERY LL(1) GRAMMAR LALR(1)?? I DONT KNOW WHETHER ITS TRUE OR NOT? CAN SOMEONE EXPLAIN??
sushmita
asked
in
Compiler Design
Jan 17, 2017
by
sushmita
517
views
compiler-design
parsing
ll-parser
lr-parser
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