{"id":34147749,"url":"https://github.com/guofei/flang","last_synced_at":"2026-03-12T17:01:51.477Z","repository":{"id":141274965,"uuid":"118217654","full_name":"guofei/Flang","owner":"guofei","description":"A Scheme dialect","archived":false,"fork":false,"pushed_at":"2019-07-23T11:42:31.000Z","size":29,"stargazers_count":25,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-17T18:56:23.023Z","etag":null,"topics":["interpreter","lisp","programming-language","scheme"],"latest_commit_sha":null,"homepage":"","language":"Go","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/guofei.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":"2018-01-20T06:54:46.000Z","updated_at":"2023-06-06T11:25:27.000Z","dependencies_parsed_at":"2024-06-19T07:43:16.594Z","dependency_job_id":"b8cb1564-83fc-410a-aed5-869499e2fe6f","html_url":"https://github.com/guofei/Flang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guofei/Flang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guofei%2FFlang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guofei%2FFlang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guofei%2FFlang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guofei%2FFlang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guofei","download_url":"https://codeload.github.com/guofei/Flang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guofei%2FFlang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30434076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"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":["interpreter","lisp","programming-language","scheme"],"created_at":"2025-12-15T04:30:25.489Z","updated_at":"2026-03-12T17:01:51.453Z","avatar_url":"https://github.com/guofei.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flang\n\nA Scheme dialect written in Golang\n\n## Concept\n\n[The eval-apply cycle](http://sarabander.github.io/sicp/html/4_002e1.xhtml#g_t4_002e1_002e4)\n\n## Hello World\n\n``` lisp\n(p \"hello world\")\n\"hello world\"\n```\n\n## Basic types\n\nNumber, Symbol, String, Boolean, Lambda, List, Pair\n\n### Number\n\n```lisp\n(+ 1 2)\n3\n(- 10 2)\n8\n(* 1.5 2)\n3\n```\n\n### String\n\nExample\n\n```lisp\n(string? \"hello world\")\n#t\n```\n\n### Boolean\n\nExample\n\n```lisp\n(eq? 1 1)\n#t\n(eq? 1 2)\n#f\n```\n\n### Lambda\n\nExample\n\n```lisp\n((lambda (x) (* x x)) 2)\n4\n```\n\n### List\n\nExample\n\n```lisp\n(list? (list 1 2 3))\n#t\n```\n\n### Pair\n\nExample\n\n```lisp\n(pair? (cons 1 2))\n#t\n```\n\n\n## Definition\n\n### Define a varable\n\n``` lisp\n(define \u003cvar\u003e \u003cvalue\u003e)\n```\n\nExample\n\n``` lisp\n(define x 1)\n```\n\n### Define a function\n\n``` lisp\n(define (\u003cvar\u003e \u003cparam1\u003e ... \u003cparamN\u003e) \u003cvalue\u003e)\n```\n\nExample\n\n``` lisp\n\n(define (factorial n)\n  (if (eq? n 1)\n      1\n      (* (factorial (- n 1)) n)))\n(factorial 5)\n\n;; result: 120\n```\n\n## Assignment\n\n``` lisp\n(set! \u003cvar\u003e \u003cvalue\u003e)\n```\n\nExample\n\n``` lisp\n(define x 1)\n(set! x 10)\n(p x)\n\n;; result: 10\n```\n\n## Conditions\n\nif, cond\n\nExample\n\n``` lisp\n(define x 1)\n(if (\u003e x 5) \n    (p \"greater than 5\")\n    (p \"less than 5\"))\n```\n\n## Function\n\n### Lambda\n``` lisp\n((lambda (x) (* x x)) 2)\n4\n```\n\n### Standard Library\n\ncons, car, cdr, list, pair ...\n\n## TODOS\n\n- [x] REPL\n- [ ] Macro\n- [ ] Comment\n- [ ] Go Channel\n- [ ] Bootstrapping\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguofei%2Fflang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguofei%2Fflang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguofei%2Fflang/lists"}