Skip to content

mrcdr/KLisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KLisp

Lisp interpreter written in Kotlin

Usage

Just run following:

make
kotlin klisp.jar  # or  java -jar klisp.jar

Spec

  • Lisp-1

Functions

  • eval
  • apply
  • cons
  • list
  • car
  • cdr
  • + - * /
  • = (number comparison)
  • len (length of list)
  • atom?
  • quit

Special forms

  • lambda
  • define
  • let
  • if
  • quote

Data types

  • symbol
  • number (fraction / floating point)
  • string
  • list
  • lambda

Special symbols

  • t (boolean true)
  • nil (boolean false and empty list)

Reader macros

  • ' (quote)
  • ` (quasiquote)
  • , (unquote)
  • ,@ (unquote-splice)

About

Lisp interpreter written in Kotlin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published