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
samarpita
asked
in
Compiler Design
Nov 18, 2021
1,255
views
1
vote
1
vote
Every unambiguous grammar is LR(0) grammar?
compiler-design
lr-parser
samarpita
asked
in
Compiler Design
Nov 18, 2021
by
samarpita
1.3k
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.
4
Answers
2
votes
2
votes
No, Every unambiguous grammar need not be LR(0) grammar. But the converse is true means every LR(0) grammar is unambiguous.LR(0) grammar is a proper subset of SLR(1) grammar and both are unambiguous grammar only. So we can conclude there exist some unambiguous grammar which are SLR(1) but not LR(0).
raja11sep
answered
Nov 18, 2021
by
raja11sep
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
1
vote
1
vote
Hope this clarify the things :)
anupam_12
answered
Feb 3, 2022
by
anupam_12
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
0
votes
0
votes
No, this is not true. As, all LR(1) grammars are unambiguous, and some LR(1) grammars are not LR(0) , so this implies that some unambiguous LR(1) grammars are not LR(0).
Ankita87077
answered
Nov 18, 2021
by
Ankita87077
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
0
votes
0
votes
@samarpita
No, this is not true...
LR parsing is not a useful technique for human languages with ambiguous grammars that depend on the interplay of words...
Human languages are better handled by ...
1.
https://gatecse.in/lr-parsing-part-2-language-of-ll-and-lr-grammars
2.
https://gateoverflow.in/91352/Can-lr-1-parser-parse-any-context-free-grammar-language
3.
https://gateoverflow.in/105785/Ll-k-grammars
4.
https://web.stanford.edu/class/archive/cs/cs143/cs143.1128/handouts/090%20Top-Down%20Parsing.pdf
5.
https://en.wikipedia.org/wiki/LR_parser
Awe111
answered
Nov 18, 2021
by
Awe111
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
1
answer
1
aditi19
asked
in
Compiler Design
Mar 25, 2019
1,125
views
Compiler Design LR(1) doubt
Can lookahead symbol be epsilon in LR(1) parsing? and pls give the LR(1) diagram for the following grammar? A->AB | a B->*AC | Cb | ∈ C->+ABc | ∈
aditi19
asked
in
Compiler Design
Mar 25, 2019
by
aditi19
1.1k
views
compiler-design
lr-parser
parsing
0
votes
0
votes
0
answers
2
sushmita
asked
in
Compiler Design
Dec 31, 2018
399
views
compiler conceptual doubt
WHAT IS A VALID ITEM FOR A VIABLE PREFIX? CAM SOMEONE EXPLAIN IN EASY WAY.
sushmita
asked
in
Compiler Design
Dec 31, 2018
by
sushmita
399
views
compiler-design
parsing
lr-parser
0
votes
0
votes
2
answers
3
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
4
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
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