Project

lasp

0.0
No commit activity in last 3 years
No release in over 3 years
A simple Lisp-dialect programming language inspired by Clojure.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.7
~> 10.0
~> 3.4
 Project Readme

Läsp Build Status

A Lisp implementation in Ruby.

Features

  • Comprehensive documentation
  • Interactive REPL with auto-closing of missing trailing parentheses
  • Closures
  • let-bindings
  • Fully functional macro system
  • Interoperability with Ruby
  • Very concise core library written in Ruby
  • Standard library written in Läsp itself

Installation

It needs Ruby to work, on Mac or most Linux OS:s it's already there and you can simply

gem install lasp

# If it doesn't work you might need to sudo
sudo gem install lasp

# You can update to the latest version the same way:
gem update lasp
sudo gem update lasp

Running

After installing you can invoke lasp for a REPL or provide a lasp-file to execute.

# An interactive prompt that lets you play with the language
lasp

# Run lasp-files
lasp path/to/program.lasp

Documentation

  • Language - explains the core types and syntax of the language.
  • Reference - a list of every available function with description and usage examples.
  • Examples - various small examples of using the language.
  • Zuul - a small text-based game written in Läsp.

Developing

Run the specs

# Run all checks
bundle exec rake

# Run only tests
bundle exec rake spec

# Run only style checks
bundle exec rake style

Dev REPL

# This is basically just a shorthand for `rake install && lasp`
rake repl