Giter Club home page Giter Club logo

c-j---compiler's Introduction

CPSC 411 Project

Milestone 1: Flex Scanner

Where is the scanner?

The scanenr is under Milestone1/Scanner directory. Some tests files can be found inside Milestone1/Test. A report can be found under Milestone1/Report.

How to compile the scanner?

  1. cd into Milestone1/Scanner
  2. run make

How to use the scanner?

  1. compile the scanner by above instructions.
  2. run: ./scanner <path to the input file>.

Milestone 2: Bison Parser

Where is the parser?

The parser is located in Milestone2/Parser direcotry.

How to compile the parser?

  1. cd into Milestone2/Parser
  2. run make clean
  3. run make

How to use the parser?

  1. compile the parser using the above instructions.
  2. run: ./parser <path to the input file>.

Milestone 3: Semantic Analysis and Completion of Front End

How to compile the Front End?

  1. cd into Milestone3/FrontEnd
  2. run make clean
  3. run make

How to use the Front End?

  1. compile the front end using the above instructions.
  2. run: ./main <path to the input file>.

Final Project: Code Generation

How to compile the Code Generator?

  1. cd into CodeGen/Compiler
  2. run make clean
  3. run make

How to use the Code Generator?

  1. compile the code generator using the above instructions.
  2. run: ./main <path to the input file> > [file to be redircted into].

Where to find generated code?

In CodeGen/TEST/generated

Where to find output files?

In CodeGen/TEST/output

c-j---compiler's People

Contributors

zhijie-os 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.