0.0.29 • Published 10 months ago

lang-clojure-eval v0.0.29

Weekly downloads
-
License
-
Repository
github
Last release
10 months ago

lang-clojure-eval NPM version

A Codemirror 6 language extension based on the Lezer Clojure parser, with inline-evaluation support via the Small Clojure Interpreter (SCI).

API Reference

Java interop

Since many commonly used Java methods are not accessible because we are in a JavaScript environment, a limited subset have been ported into Clojure for compatibility. If you'd like to use one that has not been ported, please file an issue and we'll see what we can do.

Status

Alpha. Certainly contains bugs. There is a live demo running which is continuously built from the main branch.

  • ✅ Implement Lezer parser
  • ✅ Hook up Clojure interpreter
  • ✅ Eval-cell
  • ✅ Eval-at-cursor
  • ✅ Eval top-level form
  • ✅ Display results inline
  • ✅ Implement clear-events
  • Publish to npm
  • ✅ Create test suite
  • ✅ Test published package
  • ✅ Handle errors
  • ✅ Pretty-print eval result
  • ✅ Truncate very long eval result
  • ✅ Handle infinite loops

Run demo locally

npm install
npm run dev

Dev

To compile sci.js from the Clojurescript source:

npx shadow-cljs release sci

Credits

0.0.29

10 months ago

0.0.28

10 months ago

0.0.27

10 months ago

0.0.26

10 months ago

0.0.25

10 months ago

0.0.24

10 months ago

0.0.23

10 months ago

0.0.22

10 months ago

0.0.21

10 months ago

0.0.20

10 months ago

0.0.19

11 months ago

0.0.18

11 months ago

0.0.17

11 months ago

0.0.16

11 months ago

0.0.15

11 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago