{"id":17213527,"url":"https://github.com/takikawa/sweet-racket","last_synced_at":"2026-01-06T13:04:50.559Z","repository":{"id":48520802,"uuid":"2079919","full_name":"takikawa/sweet-racket","owner":"takikawa","description":"A port of sweet expressions to Racket","archived":false,"fork":false,"pushed_at":"2023-03-07T02:10:54.000Z","size":102,"stargazers_count":47,"open_issues_count":9,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T19:54:34.808Z","etag":null,"topics":["racket"],"latest_commit_sha":null,"homepage":"http://pkg-build.racket-lang.org/doc/sweet/index.html","language":"Racket","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takikawa.png","metadata":{"files":{"readme":"README.markdown","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-07-20T19:32:14.000Z","updated_at":"2024-08-03T03:38:18.000Z","dependencies_parsed_at":"2024-05-08T00:46:20.690Z","dependency_job_id":null,"html_url":"https://github.com/takikawa/sweet-racket","commit_stats":{"total_commits":101,"total_committers":4,"mean_commits":25.25,"dds":0.4455445544554455,"last_synced_commit":"460a2f52db582014c144f4cc83ee8e2703f46cc7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takikawa%2Fsweet-racket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takikawa%2Fsweet-racket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takikawa%2Fsweet-racket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takikawa%2Fsweet-racket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takikawa","download_url":"https://codeload.github.com/takikawa/sweet-racket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245467184,"owners_count":20620210,"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":["racket"],"created_at":"2024-10-15T03:01:14.912Z","updated_at":"2026-01-06T13:04:45.525Z","avatar_url":"https://github.com/takikawa.png","language":"Racket","funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"Sweet expressions for Racket\n============================\n\nThis package provides a port of the [sweet\nexpression](http://readable.sourceforge.net/) reader, originally written by\nDavid Wheeler, to [Racket](http://www.racket-lang.org).\n\nTo use the package, you have several options.\n\n* With Racket 5.3.2 or later, you can install the package using `raco pkg`:\n  - `raco pkg install sweet-exp`\n  - set your language to `#lang sweet-exp \u003cyour-base-language\u003e`\n\n* You can also use Planet 2 package management manually:\n  - `git clone git://github.com/takikawa/sweet-racket.git`\n  - `raco pkg install sweet-racket/sweet-exp-lib/`\n\n* With Racket 5.3.1 and earlier, you can use the\n  [Planet package](http://planet.racket-lang.org/display.ss?package=sweet.plt\u0026owner=asumu).\n  - set your language to `#lang planet asumu/sweet \u003cyour-base-language\u003e`\n\nNote: the check syntax tool does work with this language, but\nit may fail to activate when you first install it from PLaneT.\nChanging the #lang line and then trying again should cause the\ncheck syntax button to appear.\n\nThis package is released under the MIT license under the\nsame terms as the original implementation.\n\n* * *\n\nThe following is an excerpt from the Scribble manual for this package. The\npackage provides the sweet reader as a language mixin, similar to the `at-exp`\nor `s-exp` modules.\n\n```racket\n #lang sweet-exp\n```\n\nTo use sweet expressions, supply a `#lang` line like the following:\n\n```racket\n#lang sweet-exp racket\n\nprintf(\"Hello\")\n```\n\nThe third parameter on the `#lang` line is the base language used by the\nlanguage mixin. The resulting language will use the bindings from the\nbase language, but support sweet expression syntax. You can provide any\nlanguage here such as `racket`, `typed/racket`, or others.\n\nFor example:\n\n```racket\n#lang sweet-exp typed/racket\n\ndefine: fact([n : Integer]) : Integer\n  if zero?(n)\n     1\n     {n * fact{n - 1}}\n```\n\nOr alternatively:\n\n```racket\n#lang sweet-exp lazy\n\ndefine fibs\n  cons 0 cons(1 map(+ fibs cdr(fibs)))\n\ndisplayln list-ref(fibs 8)\n```\n\nKnown issues: quasi-quotation combined with grouping does not behave\naccording to the specification.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakikawa%2Fsweet-racket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakikawa%2Fsweet-racket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakikawa%2Fsweet-racket/lists"}