A socially-aware programming language written in F#.
This is a hobby project that I documented on a series of blogs:
- A Simple Computation Engine in F# - S-Expression calculator
- Implementing General Computation - Variables & functions
- Abstractions for Logic - Booleans & logical operators.
- Code Execution: Eval, Apply - Functions & lexical environments.
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
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