Git Product home page Git Product logo

compiler-design-ktu-lab-s7's Introduction

Compiler-Design-Ktu-lab-S7

Program List

Curriculum

Syllabus

Teaching scheme: 3 hours practical per week List of Exercises/Experiments :

  1. Design and implement a lexical analyzer for given language using C and the lexical analyzer should ignore redundant spaces, tabs and new lines.
  2. Implementation of Lexical Analyzer using Lex Tool
  3. Generate YACC specification for a few syntactic categories. a) Program to recognize a valid arithmetic expression that uses operator +, – , * and /. b) Program to recognize a valid variable which starts with a letter followed by any number of letters or digits. c) Implementation of Calculator using LEX and YACC d) Convert the BNF rules into YACC form and write code to generate abstract syntax tree
  4. Write program to find ε – closure of all states of any given NFA with ε transition.
  5. Write program to convert NFA with ε transition to NFA without ε transition.
  6. Write program to convert NFA to DFA
  7. Write program to minimize any given DFA.
  8. Develop an operator precedence parser for a given language.
  9. Write program to find Simulate First and Follow of any given grammar.
  10. Construct a recursive descent parser for an expression.
  11. Construct a Shift Reduce Parser for a given language.
  12. Write a program to perform loop unrolling.
  13. Write a program to perform constant propagation.
  14. Implement Intermediate code generation for simple expressions.
  15. Implement the back end of the compiler which takes the three address code and produces the 8086 assembly language instructions that can be assembled and run using an 8086 assembler. The target assembly instructions can be simple move, add, sub, jump etc.

compiler-design-ktu-lab-s7's People

Contributors

nishachalingal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.