Skip to content

raff/gisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gisp

My attempt to write a minimal Lisp interpreter (in Go)

Supported types

  • boolean (true, nil)
  • integer 64 bits
  • float 64 bits
  • string
  • symbol

Supported primitives

  • +, -, *, /, % : arithmetic operators

  • =, <, <=, >, >= : conditionals

  • quote

  • setq

  • let

  • not, or, and

  • if

  • while

  • begin

  • lambda

  • eval

  • list, first, last, nth, rest, find, append

  • print, println, format, readlines, sleep, rand

Examples

  • cmd/gisp : a REPL for gisp (can run single expressions, programs from file or expressions interactively)
  • cmd/turtle : a REPL for gisp with turtle abilities (it shows how to add new types and primitives to gisp)

About

My attempt to write a minimal Lisp interpreter (in Go)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages