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
LR(1) parser and LR(1) items
shraddha priya
asked
in
Compiler Design
Jan 16, 2018
345
views
1
vote
1
vote
E-> E + T |T
T-> T*F|F
T->(E) | T-F
F->id
If LR(1) parser is used to construct the DFA using the above productions, then how many look-a-heads are present for an item T → .T * F in the initial state ________.
shraddha priya
asked
in
Compiler Design
Jan 16, 2018
by
shraddha priya
345
views
answer
comment
Follow
share this
share
4 Comments
by
shraddha priya
commented
Jan 17, 2018
reply
Follow
share this
Could anyone please help...I am facing problem in finding the lookaheads.
0
0
by
Shubhgupta
commented
Jan 17, 2018
reply
Follow
share this
it should be {-,$}.
0
0
by
shraddha priya
commented
Jan 18, 2018
reply
Follow
share this
{*,+,-,$} is the answer given. Help.
0
0
by
Anu007
commented
Jan 18, 2018
reply
Follow
share this
CAN you show how you draw 1st state then it will be possible , or show work how you get look ahed,
answer is {*,+,-,$}
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
0
Answers
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
1
answer
1
Don't you worry
asked
in
Compiler Design
Jun 4, 2016
494
views
How many SR confilcts are we going to consider in this Cnonical collection of LR(0) items ?
I m confused between 2 and 4 .Please explain Why ?
Don't you worry
asked
in
Compiler Design
Jun 4, 2016
by
Don't you worry
494
views
compiler-design
parsing
lr-parser
testbook-test-series
2
votes
2
votes
4
answers
2
Prashant Gupta
asked
in
Compiler Design
Sep 8, 2014
5,049
views
Among LR(0), SLR(1) and LALR(1) which parser is going to detect error faster and why??
Among LR(0), SLR(1) and LALR(1) which parser is going to detect error faster and why??
Prashant Gupta
asked
in
Compiler Design
Sep 8, 2014
by
Prashant Gupta
5.0k
views
compiler-design
parsing
lr-parser
2
votes
2
votes
1
answer
3
Akriti sood
asked
in
Compiler Design
Dec 10, 2016
4,286
views
can LR(1) parser parse any context free grammar/language ??
can LR(1) parser parse any context-free grammar/language ?? and hence every regular language can be parsed by LR(1) parsers.
Akriti sood
asked
in
Compiler Design
Dec 10, 2016
by
Akriti sood
4.3k
views
compiler-design
parsing
1
vote
1
vote
0
answers
4
indrajeet
asked
in
Compiler Design
Dec 2, 2016
630
views
LR(1) parser
Consider the following two statements: P: Every regular grammar is LL(1) Q: Every regular set has a LR(1) grammar Which of the following is TRUE? Both P and Q are true P is true and Q is false P is false and Q is true Both P and Q are false
indrajeet
asked
in
Compiler Design
Dec 2, 2016
by
indrajeet
630
views
compiler-design
parsing
regular-language
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