abch-tree-sitter-solidity-1.1.0
توضیحات
Solidity grammar for the Tree-sitter parsing library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | abch-tree-sitter-solidity-1.1.0 |
| نام | abch-tree-sitter-solidity |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ackee Blockchain |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Ackee-Blockchain/tree-sitter-solidity |
| آدرس اینترنتی | https://pypi.org/project/abch-tree-sitter-solidity/ |
| مجوز | MIT |
## 🌴 tree-sitter-solidity
[](https://github.com/JoranHonig/tree-sitter-solidity/actions/workflows/node.js.yml)
[](https://badge.fury.io/js/tree-sitter-solidity)
> 💡 this grammar is still in development, the structure of the generated AST is not stable
This repository contains a grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
The 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.
### Navigating this repository
The primary file in this repository is `grammar.js` which describes the tree-sitter grammar.
```
# Primary file:
grammar.js
# Tests:
/test/**/*
# Auto generated:
/src/**/*
index.js
binding.gyp
```
### References
-> Ethereum solidity grammar:
- https://github.com/ethereum/solidity/blob/develop/docs/grammar/SolidityParser.g4
- https://github.com/ethereum/solidity/blob/develop/docs/grammar/SolidityLexer.g4
- https://docs.soliditylang.org/en/latest/grammar.html?#
-> Tree-sitter javascript grammar: https://github.com/tree-sitter/tree-sitter-javascript/blob/master/grammar.js
-> Solidity antlr grammar: https://github.com/ConsenSys/solidity-parser-antlr
Major inspriration & some structures have been taken from tree-sitter-javascript, a big thanks to the contributors to this repo!
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.1 | abch-tree-sitter |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl abch-tree-sitter-solidity-1.1.0:
pip install abch-tree-sitter-solidity-1.1.0.whl
نصب پکیج tar.gz abch-tree-sitter-solidity-1.1.0:
pip install abch-tree-sitter-solidity-1.1.0.tar.gz