{"id":16309115,"url":"https://github.com/susisu/grasspiler","last_synced_at":"2025-10-11T14:39:05.026Z","repository":{"id":57163803,"uuid":"60746922","full_name":"susisu/Grasspiler","owner":"susisu","description":"Untyped lambda calculus to Grass compiler","archived":false,"fork":false,"pushed_at":"2017-01-13T08:13:19.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-22T04:57:48.778Z","etag":null,"topics":["esolang","grass","javascript","lambda-calculus"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/susisu.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":"2016-06-09T03:29:50.000Z","updated_at":"2025-03-19T01:58:06.000Z","dependencies_parsed_at":"2022-09-01T03:11:45.799Z","dependency_job_id":null,"html_url":"https://github.com/susisu/Grasspiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/susisu/Grasspiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susisu%2FGrasspiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susisu%2FGrasspiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susisu%2FGrasspiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susisu%2FGrasspiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/susisu","download_url":"https://codeload.github.com/susisu/Grasspiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susisu%2FGrasspiler/sbom","scorecard":{"id":860436,"data":{"date":"2025-08-11","repo":{"name":"github.com/susisu/Grasspiler","commit":"74a938ce4bc9850875dbc4885b44a7e33fcbadd4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T01:07:09.323Z","repository_id":57163803,"created_at":"2025-08-24T01:07:09.323Z","updated_at":"2025-08-24T01:07:09.323Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007456,"owners_count":26084313,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["esolang","grass","javascript","lambda-calculus"],"created_at":"2024-10-10T21:19:41.830Z","updated_at":"2025-10-11T14:39:04.992Z","avatar_url":"https://github.com/susisu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grasspiler\n[Untyped lambda calculus](https://en.wikipedia.org/wiki/Lambda_calculus) to [Grass](http://www.blue.sky.or.jp/grass/) compiler.\n\nGrass is an esoteric language based on the untyped lambda calculus, and its program is written by using only three characters: `w`, `W`, and `v`.\n\n## Install\n``` shell\nnpm i -g @susisu/grasspiler\n```\n\n## Usage\n``` shell\ngrasspile \u003csrcfile\u003e -o \u003coutfile\u003e\n```\nFor more information about the CLI, see `grasspile -h`.\n\n### Source language spec\nThe source language is (of course) based on the untyped lambda calculus, and has a simple ML-like syntax.\n\nThe syntax is defined as below (though this is very informal and incomplete):\n\n```\n\u003cprogram\u003e ::= \u003cdefinition\u003e+\n\u003cdefinition\u003e ::= let \u003cident\u003e+ = \u003cterm\u003e\n\u003cterm\u003e ::= \u003cident\u003e                            variable\n           \u003cterm\u003e \u003cterm\u003e                      application\n           λ\u003cident\u003e+. \u003cterm\u003e                  lambda abstraction\n           let \u003cident\u003e+ = \u003cterm\u003e in \u003cterm\u003e    local binding\n```\n\nA lambda abstraction can be written in several kinds of notation, and also mixture of them.\n\n``` ml\n(* lambda calculus-like *)\nlet S = λx y z. x z (y z)\n(* ML-like *)\nlet S = fun x y z -\u003e x z (y z)\n(* Haskell-like *)\nlet S = \\x y z -\u003e x z (y z)\n(* mixture of something *)\nlet S = fun x y z =\u003e x z (y z)\n(* Of course you can also write it like this *)\nlet S x y z = x z (y z)\n```\n\nThe primitives `Out`, `Succ`, `w` and `In` are exposed to the environment,\nand the value defined at the end of the source program is called by the Grass VM with itself as an argument.\n\n### Example\nHere is a simple program, which takes a character as input, and output it repeatedly.\n``` ml\n(* fixed-point operator *)\nlet fix = fun f -\u003e\n    (fun x -\u003e f (fun y -\u003e x x y))\n    (fun x -\u003e f (fun y -\u003e x x y))\n\n(* infinite loop *)\nlet loop = fix (fun loop c -\u003e\n    let _ = Out c in\n    loop c\n)\n\nlet main _ = loop (In w)\n```\n\nSave this source program as `resonance.ml` (it is not an ML program, though) and compile it with `grasspile`.\n\n``` shell\n$ grasspile resonance.ml -o resonance.w\n$ cat resonance.w\nwwWWwwWwwvwwWWWwWWWwvwWWwWWWwwWwwvwwWWWWWWwWWWwwvWWwvwWWWWWWWWWWwwwwwwwwwWWWw\n```\n\nThen you can run the compiled program with a Grass compiler/interpreter (for instance, [Grass-JS](https://github.com/susisu/Grass-JS)).\n\n``` shell\n$ grass resonance.w\nA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...\n```\n\nStop it if you are satisfied.\n\n## License\n[MIT License](http://opensource.org/licenses/mit-license.php)\n\n## Author\nSusisu ([GitHub](https://github.com/susisu), [Twitter](https://twitter.com/susisu2413))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusisu%2Fgrasspiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsusisu%2Fgrasspiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusisu%2Fgrasspiler/lists"}