Code Monkey home page Code Monkey logo

sml-buddy's Introduction

SML Buddy

Overview

SML Buddy is a VSCode extension that helps students to receive instant feedback on their assignments written in Standard ML (SML) by providing counterexamples to their solutions.

It is designed to be used with the SML/NJ compiler.

Building

  1. Clone the repository.
  2. Run npm install to install the dependencies.
  3. Install the Visual Studio Code Extension Manager by running npm install -g @vscode/vsce.
  4. Run vsce package to create the .vsix file.

Benchmarks

  1. Clone the repository.
  2. Run npm install to install the dependencies.
  3. Run compile-benchmark to compile the algorithm.
  4. Run benchmark to launch a benchmark.
  5. Choose one of the available benchmarks and a submission.

Installing

  1. Download .vsix file from repository's artifacts or build it yourself.
  2. Open Visual Studio Code.
  3. Go to Extensions.
  4. Click on the three dots in the top right corner.
  5. Select "Install from VSIX...".
  6. Choose the .vsix file.
  7. Install File Downloader Extension.

Usage

  1. Click on the SML Buddy icon in the Activity Bar.
  2. Load the assignment file by opening it locally or by providing a URL. All available functions for verification will appear in the sidebar.
  3. Write your solution in the editor. Verifiable functions will be highlighted using gutter decorations. These decorations reflect status of the verification.
  4. Click on the run icon next to function name to verify it.
  5. If counterexample found, the new document will appear that contains verbose explanation about the case. Otherwise, you will be notified that the function is verified.

Notes

  1. The extension tries to find a counterexample in 60-second timeframe. If it fails to do so, it's assumed that your solution is OK, but it is still possible that some complex counterexample exists.
  2. The extension doesn't support usage of the common library and you have to implement any function that you are using.
  3. Modules capabilities, expressions sequencing, records, vectors and type aliasing is not supported.
  4. The extension aims to search for logical errors and not syntax/semantics errors. Verify that your code compiles before searching for counterexamples.

sml-buddy's People

Contributors

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