{"id":13749291,"url":"https://github.com/haraldmaida/lamcal","last_synced_at":"2025-10-13T13:36:54.278Z","repository":{"id":62441824,"uuid":"145369267","full_name":"haraldmaida/lamcal","owner":"haraldmaida","description":"A lambda calculus parser, evaluator and repl","archived":false,"fork":false,"pushed_at":"2021-10-30T08:59:30.000Z","size":198,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T22:36:17.394Z","etag":null,"topics":["calculus","evaluator","lambda","math","parser","repl","sciene"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haraldmaida.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-20T05:16:56.000Z","updated_at":"2025-05-04T03:30:38.000Z","dependencies_parsed_at":"2022-11-01T23:18:13.529Z","dependency_job_id":null,"html_url":"https://github.com/haraldmaida/lamcal","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/haraldmaida/lamcal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraldmaida%2Flamcal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraldmaida%2Flamcal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraldmaida%2Flamcal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraldmaida%2Flamcal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haraldmaida","download_url":"https://codeload.github.com/haraldmaida/lamcal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haraldmaida%2Flamcal/sbom","scorecard":{"id":455543,"data":{"date":"2025-08-11","repo":{"name":"github.com/haraldmaida/lamcal","commit":"6bb53550b3441affaa28a941f01e6ce917aeb652"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"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":"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: Apache License 2.0: 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-19T09:30:24.750Z","repository_id":62441824,"created_at":"2025-08-19T09:30:24.750Z","updated_at":"2025-08-19T09:30:24.750Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015351,"owners_count":26085684,"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-13T02:00:06.723Z","response_time":61,"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":["calculus","evaluator","lambda","math","parser","repl","sciene"],"created_at":"2024-08-03T07:00:58.630Z","updated_at":"2025-10-13T13:36:54.251Z","avatar_url":"https://github.com/haraldmaida.png","language":"Rust","funding_links":[],"categories":["Lambda Calculus"],"sub_categories":["Libraries"],"readme":"\n# Lamcal\n\n[![Crates.io][crates_badge]][crate]\n[![Docs.rs][docs_badge]][documentation]\n[![Linux Build Status][travis_badge]][Travis CI]\n[![Windows Build Status][appveyor_badge]][Appveyor CI]\n[![codevoc.io][codecov_badge]][codecoverage]\n[![Apache-2.0][license_badge]][Apache-2.0]\n\n[crates_badge]: https://img.shields.io/crates/v/lamcal.svg\n[docs_badge]: https://docs.rs/lamcal/badge.svg\n[travis_badge]: https://travis-ci.org/haraldmaida/lamcal.svg?branch=master\n[appveyor_badge]: https://ci.appveyor.com/api/projects/status/github/haraldmaida/lamcal?branch=master\u0026svg=true\n[codecov_badge]: https://codecov.io/gh/haraldmaida/lamcal/branch/master/graph/badge.svg\n[license_badge]: https://img.shields.io/badge/license-Apache%2D%2D2%2E0-blue.svg\n\n[crate]: https://crates.io/crates/lamcal\n[documentation]: https://docs.rs/lamcal\n[Travis CI]: https://travis-ci.org/haraldmaida/lamcal\n[Appveyor CI]: https://ci.appveyor.com/project/innoave/lamcal\n[codecoverage]: https://codecov.io/github/haraldmaida/lamcal?branch=master\n[Apache-2.0]: https://www.apache.org/licenses/LICENSE-2.0\n[license]: LICENSE\n[lamcal]: https://github.com/haraldmaida/lamcal\n[lamcal-repl]: https://github.com/haraldmaida/lamcal/tree/master/repl\n\n[lamcal] is a [Lambda Calculus] parser and evaluator and a separate command line REPL application \nto play around with lambda expressions interactively. All code is written in [Rust].\n \nHighlights:\n\n* Implementation of the pure untyped lambda calculus\n* Support for arbitrary huge terms by using trampolining instead of recursion in all functions\n* Feature rich [command line REPL application]((https://github.com/haraldmaida/lamcal/tree/master/repl))\n  ([separate crate](https://crates.io/crates/lamcal-repl))\n \nThe library can be used to\n    \n* parse lambda expressions in classic notation into terms, like `parse_str(\"(λx.(λy.x y) a) b\")`\n  \u003cbr /\u003e or `parse_str(\"(\\\\x.(\\\\y.x y) a) b\")`\n* construct terms programmatically using functions, e.g. `lam(\"x\", app(var(\"x\"), var(\"y\")))`\n* construct a sequence of function applications using the macro `app!`, e.g.\n  `app![var(\"a\"), var(\"b\"), var(\"c\")]` which is equivalent to \n  `app(app(var(\"a\"), var(\"b\")), var(\"c))`\n* evaluate lambda terms to replace variables with predefined terms bound to the variable's name in\n  the environment  \n* apply α-conversion to terms using different strategies, such as enumeration or appending the tick\n  symbol\n* apply β-reduction to terms using different strategies, such as call-by-name, normal-order or \n  call-by-value\n* be extended by implementing user specific strategies for α-conversion and β-reduction.\n\nThe separate crate [lamcal-repl] \n([crate](https://crates.io/crates/lamcal-repl), \n [github-repository](https://github.com/haraldmaida/lamcal/tree/master/repl)\n)\nprovides the command line REPL (read-evaluate-print-loop) application to play around with lambda \ncalculus terms and applying α-conversion and β-reduction interactively.\n\nFeatures:\n\n* Evaluation functions are provided in two variants: An associated function, e.g. `Term::reduce`,\n  that mutates the term in place and a standalone function, e.g. `reduce`, that leaves the original\n  term unchanged and returns the result as a new term.\n* Strategies for α-conversion and β-reduction are defined as traits to easily implement custom\n  strategies and use it with the functionality of this library.\n* Inspection system to inspect every single intermediate state of a term during evaluation and \n  reduction and to stop processing depending on arbitrary conditions.\n* No recursion in any of the functions dealing with the recursive data structure of `Term` to avoid\n  stack overflow errors when applied on huge terms. Instead all functions follow the trampolining\n  pattern.\n* The parser gives detailed information about parse errors, like the position of the error in the \n  source stream and what would have been expected instead in a valid expression.\n* Optional support for [`failure`] crate compatible error types.  \n\n## Usage\n\nTo use [lamcal] as a library in your project add this to your `Cargo.toml` file:\n\n```toml\n[dependencies]\nlamcal = \"0.4\"\n```\n\nand this to your crate root:\n\n```rust\nextern crate lamcal;\n```\n\nFor details about the library see the [documentation] at crates.io.\n\nThis library optionally supports the [`failure`] crate. The support for the `failure` crate is a crate\nfeature. To enable it add the dependency to your `Cargo.toml` like so:\n\n```toml\n[dependencies]\nlamcal = { version = \"0.4\", features = [\"failure\"] }\n```\n\n## License\n\nLicensed under Apache License, Version 2.0\u003cbr/\u003e\nsee [LICENSE] or http://www.apache.org/licenses/LICENSE-2.0 for details.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\nlicensed as above, without any additional terms or conditions.\n\n--------------------------------------------------------------------------------\n[`failure`]: https://crates.io/crates/failure\n[de bruijn index]: https://en.wikipedia.org/wiki/De_Bruijn_index\n[krivine machine]: https://en.wikipedia.org/wiki/Krivine_machine\n[lambda calculus]: https://en.wikipedia.org/wiki/Lambda_calculus\n[lcss]: https://www.youtube.com/watch?v=GYCYq0lEFhE\n[rust]: https://www.rust-lang.org\n[SECD machine]: https://en.wikipedia.org/wiki/SECD_machine\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharaldmaida%2Flamcal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharaldmaida%2Flamcal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharaldmaida%2Flamcal/lists"}