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.
npm install
npx shadow-cljs watch clojureblocks
- open
localhost:8080
or try it out in your browser: ClojureBlocks live
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.
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.