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
CLR1 , LALR1
Parshu gate
asked
in
Compiler Design
Nov 27, 2017
602
views
0
votes
0
votes
Consider the below given grammar:
A→AA+
A→a
The number of states in CLR(1) canonical item set are _______ and number of inadequate states in LALR(1) canonical item set is/are _______ respectively.
compiler-design
lalr
clr
Parshu gate
asked
in
Compiler Design
Nov 27, 2017
by
Parshu gate
602
views
answer
comment
Follow
share this
share
3 Comments
by
Akash Mittal
commented
Nov 27, 2017
reply
Follow
share this
8 states and 2 inadequate in LALR?
0
0
by
Parshu gate
commented
Nov 27, 2017
reply
Follow
share this
Yes. Can you please provide the diagram
0
0
by
sandygate
commented
Nov 21, 2018
edited
Nov 21, 2018
by
sandygate
reply
Follow
share this
can anyone explain this question i am getting only 6 states
edited:
got it now.....did a silly mistake.....
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
Parshu gate
asked
in
Compiler Design
Dec 10, 2017
873
views
Lalr1 parsing
Consider the below given grammar: S→(A S→B] S→C) A→B) A→C] B→D C→D D→ϵ The number of states in LALR(1) canonical item set are _______ and number of inadequate states (if any) in LALR(1) canonical item set is/are ____________respectively.
Parshu gate
asked
in
Compiler Design
Dec 10, 2017
by
Parshu gate
873
views
compiler-design
lalr
clr
parsing
lr-parser
0
votes
0
votes
1
answer
2
GateAspirant999
asked
in
Compiler Design
Dec 10, 2016
596
views
Is this grammar LL1, LR0, SLR1, LALR1, CLR1?
$S\rightarrow (x$ $\text{ }| E]$ $\text{ }| F)$ $X\rightarrow E)$ $\text{ }| F]$ $E\rightarrow A$ $F\rightarrow A$ $A\rightarrow \lambda$
GateAspirant999
asked
in
Compiler Design
Dec 10, 2016
by
GateAspirant999
596
views
compiler-design
parsing
ll-parser
lr-parser
descriptive
0
votes
0
votes
0
answers
3
Ayanava Dutta
asked
in
Compiler Design
Mar 17
66
views
BARC 2024 CSE
Number of nodes in the DAG(Directed Acyclic Graph) representing (a+b)+c+(a+b)
Ayanava Dutta
asked
in
Compiler Design
Mar 17
by
Ayanava Dutta
66
views
normal
directed-acyclic-graph
compiler-design
1
vote
1
vote
2
answers
4
Arjun
asked
in
Compiler Design
Feb 16
2,031
views
GATE CSE 2024 | Set 2 | Question: 11
Consider the following two sets: Set $\text{X}$ Set $\text{Y}$ P. Lexical Analyzer 1. Abstract Syntax Tree Q. Syntax Analyzer 2. Token R. Intermediate Code Generator 3. Parse Tree S. Code Optimizer 4. Constant Folding Which one of the following options is the CORRECT match ... $\mathrm{P}-4 ; \mathrm{Q}-3 ; \mathrm{R}-2 ; \mathrm{S}-1$
Arjun
asked
in
Compiler Design
Feb 16
by
Arjun
2.0k
views
gatecse2024-set2
compiler-design
compilation-phases
match-the-following
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