GithubHelp home page GithubHelp logo

deus-oc / cs3071-compiler-design Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sasunts/cs3071-compiler-design

0.0 1.0 0.0 124 KB

My solutions for the assignments

Lex 0.93% C 97.78% Yacc 1.29%

cs3071-compiler-design's Introduction

CS3071 - Compiler Design

My solutions for the assignments.

Assignment 1 Even Numbers

(flex/lex) Count the number of even numbers inputted.

Assignment 2 Comments

(flex/lex) Remove comments (i.e. comments in code) from input.

Assignment 3 Plates

(flex/lex) Check the Irish registration plate and determine how old the car is.

Assignment 4 Roman Numerals

Flex/Bison (or lex/yacc) Calculates the inputted roman numerals. First version is lazy work but passed all tests. Will change hard coded syntax error detection when I have time to something more elegant.

Assignment 5 Roman Numerals

Flex/Bison (or lex/yacc) Calculates the inputted roman numerals and converts to integers. Looks at the operand, and performs required calculation. Then a function is called to convert the integers back to roman numerals.

Assignment 6 Calculator with Variables

Flex/Bison (or lex/yacc) Calculator which can assign variables and does functions such as plus minus divide and multiply.

cs3071-compiler-design's People

Contributors

sasunts avatar

Watchers

James Cloos 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.