Skip to content

f-kanari/sheep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ちっちゃいすきーま

go run cmd/sheep/main.go

でREPLを起動できるよ

四則演算

(+ 1 1)
=> 2

比較

(< 1 2)
=> #t

if

(if (< 1 2) 1 2)
=> 1

変数定義

(define x 10)
x
=> 10

lambda

(define add (lambda (a b) (+ a b)))
(add 1 2)
=> 3

ができるよ。

syntax エラーはpanic になるから気をつけてね

:q

でexitだよー

About

tiny scheme REPL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages