https://github.com/dawee/prisml
Write OCaml through the Reason prism. Write ReasonML through the OCaml prism.
https://github.com/dawee/prisml
ocaml reasonml vscode-extension
Last synced: 3 months ago
JSON representation
Write OCaml through the Reason prism. Write ReasonML through the OCaml prism.
- Host: GitHub
- URL: https://github.com/dawee/prisml
- Owner: dawee
- Created: 2019-04-14T06:08:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T00:01:13.000Z (about 7 years ago)
- Last Synced: 2025-06-03T09:13:08.120Z (about 1 year ago)
- Topics: ocaml, reasonml, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PrisML
_ _
/ | \
OCaml ~~~> / | \ ~~~> ReasonML
ReasonML <~~~ /___|___\ <~~~ OCaml
Write ReasonML through the **OCaml prism**.
Write OCaml through the **ReasonML prism**.
## Description
**PrisML is a VSCode extension** for OCaml and ReasonML developers. It gives you the ability to work on both syntax using only the one you're familiar with.
PrisML is just a layer over **refmt**, developped by the authors of [facebook/reason](https://github.com/facebook/reason).
## Development
This project is a work in progress. Reading and writing using Reason syntax seems to work fine though.
To take a look at the extension:
- Clone this project
- Install the dependencies using `yarn`
- Open the project using VSCode _(make sure you have VSCode version >= 1.33.0)_
- In the menu, click on "Debug" -> "Start Debugging"
- In the new VSCode window, open the command search bar (Ctrl-Shift-P or Cmd-Shift-P) and type "prisml". You should see one command, click on it.
- It will open the same UI it opens when you want to open a folder. So choose an OCaml project _(personally I tested with [glennsl/bs-jest](https://github.com/glennsl/bs-jest))_
You should see the chosen folder in VSCode explorer. The OCaml files should be seen with `_ml.re` extension instead of `.ml`. When you open them, you should see Reason syntax instead of OCaml.