Created
September 8, 2017 17:41
-
-
Save derBingle/b6ae60f251b30702d6d1c8778d6ccdb3 to your computer and use it in GitHub Desktop.
Convert an OCaml file or the clipboard to Reason, and copy the result to the clipboard.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function recp () { | |
if [ $# -ge 1 -a -f "$1" ] | |
then | |
refmt --parse ml --print re "$@" | pbcopy; | |
else | |
pbpaste | refmt --parse ml --print re | pbcopy | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: Only works on macOS.