Coder Social home page Coder Social logo

ips's Introduction

IPS

IPS

ips's People

Contributors

timrjensen avatar hjalte01 avatar jarljarl avatar

Watchers

 avatar

Forkers

timrjensen

ips's Issues

Multiple let declaration

Expand the current implementation of let as specified by the assignment.

let x = foo; y = bar; z = baz in qux

Boolean false value

Implement the boolean false value as specified by the assignment.

// Exp -> false
false

Boolean and operator

Implement the boolean and operator as specified by the assignment.

// Exp -> Exp && Exp
true && true

Boolean true value

Implement the boolean true value as specified by the assignment.

// Exp -> true
true

Multiplication operator

Implement the multiplication operator as specified by the assignment.

// Exp -> Exp * Exp
a*b

replicate

Implement the replicate function as specified by the assignment:

// replicate(Exp, Exp)
replicate(5, 1) -> [1, 1, 1, 1, 1]
replicate(5, 'a') -> ['a', 'a', 'a', 'a', 'a']

Constant folding

Implement constant folding as specified in the assignment text.

Copy propagation

Implement copy propagation as specified in the assignment text.

Boolean negation operator

Implement the boolean negation operator as specified by the assignment.

// Exp -> not Exp
not true

filter

Implement the filter function as specified by the assignment.

// filter(FunArg, Exp)
filter(fn bool (int x) => x>2, [1, 2, 3]) -> [3]

Boolean or operator

Implement the boolean or operator as specified by the assignment.

// Exp -> Exp || Exp
true || false

Divide by 0 exception

I made a mistake testing for exceptions. Division by 0 fails the compiled test when you give it a .err file as input as you should. Apparently this should be checked and reported in TypeChecker.

scan

Implement the scan function as specified by the assignment.

// scan(FunArgs, Exp, Exp)
scan(fn int (int acc, int x) => acc*x, 1, [1, 2, 3]) -> [1, 2, 6]

Division operator

Implement the division operator as specified by the assignment.

// Exp -> Exp / Exp
a/b

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.