ilisp - a lisp dialect using Instr:
Filter:
crucial-library/Guides (extension) | Libraries > crucial > Instr

ilisp - a lisp dialect using Instr
ExtensionExtension

construct larger instr and signal chains using compact lisp

This is a baby Lisp. Something that seemed interesting to me on a Saturday morning. If you are really into Lisp then you should use Clojure.

The methods that make this work are all in the extension file ilisp.sc

First you'll probably want to know the basics of Lisp.

evaluating sexpressions

Instr are the functions

Functions are stored in the Instr library

Operators that are strings are references to Instr and are loaded from disk if needed.

Macros

A true macro happens at the reader level and processes source code and then emits different source code.

These are pseudo-macros, just using instrument functions to do abbreviations and tricks.

To return an Instr rather than evaluate it we can use a macro.

Any Instr that starts with # does not evaluate its input forms but is instead passed those forms (an array) to operate on.

Complete Lisp

To be a complete Lisp it would require only:

atom, quote, eq, car, cdr, cons, cond, lambda, label, apply