{"id":20109990,"url":"https://github.com/distributed-lab/circom-g4-grammar","last_synced_at":"2026-03-03T23:32:33.099Z","repository":{"id":250169294,"uuid":"829582943","full_name":"distributed-lab/circom-g4-grammar","owner":"distributed-lab","description":"G4 grammar for Circom","archived":false,"fork":false,"pushed_at":"2024-10-17T11:13:58.000Z","size":10512,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-19T15:03:34.460Z","etag":null,"topics":["antlr4","circom","grammar"],"latest_commit_sha":null,"homepage":"","language":"Circom","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/distributed-lab.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}},"created_at":"2024-07-16T18:16:59.000Z","updated_at":"2024-10-17T11:14:00.000Z","dependencies_parsed_at":"2024-09-07T19:49:30.803Z","dependency_job_id":"de43218f-9300-4457-a5e8-7d0c0e474c73","html_url":"https://github.com/distributed-lab/circom-g4-grammar","commit_stats":null,"previous_names":["distributed-lab/circom-g4-grammar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/distributed-lab/circom-g4-grammar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Fcircom-g4-grammar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Fcircom-g4-grammar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Fcircom-g4-grammar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Fcircom-g4-grammar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distributed-lab","download_url":"https://codeload.github.com/distributed-lab/circom-g4-grammar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Fcircom-g4-grammar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30065823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["antlr4","circom","grammar"],"created_at":"2024-11-13T18:10:02.668Z","updated_at":"2026-03-03T23:32:33.080Z","avatar_url":"https://github.com/distributed-lab.png","language":"Circom","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Circom G4 Grammar Specification\n\nThis repository provides a Circom grammar implementation in G4 format using the [ANTLR](https://www.antlr.org) tool. \n\n## Grammar Compatibility\n\nSource: [Circom Parser Grammar](https://github.com/iden3/circom/blob/master/parser/src/lang.lalrpop)\n\n### Issues\n\n- The grammar described in this repository is unofficial. Consequently, the following issues may arise:\n    - The grammar may not be up-to-date.\n    - Some structures that are valid in the official grammar may not be valid in this version due to factors such as redundancy or complexity.\n\nDespite this, we strive to cover 99.9% of the existing Circom code, offering a simple and efficient structure. The parser is capable of handling both `circomlib` and `iden3-circuits`.\n\n## Contribution\n\nTo contribute, first clone the repository:\n\n```shell\ngit clone git@github.com:distributed-lab/circom-parser.git\ncd circom-parser\n```\n\nNext, install the dependencies:\n\n```shell\ngo mod tidy\n```\n\nThen, synchronize the git submodules:\n\n```shell\ngit submodule update --init\ngit submodule update --remote\n```\n\nAfter initializing the submodules, you are ready to generate the Go bindings for the grammar and run tests with a single command:\n\n```shell\nmake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributed-lab%2Fcircom-g4-grammar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistributed-lab%2Fcircom-g4-grammar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributed-lab%2Fcircom-g4-grammar/lists"}