{"id":15018720,"url":"https://github.com/joranhonig/tree-sitter-solidity","last_synced_at":"2025-05-15T18:06:08.603Z","repository":{"id":37575697,"uuid":"291292558","full_name":"JoranHonig/tree-sitter-solidity","owner":"JoranHonig","description":"Solidity grammar for tree sitter","archived":false,"fork":false,"pushed_at":"2025-01-29T09:46:37.000Z","size":2825,"stargazers_count":155,"open_issues_count":3,"forks_count":44,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-01T00:32:12.451Z","etag":null,"topics":["grammar","hacktoberfest","parser","smart-contracts","solidity","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"Python","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/JoranHonig.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-29T15:01:16.000Z","updated_at":"2025-03-31T04:26:35.000Z","dependencies_parsed_at":"2024-11-13T12:52:27.841Z","dependency_job_id":"c2c72193-ab44-4135-965c-a8e01463fda7","html_url":"https://github.com/JoranHonig/tree-sitter-solidity","commit_stats":{"total_commits":283,"total_committers":12,"mean_commits":"23.583333333333332","dds":0.07067137809187274,"last_synced_commit":"bf268722bc6406429776f71f012e6d1a88801931"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoranHonig%2Ftree-sitter-solidity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoranHonig%2Ftree-sitter-solidity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoranHonig%2Ftree-sitter-solidity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoranHonig%2Ftree-sitter-solidity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoranHonig","download_url":"https://codeload.github.com/JoranHonig/tree-sitter-solidity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247760970,"owners_count":20991531,"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":["grammar","hacktoberfest","parser","smart-contracts","solidity","tree-sitter"],"created_at":"2024-09-24T19:52:21.577Z","updated_at":"2025-04-08T01:34:21.648Z","avatar_url":"https://github.com/JoranHonig.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🌴 tree-sitter-solidity \n[![Node.js CI](https://github.com/JoranHonig/tree-sitter-solidity/actions/workflows/node.js.yml/badge.svg)](https://github.com/JoranHonig/tree-sitter-solidity/actions/workflows/node.js.yml)\n[![npm version](https://badge.fury.io/js/tree-sitter-solidity.svg)](https://badge.fury.io/js/tree-sitter-solidity)\n\n\u003e 💡 this grammar is still in development, the structure of the generated AST is not stable\n\nThis repository contains a grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).\n\nThe goal of this project is to provide an parser efficient low-dependency parser for solidity which targets most solidity versions in use and is designed for enabling metaprogramming.\n\n\n### Navigating this repository\nThe primary file in this repository is `grammar.js` which describes the tree-sitter grammar.\n\n```\n# Primary file:\ngrammar.js\n# Tests:\n/test/**/*\n\n# Auto generated:\n/src/**/*\nindex.js\nbinding.gyp\n```\n\n### References\n-\u003e Ethereum solidity grammar: \n- https://github.com/ethereum/solidity/blob/develop/docs/grammar/SolidityParser.g4\n- https://github.com/ethereum/solidity/blob/develop/docs/grammar/SolidityLexer.g4\n- https://docs.soliditylang.org/en/latest/grammar.html?#\n\n-\u003e Tree-sitter javascript grammar: https://github.com/tree-sitter/tree-sitter-javascript/blob/master/grammar.js\n\n-\u003e Solidity antlr grammar: https://github.com/ConsenSys/solidity-parser-antlr\n\nMajor inspriration \u0026 some structures have been taken from tree-sitter-javascript, a big thanks to the contributors to this repo! \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoranhonig%2Ftree-sitter-solidity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoranhonig%2Ftree-sitter-solidity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoranhonig%2Ftree-sitter-solidity/lists"}