Compiler Design
Lexical Analysis
Marks 1Marks 2
Syntax Directed Translation
Marks 1Marks 2
Code Generation and Optimization
Marks 1Marks 2
1
GATE CSE 1988
Subjective
+5
-0

Consider the following grammar:

$$\eqalign{ & S \to S \cr & S \to SS\,|\,a\,|\,\varepsilon \cr} $$

(a) Construct the collection of sets of LR(0) items for this grammar and draw its go to graph.

(b) Indicate the shift-reduce and reduce-reduce conflict (if any) in the various state of the LR(0) parser.

Questions Asked from Marks 5
GATE CSE Subjects
Theory of Computation
Operating Systems
Algorithms
Digital Logic
Database Management System
Data Structures
Computer Networks
Software Engineering
Compiler Design
Web Technologies
General Aptitude
Discrete Mathematics
Programming Languages
Computer Organization