{"id":13996009,"url":"https://github.com/ikskuh/parser-toolkit","last_synced_at":"2025-09-02T17:33:56.738Z","repository":{"id":45861108,"uuid":"397882674","full_name":"ikskuh/parser-toolkit","owner":"ikskuh","description":"A toolkit that makes it easier to write recursive-descent parsers in Zig.","archived":false,"fork":false,"pushed_at":"2025-09-02T05:34:35.000Z","size":1155,"stargazers_count":79,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-02T07:21:02.088Z","etag":null,"topics":["compiler","compiler-frontend","parser","recursive-descent-parser","tokenizer","tokenizer-parser","zig","zig-package","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/ikskuh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"MasterQ32"}},"created_at":"2021-08-19T09:09:46.000Z","updated_at":"2025-09-02T05:34:40.000Z","dependencies_parsed_at":"2023-01-30T01:35:10.845Z","dependency_job_id":"61c3a020-3ba7-48d6-8ce4-3b99bb739f04","html_url":"https://github.com/ikskuh/parser-toolkit","commit_stats":{"total_commits":35,"total_committers":11,"mean_commits":"3.1818181818181817","dds":0.7142857142857143,"last_synced_commit":"6aafc4cd8f82e053b35a4b96dd7255164a487f77"},"previous_names":["ikskuh/parser-toolkit","masterq32/parser-toolkit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ikskuh/parser-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikskuh%2Fparser-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikskuh%2Fparser-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikskuh%2Fparser-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikskuh%2Fparser-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikskuh","download_url":"https://codeload.github.com/ikskuh/parser-toolkit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikskuh%2Fparser-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273322158,"owners_count":25085035,"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-09-02T02:00:09.530Z","response_time":77,"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":["compiler","compiler-frontend","parser","recursive-descent-parser","tokenizer","tokenizer-parser","zig","zig-package","ziglang"],"created_at":"2024-08-09T14:03:43.782Z","updated_at":"2025-09-02T17:33:56.701Z","avatar_url":"https://github.com/ikskuh.png","language":"Zig","readme":"# A parser toolkit\n\n![Project Logo](design/logo.png)\n\nThis repo contains a tiny parser toolkit that can be used to build new parsers and programming languages.\n\nIt provides:\n- [x] Configurable tokenizer\n- [x] Parser core (accept functions with state restoration)\n- [ ] Compiler error management (emission, rendering, source locations)\n\n\n## Demo\n\nInvoke `zig build run` to run a tiny command line calculator that can evaluate basic expressions, parens and invoke functions:\n```\n$ zig build run\n? 10\n= 10\n? 10 + 10\n= 20\n? 5 * 3\n= 15\n? a = 10\n= 10\n? sqrt(a)\n= 3.1622776601683795\n? sin(3.14)\n= 0.0015926529164868282\n? a = a + 1\n= 11\n? a = a + 1\n= 12\n? ^D\n```\n\nAvailable functions are:\n```zig\nfn sin(v: f64) f64\nfn cos(v: f64) f64\nfn tan(v: f64) f64\nfn sqrt(v: f64) f64\nfn pow(a: f64, b: f64) f64\nfn ln(v: f64) f64\nfn ln10(v: f64) f64\nfn ln2(v: f64) f64\nfn log(b: f64, v: f64) f64\n```\n","funding_links":["https://github.com/sponsors/MasterQ32"],"categories":["Zig"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikskuh%2Fparser-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikskuh%2Fparser-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikskuh%2Fparser-toolkit/lists"}