This package will eventually provide a toy compiler for experimenting with resumable parsing.
For now, it provides an entertaining series of crashes and confusing error messages.
The application is designed as a plugin for Visual Studio Code.
Table of Contents
To install the coda
executable, you will need GHC 8.2.2 release candidate 1 or later, and you'll need to run cabal new-build
, then fish through dist-newstyle
for the executable and put it somewhere in your path.
Once cabal new-install
works, this will become a lot easier.
To work on the extension, you'll need to:
-
Download the repository from https://github.com/ekmett/coda if that isn't where you are reading this file from.
-
Run
code .
from root of that repository -
Start debugging to launch the extension-host following the instructions in Running and Debugging Your Extension.
Alternately you can link the directory directly into your ~/.vscode/extensions
folder, which may be useful if you're working on the typescript bits.
Once you have an installed coda
executable, bash command line autocompletion is available with:
$ source <(coda --bash-completion-script `which coda`)
You can add this to your .profile
or .bashrc
Currently, the build process is being tested on GHC 8.2, but I'm not actively doing anything to shut off older GHCs or newer ones.
Patches that help increase portability are welcome.
Once there is an actual language here documentation will be forthcoming on it.
In the meantime, API documentation is available from https://ekmett.github.io/coda/
Directory | Usage |
---|---|
.vscode |
Visual Studio Code configuration for the current workspace |
bin |
Executable scripts |
lib/coda* |
Haskell code for the language |
code |
Typescript code for the extension |
images |
The logo, etc. |
test/code |
Typescript code for testing |
See LICENSE.md
Contributions and bug reports are welcome!
Please feel free to contact me through github or on the ##coda or #haskell IRC channels on irc.freenode.net.
-Edward Kmett