A visual editor for Clojure
This repository has been archived on 2024-05-15. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Clojure 90.4%
  • HTML 4.9%
  • CSS 4.7%
Find a file
2024-05-15 11:30:53 +00:00
example update marsrover example 2023-07-26 10:26:44 +02:00
images update image 2023-07-04 22:31:13 +02:00
public fix juxt inspection 2023-06-07 21:52:33 +02:00
src/main/clojureblocks add or change doc comments 2023-07-19 15:31:45 +02:00
.gitignore update gitignore 2023-05-26 21:34:50 +02:00
LICENSE add readme and license 2023-04-11 23:52:24 +02:00
package-lock.json rename project 2023-05-07 13:13:33 +02:00
package.json rename project 2023-05-07 13:13:33 +02:00
README.md include archived note 2024-05-15 11:30:53 +00:00
shadow-cljs.edn add zprint for pretty code printing 2023-06-24 14:59:57 +02:00

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

  1. npm install
  2. npx shadow-cljs watch clojureblocks
  3. 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.