CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 02:46:03 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/"f538a6cab1d3eee0a92d05658b66bd89"
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 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 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 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; 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=roLP8XZQjHnNYGmSEdQ0mx%2FXTn5p3XEBh6UVLMjXuW%2Bgp3rDFYA8IkI90NigA0ChUnTFdO6ATeowb8Z73OUYJxeos%2B8smaKcFeN9Zyu6Nc0lpfOwh%2FCqOVm8UhLenfRzeDFF5%2Bjnlw8%2FoSexa2B4wbyTf047ZZcc%2BKYpgyDnX1CklIX89TPioQTQi8lzY5WH9U%2BmFzpMWGohbMhdw7tutT2%2FTpPz%2FdG3iGrMOR2piHOfWBbJkAPVrucDwso%2FBxkmgGaXp%2BcQi6n45JCX4xPSdw%3D%3D--VmO%2FstjKTAMqE9YB--XU7CNosnRTlAknI3LTNaHw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1356536277.1753757163; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 02:46:03 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 02:46:03 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AD32:E69F3:1E8D2A:2D372D:688835EB
GitHub - patrickdlogan/nconc: scheme interpreter in javascript with stack-friendly tail calls and full call/cc
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 4
scheme interpreter in javascript with stack-friendly tail calls and full call/cc
License
LGPL-3.0, GPL-3.0 licenses found
Licenses found
LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
patrickdlogan/nconc
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
* COPYING This file is part of NCONC. NCONC is free software: you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. NCONC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public License for more details. You should have received a copy of the Lesser GNU General Public License along with NCONC. See the files COPYING.LESSER and COPYING. If these files are not present, see https://www.gnu.org/licenses/ * LICENSE Copyright (C) 2011 Patrick Logan Distributed under the terms of the GNU LESSER GENERAL PUBLIC LICENSE, Version 3. in this distribution for license information. See also https://www.gnu.org/licenses/ * CONTACT patrickdlogan uses gmail * NCONC NCONC is an implementation of Scheme (a dialect of Lisp) written in Javascript. * Usage ** Include the nconc.js script and dependencies. ** Read scheme expressions from javascript: _.schemeRead("...") ** Evaluate scheme expressions from javascript: var sexpr = _.schemeRead("((lambda (x) (- x)) -7)"); var value = _.schemeEval(sexpr); // => value is 7. Generate the parser: This can be done within a javascript script, from the online pegjs grammer generator, or from a shell. From a shell: public/scripts/genparser.sh Testing: From a shell: "public/scripts/testonce.sh" will run the qunit tests using phantomjs once. "public/scripts/test.sh" will run the qunit tests when any file in public/ is saved. This uses inotifywait in a loop. "lein run" will start a server. Goto https://localhost:8383/nconc-test.html to run the qunit tests. This is useful, for example, running in FF or Chrome to see exceptions and/or to use their dev tools. A browser is needed to test long-running code. phantomjs currently has a problem. * TODO ** dynamic-wind ** Fluids ** Multi-processing with trampolines ** Other stuff with trampolines ** Expansion Passing Style macros (stepper, tracer, debugger, etc.) ** List (and array) comprehension macro(s). ** Timer-based execution of the trampoline. ** Printing ** User Interface (read-eval-print loop) *** Influences: CLIM, Don't Fidget With Widgets, Xeel *** Declarative UI code with fluids and pub/sub ** More of everything (standard library). * INCLUDED DEPENDENCIES: ** jquery - not used much except to run qunit in the browser. ** qunit - the unit tests are written in qunit. ** underscore.js - run-time library for collections, etc. * Separate Dependencies: ** clojure's lein build tool - currently used just to run qunit tests and serve the files via http. *** lein is installed from a shell script and all other dependencies from there. *** download the lein shell script, make it executable, and located on the PATH. *** run "lein self-install" *** at the top-level directory for nconc, run "lein deps" *** from the same location, run "lein run" *** goto https://localhost:8383/nconc-test.html and the tests should have been successful. ** phantomjs - used to run the qunit tests from a shell using a "headless" webkit. *** requires qt 4.7 or greater and libqtwebkit4 *** install build-essential *** install libqtwebkit4 *** install qt4-qmake *** install libqt4-dev *** make sure phantomjs is located on the PATH *** from the top-level for nconc, run "public/scripts/testonce.sh" *** there should be no output when the tests are successful ** PEG.js - used to build the parser. a pre-built parser is included for the current grammar at runtime. ** the parser can be generated online at https://pegjs.majda.cz/online ** or it can be generated from the shell but nodejs and jake are required.
About
scheme interpreter in javascript with stack-friendly tail calls and full call/cc
Resources
License
LGPL-3.0, GPL-3.0 licenses found
Licenses found
LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
You can’t perform that action at this time.