Code Monkey home page Code Monkey logo

khaledsabry97 / compiler_c Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 11.24 MB

Written a C compiler to run c code using flex and bison tool, add also a semantic analyzer, Quadraple language generation and symbol table.

Lex 0.58% C 89.60% Yacc 8.19% Makefile 0.17% C++ 1.46%
flex bison bison-yacc c bison-grammar bison-algorithm lexer lexer-generator lexer-parser grammer semantic compiler symbol-table semantic-analysis quadruples-language assembly

compiler_c's Introduction

Compiler_C

Written a C compiler to run c code using flex and bison tool, add also a semantic analyzer, Quadraple language generation and symbol table.

Project Components

• Lexer

• Parser

• Symbol Table

• Quadruple “assembly” language generation

• Semantic analysis

To run the project

Test 1

  • To print all the “Quadruples language”
  • run it by writing in terminal  make test1

Test 2

  • To invoke all the “Compiler” functionality
  • run it by writing in terminal  make test2

Test 3

  • To invoke all the “Semantic Analysis”
  • run it by writing in terminal  make test3

Outputs of Compiler

  • symbol_file

  • assembly_file

  • semantic_file

compiler_c's People

Contributors

khaledsabry97 avatar

Stargazers

 avatar

Watchers

 avatar  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.