It works. But development still in progress!
GNU/Emacs mode that setup local playground for code snippets in the Crystal language. Heavily inspired by rust-playground.
Install crystal-playground
from MELPA:
Example screen after creation of a new snippet:
- From any mode run
M-x crystal-playground
for start a new playground buffer filled with basic template for the package with main function (see the picture below). - Add your code then press
C-x p r
(it bound tocrystal-playground-exec
command). It will save, compile and exec the snippet code. - When you played enough with this snippet just run
C-x p k
orM-x crystal-playground-rm
. It will remove the current snippet with its directory and all files.
Function name | Description |
---|---|
crystal-playground |
Create a new playground buffer with basic template for the package. |
crystal-playground-exec |
Save, compile and run the code of the snippet. |
crystal-playground-rm |
Remove the snippet with its directory with all files. |