schemeref.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # scheme reference
  2. https://www.scheme.org/
  3. Teach Yourself Scheme in Fixnum Days - https://docs.scheme.org/tyscheme/
  4. # MIT/GNU Scheme
  5. Source file: https://www.gnu.org/software/mit-scheme/
  6. Stable release 12.1
  7. File: Unix binary
  8. Arch: x86-64
  9. Install instructions:
  10. https://www.gnu.org/software/mit-scheme/documentation/stable/mit-scheme-user/Unix-
  11. Installation.html
  12. Requirements:
  13. * Debian-like systems: gcc make m4 libncurses-dev libx11-dev
  14. 1. Unpack the tar file, mit-scheme-12.1-x86-64.tar.gz
  15. tar xzf mit-scheme-12.1-x86-64.tar.gz
  16. 2. Move into the src subdirectory of mit-scheme-12.1/
  17. cd mit-scheme-12.1/src
  18. 3. Configure the software (by default, the software will be installed in
  19. /usr/local, in the subdirectories bin and lib)
  20. ./configure
  21. 4. Build the software:
  22. make
  23. 5. Install the software:
  24. doas make install
  25. 6. Build the documentation:
  26. cd ../doc
  27. ./configure
  28. make
  29. 7. Install the documentation:
  30. doas make install-info install-html install-pdf
  31. # variables
  32. > (define pi 3.14159)
  33. > (define radius 100)
  34. > (define area (* pi radius radius))
  35. > (define circumference (* 2 pi radius))
  36. # functions
  37. > (define (square x) (* x x))
  38. > (square 5)
  39. 25