{"repo":"OpenZeppelin/sgp","free":true,"listed":false,"github":"https://github.com/OpenZeppelin/sgp","clone":"git clone https://github.com/OpenZeppelin/sgp.git","description":"Solidity ANTLR4 grammar Python parser","language":"Python","stars":13,"topics":["antlr4","antlr4-grammar","antlr4-python3","ast","solidity"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Solidity Grammar Parser SGP - is a Python package that allows to build an AST for a given Solidity source code. Kudos - The original grammar Solidity.g4 was developed and maintained by solidity-parser-antlr. - The node types system and AST visitor are based on solidity-parser-parser. Build Run build.sh that does the following: - checks if Python is installed and downloads it if not - including pip - including antlr4-python3-runtime package - checks if Java is installed and downloads it if not - including jre - including jdk - checks if antlr4.jar is downloaded and downloads it if not - runs the ANTLR jar file and compiles the Solidity.g4 file. The output result can be found in the ./out directory Tests Run: - python -m coverage run -m unittest discover -v && python -m coverage report for the Python tests - run-tests.sh to execute antlr4 parse testing License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/OpenZeppelin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OpenZeppelin/sgp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}