/lparen

advancing the world's top three and a half social justice causes by writing another scheme-like programming language

Primary LanguageF#

LParen

A socially-aware programming language written in F#.

This is a hobby project that I documented on a series of blogs:

Run

REPL:

dotnet run --project src/LParen.Exe

>> (define fib 
    (lambda (n)
      (cond ((= n 0) 0)
            ((= n 1) 1)
            (true (+ (fib (- n 1))
                      (fib (- n 2)))))))
    
>> (fib 35)
9227465

Execute a file:

dotnet run --project src/LParen.Exe -- --file src/LParen.Exe/Examples/fibonacci-numbers.scm

Web

This project cross-compiles to Javascript using Fable. Requires NodeJS installed locally. Run the REPL in your web browser by

cd src/LParen.Web
npm ci
npm start