Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A quick and very dirty Scheme interpereter.

License

NotificationsYou must be signed in to change notification settings

petermichaux/bootstrap-scheme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bootstrap Scheme is a quick and very dirty Scheme interpreter. Its *only* intended use is to compile a self-compiling Scheme-to-Assembly or Scheme-to-C compiler the first time.Bootstrap Scheme doesn't have many features a Scheme system usually has. It doesn't have numbers other than integers. It doesn't have vectors. It definitely doesn't have a module system, call/cc, macros, dynamic-wind or any other advanced Scheme features.Bootstrap Scheme is slow. The implementation is an abstract syntax tree node walker with no optimizations. There is no point in making a node walking interpreter any better than the absolute base necessity as the fundamental design of a node walker would never be used in production. Small, easy to read source code is far more important than anything else.Bootstrap Scheme revels in the opportunity to be very dirty Scheme.----Example build and use.$ cd bootstrap$ makecc -Wall -ansi -o scheme scheme.c$ ./schemeWelcome to your Scheme REPL. Use ctrl-c to exit.> #t#t> -123-123> #\c#\c> "adsf""asdf"> (quote ())()> (quote (0 . 1))(0 . 1)> (quote (0 1 2 3))(0 1 2 3)> (quote asdf)asdf> (define a 1)ok> a1> (set! a 2)ok> a2> (if #t 1 2)1> (+ 1 2 3)6> +#<procedure>> ^C$----For more information see:http://peter.michaux.ca/articles/scheme-from-scratch-introduction----See the LICENSE file for legal information.

About

A quick and very dirty Scheme interpereter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp