GithubHelp home page GithubHelp logo

compiler-model's Introduction

Title: Compiler Design

Problem Statement:

Develop a Compiler Design model to construct and exercise all compiler properties and demonstrate all the compiler stages needed to be performed during execution of code.

Field of Study:

The compiler is software that converts a program written in a high-level language (Source Language) to a low-level language (Object/Target/Machine Language/0, 1โ€™s).A translator or language processor is a program that translates an input program written in a programming language into an equivalent program in another language. The compiler is a type of translator, which takes a program written in a high-level programming language as input and translates it into an equivalent program in low-level languages such as machine language or assembly language.

The programs are written in lex and yacc program.Lex helps you by taking a set of description of possible tokens and producing a Croutine, which we call as lexical analyzer or a lexer, that identify the tokens. As input isdivided into tokens, a program often needs to establish the relationship among thetokens. A compiler needs to find the expression, statement, declaration, blocks andprocedure in the program. This task is known as parsing and the list of rules thatdefine the relationship that the program is a grammar. Yacc takes a concisedescription of a grammar and produces a C routine that can parse the grammar, aparser. The yacc parser automatically detects whenever a sequence of input tokenmatches one of the rule of the grammar and also detects a syntax error whenever itsinput does not match any of the rule. When a task involves dividing the input intounits and establishing some relationship among those units then we should use lexand yacc.

Work sample:

Others:

compiler-model's People

Contributors

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