Awesome q2a theme
0 votes
23 views
How many states are there in LR(0) parsing of the following grammar

$E→ E+T / T$

$T→ T*F  / F$

$F→ (E)/id$
in Compiler Design by (699 points) | 23 views
+1

you can use this to save time while cross checking http://jsmachines.sourceforge.net/machines/slr.html

1 Answer

+1 vote
Best answer

Grammar is not LR(0) but LR(0) automaton has 12 states.

by (916 points)
selected by
0
Thanks a lot.. :)
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
Top Users 2020 Aug 10 - 16
  1. jayeshasawa001

    11 Points

  2. Arkaprava

    6 Points

  3. 404 found

    3 Points

  4. shashankrustagi2021

    2 Points

  5. Mellophi

    2 Points

  6. siddharths067

    1 Points

  7. sparshgarg

    1 Points

  8. sonam13

    1 Points

Weekly Top User (excluding moderators) will get free access to GATE Overflow Test Series for GATE 2021
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Aug 2020
  1. Mellophi

    152 Points

  2. Ashutosh777

    76 Points

  3. anurag sharma

    48 Points

  4. jayeshasawa001

    16 Points

  5. Kushagra गुप्ता

    15 Points

  6. Shaik Masthan

    13 Points

  7. srestha

    13 Points

  8. shashankrustagi2021

    12 Points

  9. munishchaturvedi

    10 Points

  10. arjun12

    10 Points

7,743 questions
1,841 answers
11,186 comments
95,103 users