{"id":16617553,"url":"https://github.com/ddworken/racython","last_synced_at":"2026-04-17T16:32:12.480Z","repository":{"id":80931854,"uuid":"74299284","full_name":"ddworken/racython","owner":"ddworken","description":"A Racket interpreter written in Python","archived":false,"fork":false,"pushed_at":"2020-06-29T00:39:23.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T04:27:24.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddworken.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-20T20:04:03.000Z","updated_at":"2023-11-04T11:58:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e5daf9a-ddea-4e01-8c6c-de3a03311e03","html_url":"https://github.com/ddworken/racython","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ddworken/racython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddworken%2Fracython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddworken%2Fracython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddworken%2Fracython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddworken%2Fracython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddworken","download_url":"https://codeload.github.com/ddworken/racython/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddworken%2Fracython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31936587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-10-12T02:17:06.030Z","updated_at":"2026-04-17T16:32:12.459Z","avatar_url":"https://github.com/ddworken.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# racython\n\nInspired by my Fundamentals of Computer Science 1 course, this is a Racket interpreter written in Python. To be more precise, it is an ISL (Intermediate Student Language) interpreter with the addition of ```begin``` and ```display```. \n\nThis code is still extremely experiment but is functional. As an example of what works, the below code runs properly in racython with the same result as in Racket: \n\n``` racket\n(define-struct leaf [val])\n(define-struct node [left val right])\n;;; A [WeightedTreeOf X] is one of:\n;;;   - (make-leaf X)\n;;;   - (make-node [WeightedTreeOf X] X [WeightedTreeOf X])\n;;; Interpretation: Everything to the left the center val is less\n;;;                 than it and everything to the right is greater.\n\n;;; [WeightedTreeOf X] X -\u003e Boolean\n(define wtree-contains? (lambda (wtree x)\n  (cond [(leaf? wtree) (equal? x (leaf-val wtree))]\n        [(equal? x (node-val wtree)) #true]\n        [(\u003c x (node-val wtree))\n         (wtree-contains? (node-left wtree) x)]\n        [else (wtree-contains? (node-right wtree) x)])))\n        \n(define t2.L (make-node (make-leaf 2) 3 (make-leaf 4)))\n(define t2.R (make-node (make-leaf 6) 7 (make-leaf 8)))\n(define t3 (make-node t2.L 5 t2.R))\n\n(check-expect (wtree-contains? (make-leaf 5) 5) #true)\n(check-expect (wtree-contains? (make-leaf 5) 6) #false)\n(check-expect (wtree-contains? t3 5) #true)\n(check-expect (wtree-contains? t3 2) #true)\n(check-expect (wtree-contains? t3 3) #true)\n(check-expect (wtree-contains? t3 4) #true)\n(check-expect (wtree-contains? t3 6) #true)\n(check-expect (wtree-contains? t3 7) #true)\n(check-expect (wtree-contains? t3 8) #true)\n(check-expect (wtree-contains? t3 9) #false)\n```\n\nFor more examples, see [testing.py](https://github.com/ddworken/racython/blob/master/testing.py)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddworken%2Fracython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddworken%2Fracython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddworken%2Fracython/lists"}