Giter Club home page Giter Club logo

systemprogrammingandcompilerconstruction-vi-mu-cse's Introduction

SystemProgrammingAndCompilerConstruction-VI-MU-CSE

Codes for Practical experiments of System Programming And Compiler Construction (Semester VI - Computer Engineering - Mumbai University)

Experiment List:

  1. To create your own library using macros
  2. To design lexical analyzer for a language whose grammar is known
  3. To study and the implementation of lex and yacc tool (A)To implement LEX PROGRAMS using Dev-Cpp
  4. To design and implement a program for LL(1) parser
  5. To generate 3-address code as an intermediate code representation 6.(A)Implementation of Code Optimization Techniques (B)Implementation of Target code generation phase of the compiler
  6. Implementations of two pass Macro Processor

Prerequisites

  1. Ensure you have Python 3.x installed on your machine. You can download it from Python's official website.
  2. Ensure you have Flex(fast lexical analyzer generator) installed on your machine at "C:\GnuWin32". You can download it from Flex download link.
  3. Ensure you have Bison(Yacc-compatible parser generator) installed on your machine at "C:\GnuWin32. You can download it from Bison download link.
  4. Ensure you have Dev C++ installed on your machine at "C:\Dev-Cpp". You can download it from DEV C++ Download link.
  5. Open Environment Variables and add "C:\GnuWin32\bin" and "C:\Dev-Cpp\MinGW64\bin" to path. (If the path is different, ensure you add the correct bin path)

Installation

  1. Clone the repository
git clone https://github.com/riddhigupta1110/SystemProgrammingAndCompilerConstruction-VI-MU-CSE.git
  1. Navigate to the project directory:
cd SystemProgrammingAndCompilerConstruction-VI-MU-CSE

Usage

I) Python Programs:

You can run each Python program using any code editor or the command line:

Using Visual Studio Code:

  1. Open Visual Studio Code.
  2. Open the project folder (SystemProgrammingAndCompilerConstruction-VI-MU-CSE) in VS Code.
  3. Open the desired .py file.\n
  4. Run the program by pressing F5 or by clicking the "Run" button in the top-right corner of the editor.

II) Lex Programs:

Study material:

To save Lex files:

  1. Save your Lex files with “.l” extensions in any specific directory
  2. Open Command prompt and switch to your working directory where you have stored your lex file (“.l“)

For Compiling and Executing Lex file:

Use the following commands in the same order as mentioned:

flex file_name
gcc lex.yy.c
a.exe

III) Macros:

You can run on Dev C++ by:

  1. Save the .c and .h file
  2. Compile the .c file
  3. Run the .c file
  4. Incase of issues in compiling and/or running, use the following command:
gcc filename.c -o filename

systemprogrammingandcompilerconstruction-vi-mu-cse's People

Contributors

0juice avatar renu1243 avatar riddhigupta1110 avatar

Stargazers

 avatar  avatar

Watchers

 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.