Skip to content

VSCode extension to enable the functionality of https://sosml.org/editor in your favorite editor

Notifications You must be signed in to change notification settings

bmo-at/vscode-sosml

Repository files navigation

vscode-sosml

This extension allows you to interpret your SML code with the SOSML interpreter. It basically recreates the functionality of the SOSML editor right in Visual Studio Code, for your convenience.

I created this becuse I don't like editing code in my browser and I like to keep my files in my own folders instead of my browser cache.

Screenshot

Features

It is currently still a work in progress, so more features are coming.

Implemented

  • Syntax highlighting for SML
  • Interpreting the contents of an SML file with the SOSML interpreter
  • Helful snippets
  • Rudimentary support for user curated library of functions

Currently you can only open one Interpreter at a time based on the contents of one file. To do so, open up your SML file, press CTRL + SHIFT + P to open up the command bar and type 'sosml interpret'. This should bring up the vscode-sosml.interpret command. You can of course assign this command to a hotkey in the settings. Executing this will open up an interpreter result of the contents of the opened SML file to the side, showing you what the code you wrote evaluates to. It will automagically be updated once you make changes to and save the SML file.

Work in Progress

  • User curated library of functions to be loaded before evaluating of any file (Basic version implemented, needs refinement)
  • ...
  • feature wishes welcome (just open up an issue on the GitHub repo)

Requirements

This extension requires language support for SML. This is provided by vscode-better-sml.

When installing this extension, you should be prompted to also install vscode-better-sml, but in case it isn't just visit the link and install it yourself.

Known Issues

  • Comments are not possible as of now and will lead to an evalutation error #1 This has been fixed as of Version 1.1.0

Release Notes

1.3.0

Changelog

1.2.0

Changelog

1.1.1

Changelog

1.1.0

Changelog

1.0.0

Initial release of vscode-sosml

About

VSCode extension to enable the functionality of https://sosml.org/editor in your favorite editor

Resources

Stars

Watchers

Forks

Packages

No packages published