{"id":17866553,"url":"https://github.com/LightQuantumArchive/l-lang-parser-rs","last_synced_at":"2025-03-21T07:31:53.190Z","repository":{"id":38334056,"uuid":"315408871","full_name":"LightQuantumArchive/l-lang-parser-rs","owner":"LightQuantumArchive","description":"A parser for a toy strict untyped λ-calculus language called L-lang.","archived":false,"fork":false,"pushed_at":"2022-06-06T19:32:51.000Z","size":97,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T19:22:01.808Z","etag":null,"topics":[],"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/LightQuantumArchive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-23T18:43:48.000Z","updated_at":"2025-01-14T00:03:53.000Z","dependencies_parsed_at":"2022-07-25T20:30:49.905Z","dependency_job_id":null,"html_url":"https://github.com/LightQuantumArchive/l-lang-parser-rs","commit_stats":null,"previous_names":["lightquantumarchive/l-lang-parser-rs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Fl-lang-parser-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Fl-lang-parser-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Fl-lang-parser-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightQuantumArchive%2Fl-lang-parser-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LightQuantumArchive","download_url":"https://codeload.github.com/LightQuantumArchive/l-lang-parser-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244758150,"owners_count":20505595,"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":[],"created_at":"2024-10-28T09:37:32.934Z","updated_at":"2025-03-21T07:31:52.919Z","avatar_url":"https://github.com/LightQuantumArchive.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# L-lang Parser\n\nA parser for a toy strict untyped λ-calculus language called L-lang.\n\n## Get Started\n\n### L Language\n\nYou may view the syntax of L-lang in [l.pest](src/l.pest).\n\nThere's an example L-lang program called [examples/evenb.l](examples/evenb.l). \n\n### Export to Coq code\n\n``` coq\n$ l-lang-parser-rs export run.l\nDefinition my_evenb: tm :=\n  (rec (abs \"my_evenb\"\n    (abs \"n\"\n      (mat (var \"n\") [\n        (\"S\", [\"x\"],\n          (mat (var \"x\") [\n            (\"S\", [\"x\"],\n              (app (var \"my_evenb\") (var \"x\")));\n            (\"O\", [],\n              (const \"false\"))\n          ]));\n        (\"O\", [],\n          (const \"true\"))\n      ])\n    )\n  )).\n\nDefinition main: tm :=\n  (app my_evenb (app (const \"S\") (app (const \"S\") (app (const \"S\") (app (const \"S\") (const \"O\")))))).\n```\n\n### Run program\n\n``` coq\n$ l-lang-parser-rs export run.l\n     = Some (const \"true\")\n     : option tm\n```\n\n## License\n\nThis project is licensed under the [Apache License 2.0](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightQuantumArchive%2Fl-lang-parser-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLightQuantumArchive%2Fl-lang-parser-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightQuantumArchive%2Fl-lang-parser-rs/lists"}