0% found this document useful (0 votes)
24 views

CD Assignment1

The document outlines an assignment for a Compiler Design course. It includes course outcomes, questions on topics like lexical analysis and parsing, and instructions for creating parsing tables and performing shift-reduce parsing on sample grammars.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

CD Assignment1

The document outlines an assignment for a Compiler Design course. It includes course outcomes, questions on topics like lexical analysis and parsing, and instructions for creating parsing tables and performing shift-reduce parsing on sample grammars.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CGC-College of Engineering Landran , Mohali

Department of Computer Science and Engineering

Assignment No.1

Subject and Subject Code: Compiler Design (BTCS 601-18) Semester: 6th CSE
Date of Assignment: 25/01/2024 Date of Submission: 05/02/2024
M. Marks: 10
Course Outcomes

CO1 Build concepts on lexical analysis.

CO2 Understand strategies of syntax analysis

CO3 Learn techniques of Intermediate code generation.

CO4 Understand code design issues and design code generator.

CO5 Design and develop optimized codes.

Bloom’s Taxonomy Levels

L1 – Remembering, L2- Understanding, L3- Applying, L4 – Analyzing, L5- Evaluating, L6- Creating

Questions Relevance Bloom’s


Marks to Level
CO No.

A. Compare Lexeme vs Token? (1) CO1 L2


Q1.
B. With an example define: Regular Expression? (1) CO1 L4
A. Give example of language accepted by : Context Free
Q2. (1) CO1 L1
Grammar
(1) CO3 L5
B. Write a note on error handling and recovery techniques.
Differentiate between Parse tree and Syntax tree with the CO2
(2) L2
Q3. CO3
use of suitable example. L3
How LR(0) parsing is performed on the given below
L3
grammar, create its parsing table and explain in detail. CO2
Q4. (2) L4
E→ T+E/T
L5
T→ id
How shift reduce parsing is performed on given below
grammar, explain in detail. L3
(2) CO2
Q5. S→S+S L4
S → S*S L5
S → id.

Subject Coordinator IQAC Coordinator HOD

You might also like