Understanding LR(0) Parser: Constructing Parsing Tables

  • Thread starter Thread starter 22990atinesh
  • Start date Start date
  • Tags Tags
    Compiler
Click For Summary

Discussion Overview

The discussion centers around the concept of LR(0) parsers, specifically focusing on how to construct parsing tables for them. Participants express varying levels of familiarity with different types of parsers, including SLR(1), LR(1), and LALR(1), while seeking clarification on LR(0).

Discussion Character

  • Exploratory, Homework-related

Main Points Raised

  • One participant seeks to understand what an LR(0) parser is and how to construct its parsing table.
  • Multiple participants question whether the inquiry is a homework problem, indicating a need for a structured presentation of the question.
  • A participant clarifies that their question is not homework-related but stems from ongoing confusion over the topic.
  • Another participant suggests a Wikipedia article as a potential resource for understanding LR parsers and constructing parsing tables.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the nature of the original question, with some believing it to be homework-related while one participant asserts it is not. The discussion remains unresolved regarding the specifics of constructing LR(0) parsing tables.

Contextual Notes

There are limitations in the discussion regarding the depth of understanding of LR(0) parsers and the assumptions about the level of knowledge required to construct parsing tables.

22990atinesh
Messages
143
Reaction score
1
I've read SLR(1), LR(1) and LALR(1) parser. But what is LR(0) Parser, how can we construct parsing table for LR(0) parser.
 
Technology news on Phys.org
Is this a homework problem?

If so we need it posted with the homework template so we know your level of understanding, the problem statement, what you think is relevant and what you've tried.
 
  • Like
Likes   Reactions: Medicol
jedishrfu said:
Is this a homework problem?

If so we need it posted with the homework template so we know your level of understanding, the problem statement, what you think is relevant and what you've tried.

This is not a home work question. I'd this little confusion from past few months.
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
6
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
Replies
1
Views
3K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
6
Views
3K
  • · Replies 23 ·
Replies
23
Views
3K