Git Product home page Git Product logo

ku-2016-cose212-hw5's Introduction

#Programming Languages 2016 - Homework 5

Goal

The goal of this homework is to build a type checker for "LETREC" language. For the details, please refer to "hw5.pdf".

Specification

  • Implement the gen_equations and solve functions in "type.ml".
  • Do not modify the types and names of items in the "type.ml" except for the gen_equations and solve functions.
  • You can use the environment implementation for the type checker as you did in hw4(Check TEnv module in "type.ml").
  • During execution, raise the exception TypeError whenever exception handling is needed.
    • You should use above pre-defined exception that we provided.
    • You can raise the exception as follows: raise TypeError

Compilation and Execution

Compile and execute the type checker as follows:

  make               (* for compilation *)                            
  ./run test/let1.m  (* running the type checker *)                    

How to Submit

Submit the single file "type.ml" via Blackboard. Note that students who submitted uncompilable codes will get zero point.

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.