GithubHelp home page GithubHelp logo

sathvikbhagavan / group_7_cs335_project Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.35 MB

Group Project for 'Compiler Design', Spring 2022

Python 97.86% C++ 1.07% Assembly 0.40% Shell 0.05% C 0.62%

group_7_cs335_project's Introduction

Course Project for Group 7, Compiler Design (Spring 2022)

Milestone 1

Project specifications can be found in ~/docs/specs.pdf.

Milestone 2 (lexer)

There are 6 testcases in ~/tests/. To run test n, run the following command in the main (~/) directory:

make lex_n

(n = 1,2,...,6)

Table with tokens, lexemes, line# and column# will be displayed.

Milestone 3 (parser)

There are 6 testcases in ~/tests/. To run test n, run the following command in the main (~/) directory:

make parse_n

(n = 1,2,...,6)

The AST output (in string format) will be displayed on the terminal. The ~/parser.out file contains all parser rules.

The the DOT file for generating automaton is at ~/utils/graph.dot, and the automaton graph is at ~/docs/automaton.pdf.

Milestone 4 (semantics)

There are 5 testcases in ~/tests/semantic. To run test n, run the following command in the main (~/) directory:

make semantic_n

(n = 1,2,...,5)

symboltable.csv will get created and get saved in main (~/) directory.

Milestone 6 (Final Destination)

There are 16 testcases in ~/tests/. To run test n, run the following command in the main (~/) directory:

./compile.sh n

(n = 1,2,...,16)

mips.s will get created and saved in bin (~/bin/) directory in case of no error in compilation.

group_7_cs335_project's People

Contributors

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