Giter Site home page Giter Site logo

mitscript's Introduction

MITScript Interpreter

Overview of Directories

  • asm - translation from intermediate representation (IR) to assembly
  • bc - compilation from MITScript to bytecode
  • docs - project documentation
  • ex - example folder (staff-provided)
  • gc - garbage collection
  • ir - translation from bytecode to IR
  • parser/bc - bytecode parser
  • parser/ms - MITScript source parser
  • ref - simple reference implementation for interpreter (from assignment 2)
  • tests - tests for parsing, execution, and memory usage
  • vm - VM execution of bytecode instructions
  • x64asm - third-party x86 asm library

Building the Project

  • make ms-print - makes the MITScript pretty printer (parser/ms/ms-print)
  • make bc-print - makes the bytecode pretty printer (parser/bc/bc-print)
  • make bc-parser - makes the MITScript compilation to bytecode pretty printer (mitscriptc)
  • make interpreter - makes the whole interpreter (which includes a flag allowing you to either read in MITScript or bytecode) (mitscript)
  • make ref - makes the reference interpreter implementation (ref/mitscript)
  • make test - runs all correctness tests (in tests/vm)
  • make test-parser - runs all parser tests (in tests/parser)
  • make test-mem - runs heap memory usage tests (in tests/gc)
  • make test-perf - runs performance tests by averaging 5 runs (in tests/perf)

make by default makes the whole interpreter, producing the mitscript binary.

mitscript's People

Contributors

a-newman avatar dvargas92495 avatar kimberli avatar mcarbin avatar yasyf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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