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
shift reduce
Sourabh Kumar
asked
in
Compiler Design
Jan 14, 2016
retagged
Jul 18, 2022
by
makhdoom ghaya
357
views
0
votes
0
votes
compiler-design
parsing
lr-parser
test-series
Sourabh Kumar
asked
in
Compiler Design
Jan 14, 2016
retagged
Jul 18, 2022
by
makhdoom ghaya
by
Sourabh Kumar
357
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
Input string -> aaa+a*+
1st step ->AAA+a*+
2nd step ->AAa*+
3rd step ->AAA*+
4th step ->AA+
5th step ->A
answer is(c)
please correct , in case of wrong explanation.
Learner_jai
answered
Mar 19, 2017
by
Learner_jai
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
Souvik33
asked
in
Compiler Design
Dec 11, 2022
669
views
Parsing Table | Shift Reduce Parsers | Numerical Answer
Consider the following statements regarding the Parsing Table of a shift reduce parser, for any given grammar No. of states/ size of parse table is same for all Shift-Reduce Parsers. No. of states/ size of parse table in LR(0), SLR(1 ... CORRECT statement is _______ (For example, if statement 1 and 7 are correct, answer would be 1+7, i.e. 8)
Souvik33
asked
in
Compiler Design
Dec 11, 2022
by
Souvik33
669
views
compiler-design
parsing
lr-parser
numerical-answers
difficult
descriptive
0
votes
0
votes
2
answers
2
sripo
asked
in
Compiler Design
Nov 1, 2018
2,305
views
Is the given grammar CLR(1) or not please explain me if there is a shift reduce conflict
S→(X S→E] S→E) X→E) X→E] E→ϵ Is this grammar CLR(1)? The answer says it is but I find a shift reduce conflict for E-> epsilon with lookup symbols ),]
sripo
asked
in
Compiler Design
Nov 1, 2018
by
sripo
2.3k
views
compiler-design
parsing
lr-parser
descriptive
0
votes
0
votes
1
answer
3
sripo
asked
in
Compiler Design
Nov 1, 2018
534
views
Is there shift reduce conflict in this production?
For given production for a LR(1) grammar B->b.C ,$|c here C is non terminal C->c. ,$|c and here c is terminal. $|c are lookup symbols Will there be a shift reduce conflict if a non terminal is visited.Please explain how shift reduce conflict works
sripo
asked
in
Compiler Design
Nov 1, 2018
by
sripo
534
views
compiler-design
parsing
lr-parser
1
vote
1
vote
5
answers
4
Soumyashree
asked
in
Compiler Design
Dec 4, 2015
6,758
views
When LALR(1) is constructed form CLR(1) does not contain any shift reduce conflicts?
Soumyashree
asked
in
Compiler Design
Dec 4, 2015
by
Soumyashree
6.8k
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