tree-sitter-solidity-unofficial

Crates.iotree-sitter-solidity-unofficial
lib.rstree-sitter-solidity-unofficial
version0.0.2
sourcesrc
created_at2023-04-13 15:05:24.758483
updated_at2023-04-14 02:34:37.842507
descriptionSolidity grammar for the tree-sitter parsing library (cloning from JoranHonig/tree-sitter-solidity)
homepage
repositoryhttps://github.com/hdthinh1012/tree-sitter-solidity
max_upload_size
id838379
size2,562,838
Huỳnh Đức Thịnh (hdthinh1012)

documentation

README

🌴 tree-sitter-solidity

Node.js CI npm version

💡 this grammar is still in development, the structure of the generated AST is not stable

This repository contains a grammar for 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:

-> 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!

Commit count: 225

cargo fmt