- Clojure 90.4%
- HTML 4.9%
- CSS 4.7%
| example | ||
| images | ||
| public | ||
| src/main/clojureblocks | ||
| .gitignore | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| shadow-cljs.edn | ||
NOTE
This repository has been archived. Please use the following one for new issues and pull requests: https://github.com/jhandke/ClojureBlocks
ClojureBlocks
Create Clojure programs in your browser.
Built with Blockly. Blockly is a library from Google for building beginner-friendly block-based programming languages.
Evaluation is done by sci.
Run
npm installnpx shadow-cljs watch clojureblocks- open
localhost:8080
or try it out in your browser: ClojureBlocks live
Tutorial
Open ClojureBlocks and drag some blocks from the toolbox on the left into the workspace on the right. You can connect or nest blocks. The generated code will be displayed in the box on the bottom. Click the green "evaluate" button in the bottom left box to evaluate your code and display the results.
Higher-order-function blocks can be inspected via the context menu.
Example
You can find a saved workspace with an implementation of the marsrover kata in the example folder.
The print-state function will print to the developer console.
See also the Clojure counterpart of this example.
The example folder also contains a solution to the Word Chains exercise from 4clojure.
