| CARVIEW |
Select Language
HTTP/2 200
date: Wed, 31 Dec 2025 02:56:21 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"beee13af1e9dd064a75d88f6df27190a"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=TYiwcZkONNkdqJB6fkFWNl4pl37A9eJb2qAhJ05cuZV3JounmXItq17KjoXWArJKIrgavXrFDubV7uWTauq8P%2FwSMqx%2Bxrr%2Bb3hD2GShRtgq2Q2xLwkO0I1%2BkndRhoFXp%2F7kf89Qu7Q2UuNbR30lgAVo3FXUUjNqqxHwxyfpRhox1ApmAqOuupJ9r5LwusKTteI%2FxHapn4wDioSnUnJjKsDs2Boug7G6mB6pgC%2Fgc8EEUpvJQUU7IqVF4WSeCCttSCDZB94Yi1%2FbSBtdMM1nAw%3D%3D--jX1jUZsfd4ET5lXw--P0Zj0ord%2FhImkrSfGNx%2F1w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1201537263.1767149781; Path=/; Domain=github.com; Expires=Thu, 31 Dec 2026 02:56:21 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 31 Dec 2026 02:56:21 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DE3C:12322B:134725D:15DA2B8:695490D5
GitHub - ingramj/bs: An interpreter for a simple Scheme-like language
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 0
An interpreter for a simple Scheme-like language
License
ingramj/bs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
bs - A Basic Scheme Implementation ================================== bs is an interpreter for a simple Scheme-like language. It lacks the more advanced features of Scheme, such as macros and call/cc. The goal of bs is to implement enough of Scheme to boostrap a Scheme compiler written in Scheme. A secondary goal is to learn about writing simple interpreters. This project was inspired by Peter Michaux's "Scheme from Scratch" project. https://peter.michaux.ca/articles/scheme-from-scratch-introduction Usage ===== ./bs file [-p] Where "file" is either a Scheme source file, or a "-" to read from stdin. "-p" causes bs to print the result of every expression it evaluated. There is a read-eval-print loop in the file bsrepl.scm. To use it, just run "./bs bsrepl.scm" Features Implemented ==================== Data types: integers booleans characters strings pairs and lists ports Special Forms: quote and ' define set! if cond lambda let begin and or Primitives: eq? null? boolean? symbol? integer? char? string? pair? list? procedure? input-port? output-port? eof-object? + - * quotient remainder = < > cons car set-car! cdr set-cdr! length list char->integer integer->char number->string string->number symbol->string string->symbol current-input-port current-output-port open-input-file open-output-file close-input-port close-output-port read read-char write write-char display stdin-port stdout-port load error apply eval interaction-environment null-environment environment In stdlib.scm: number? map for-each fold-right fold-left reverse append not newline call-with-input-file call-with-output-file caar, cddr, etc. Compilation ============ To build bs, you'll need libgc and scons. Assuming you already have gcc installed, you can install the neccessary packages on a Debian-based system with this command: $ sudo apt-get install libgc-dev scons Then type "scons" in the project directory to build bs. If you are using a non-Debian-based system, or a different compiler, you'll probably need to edit the SConstruct file. There is a simple test script in the tests/ directory. Look at the comments at the top of run-tests.sh for details. See the LICENSE file for copyright and licensing information.
About
An interpreter for a simple Scheme-like language
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
You can’t perform that action at this time.