GithubHelp home page GithubHelp logo

dic's Introduction

๐Ÿ Do it Carefully (DIC) ๐Ÿ

Do it Carefully is a programming languange that aims to provide developers with native support for matrix operations, while still following the object oriented mumbo jumbo that we all know and love.

Usage

In order to build the DIC compiler, run make. Running make uses ocamlbuild to generate a toplevel.native file, which serves as the driver for the DIC. Once built, you can pass a .dic file to be read by the compiler.

Running the tests

Tests are defined in the tests/ directory. Inside of tests/ there is a directory for positive and negative tests. In order to run the tests, make sure to have ocamlbuild installed on your machine, and run make test. When run, the file path and the test outcome will be outputed on the same line, either PASSED or FAILED.

The positive tests the following

- test-binop-1: tests all binary operators

- test-class-1: tests properly formatted class (not in microc)

- test-control-1: tests if else statements

- test-for-1: tests for loops

- test-unop-1: tests ++, --, and - unops

- test-vardecl-1: tests variable declaration and assignment inline (not in microc)

- test-while-1: tests while loops

The negative tests the following

- test-class-1: tests for incorrect class structure

- test-for-1: tests for incorrect conditional in for loop

- test-function-1: tests for incorrect functional call for function that expects no arguments

- test-types-not-matching: tests for assignment of variable with incorrect declaration type.

Authors

dic's People

Contributors

liunick avatar francesar avatar amuhammad135 avatar blackfish avatar yulissaa avatar

Stargazers

 avatar  avatar  avatar Chan Pham avatar

Watchers

James Cloos avatar  avatar  avatar  avatar Chan Pham avatar  avatar  avatar

dic's Issues

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.