CD Lab Manual

https://drive.google.com/file/d/1oxuPQWIQ4IBvrRU8VJKiEd8ttIrB8DJ3/view?usp=sharing



This laboratory manual is for the Compiler Design course offered by the Department of Information Technology at Sri Indu College of Engineering & Technology for the 2025-26 academic yearCourse Objectives and Outcomes
  • Objectives: The course aims to help students understand the various phases of compiler design, top-down and bottom-up parsing techniques, and syntax-directed translation schemes. Students are also introduced to lex and yacc tools.
  • Outcomes: Upon completion, students should be able to design and implement compilers, develop scanners and parsers using lex and yacc, and implement LL and LR parsers.
Laboratory Guidelines

The manual emphasises general laboratory instructions, including:
  • Strict adherence to timings and dress code.
  • Preparation of laboratory observation notes before the session.
  • Maintaining discipline and proper utilisation of equipment.
  • Turning off mobile phones and shutting down systems properly after tasks.
List of Experiments

The curriculum comprises 11 experiments focusing on practical implementation:
  • Lexical Analysis: Simulating Deterministic Finite Automata (DFA) and dividing input programs into lexemes.
  • Parsing Algorithms: Implementing Predictive Parsing, SLR(1) Parsing, and LALR bottom-up parsing.
  • Code Generation: Generating three-address code.
  • Grammar Manipulation: Removing left recursion from a given grammar.
Each experiment includes the aim, source code, output, and viva questions.



Comments