Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 1.17 KB

README.md

File metadata and controls

13 lines (7 loc) · 1.17 KB

Schelme

Schelme is a scheme-inspired scripting language for Elm.

Schelme is written with incremental execution in mind. Running a schelme program consists of creating an EvalBodyStart state instance, then calling evalBodyStateStep on that instance again and again until either an EvalBodyFinal or EvalBodyError is returned. This way you are free to execute as many evals as you have time for, then move on to other tasks. With this method running multiple schelme programs simultaneously is no problem - you just have to store the latest state for each program.

The Run module contains functions to compile and execute schelme code. Also check the examples to see how to get schelme to call your own custom functions.

You can try out the basic language here. The prelude functions are listed in the initial namespace, and there's a minimal language reference.

Here's a robot battle demo. This shows off the incremental execution feature. Its in a separate repo now.

And there's spreadsheet and markdown demos too.