{"id":17218822,"url":"https://github.com/nyuichi/r7expander","last_synced_at":"2026-01-06T00:31:00.973Z","repository":{"id":47685798,"uuid":"143267513","full_name":"nyuichi/r7expander","owner":"nyuichi","description":"R7RS expander","archived":false,"fork":false,"pushed_at":"2021-08-18T06:10:42.000Z","size":43,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-30T13:24:14.759Z","etag":null,"topics":["scheme","scheme-compiler","scheme-programming-language"],"latest_commit_sha":null,"homepage":null,"language":"Scheme","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nyuichi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-02T08:45:41.000Z","updated_at":"2023-09-25T13:49:39.000Z","dependencies_parsed_at":"2022-09-03T08:13:17.103Z","dependency_job_id":null,"html_url":"https://github.com/nyuichi/r7expander","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuichi%2Fr7expander","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuichi%2Fr7expander/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuichi%2Fr7expander/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyuichi%2Fr7expander/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nyuichi","download_url":"https://codeload.github.com/nyuichi/r7expander/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245484053,"owners_count":20623006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["scheme","scheme-compiler","scheme-programming-language"],"created_at":"2024-10-15T03:48:13.753Z","updated_at":"2026-01-06T00:31:00.946Z","avatar_url":"https://github.com/nyuichi.png","language":"Scheme","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TL;DR\n\n```scheme\n;;; test.sld\n(define-library (foo bar)\n  (import (scheme base))\n  (begin\n    (define x 1)\n    (let ((y 2))\n      (+ x y))))\n```\n\n```shell\n$ make\n$ ./r7expander.scm -l test.sld\n(begin\n  (define foo.bar:x 1)\n  ((lambda (%y.0) (+ foo.bar:x %y.0)) 2))\n\u003e\n```\n\n# r7expander: a macro expander for R7RS\n\nr7expander is a macro expander for R7RS.\nThis expander implements an expander for R7RS macros and libraries.\nGiven a r7rs program or library, it will\n\n1. resolve library import sets and manage export sets,\n2. rename local/global variables, and\n3. expand all macros.\n\nr7expander is inspired by Al Petrosky's alexpander.\nSimilarly to his system, r7expander is a simple data-in data-out program.\nSome differences are listed below:\n\n- Main part of the program is implemented as reusable R7RS libraries.\n- It deals with the library system.\n- Technically, it uses syntactic closures as basic blocks of hygienic expansion.\n\nProduced programs will be valid R5RS programs that may contain R5RS primitives\n\n- function calls, variables, constants,\n- if, quote, set!, lambda, define (only binary ones), begin,\n\ntogether with\n\n- parameterize,\n- define-record-type, and\n- case-lambda.\n\nInternal definitions are not translated into letrec* because outputs can have internal define-record-type, which we don't know how to expand into internal (ordinary) definitions.\n\n# Implementation notes\n\nNon-standard built-in libraries listed below:\n\n- `(r7expander builtin)` exports basic keywords such as `define` and `lambda`.\n- `(r7expander native)` exports all native procedures available.\n\n#### License\n\n\u003csup\u003e\nLicensed under \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in r7expander by you shall be licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyuichi%2Fr7expander","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnyuichi%2Fr7expander","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyuichi%2Fr7expander/lists"}