Skip to content
/ Snow Public

A simple Scheme inspired Lisp dialect written in C#

Notifications You must be signed in to change notification settings

wvanlit/Snow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snow

A simple Scheme inspired Lisp dialect written in C#

(define fib (lambda (n) 
     (if (= n 0)
         0
         (if (< n 2) 
             1 
         (+ (fib (- n 1)) (fib (- n 2)))))
     )
 )

> (fib 25)
75025

Features (ref)

  • Values
    • Boolean (|| #t #f)
    • Number (* 1 1.4 -2.1)
    • Closure
    • Pairs (cons 1 2) => (1 . 2)
    • Lists (list 1 2 3) => (1 . (2 . 3))
    • Strings
    • Vectors
  • Special Forms
    • Lambda
    • List Function (- 1 2 3)
    • Definitions
    • Conditionals
    • Pair functions (car (cons 1 2)) => 1 and (cdr (cons 1 2)) => 2
    • Quote
    • Sequencing
    • Iteration
  • Ports
    • File Ports
    • String Ports
    • Input Ports
    • Output Ports
  • Error system
    • Error/Warn
    • Restarts
  • Macro's

About

A simple Scheme inspired Lisp dialect written in C#

Topics

Resources

Stars

Watchers

Forks

Languages