DGMScript is a tiny clojure-inspired LISP language which is based on the Mal interpreter. Here is the online playground for Mal interpreter.
Datatypes
DGMScript supports datatypes including number, string, boolean, nil, symbol, keyword, map, list, vector and atom.
Number
String
Boolean
Nil
Symbol
Keyword
Map
List
Vector
Atom
Atom is a reference type used to manage shared, mutable state. It encapsulates a single value that can be updated atomically.
Defines
Functions
Conditionals
You can use conditional expression if
, cond
, and or
.
Multiple actions
You can execute multiple actions has side-effects with do
.
Useful functions
Math
DGM object interoperability
In script, you can use the following accessible objects:
Shape
The shape
object is the shape object where the script code is attached.
The below is the available variables and functions in shape
object.
Canvas
The below is the available functions in canvas
object.