Skip to content

lisp compiler in bash which compiles to a directory structure

Notifications You must be signed in to change notification settings

eichkat3r/dirlisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dirlisp

a directory structure based programming language

Intro

dirlisp is a Lisp dialect which compiles to a directory structure that can later be evaluated. The compiler and the evaluator are entirely written in plain bash script. This is actually a proof of concept implementation not intended to be used for functional applications.

Usage

Call

$ ./convert.sh "<program>"

to create a directory structure for . An example program would be:

(+ 1 2 (* 3 (/ 4 (- 6 5))))

The program will be stored in a directory called a.out in the working directory. To specify a different output dir (which will be overwritten!), the -o option can be used. For example:

$ ./convert.sh "(+ 1 2 (* 3 (/ 4 (- 6 5))))" -o testprog

The compiled program can be evaluated with the eval script:

$ ./eval.sh testprog

which will print the result on the command line.

About

lisp compiler in bash which compiles to a directory structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages