Skip to main content

Lint and test + coverage ANTLR4 test

Solidity Grammar Parser

SGP - is a Python package that allows to build an AST for a given Solidity source code.

Kudos

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

Metadata

Release files for openzeppelin-solidity-grammar-parser 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openzeppelin-solidity-grammar-parser 0.0.5
File Size Uploaded
openzeppelin_solidity_grammar_parser-0.0.5.tar.gz 67.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openzeppelin-solidity-grammar-parser 0.0.5
File Interpreter ABI Platform
openzeppelin_solidity_grammar_parser-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 138.2 kB

Release files / openzeppelin_solidity_grammar_parser-0.0.5.tar.gz

Download URL openzeppelin_solidity_grammar_parser-0.0.5.tar.gz
Size 67.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6a81b1af51c42eee3b7502e1d200cd1c94037e948b9895e002f3670694f3f028
BLAKE2b-256 checksum
How to use checksums
62dbf871319fdadc7aa695416e279ed3951d05eae69f6fcb472a2ddc3f99b7fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / openzeppelin_solidity_grammar_parser-0.0.5-py3-none-any.whl

Download URL openzeppelin_solidity_grammar_parser-0.0.5-py3-none-any.whl
Size 70.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00db26614188edb22ee47318dbda115ea6a398de04dc0dbda5de933c6bc19985
BLAKE2b-256 checksum
How to use checksums
23d28bd10007464f0ed9bb7eb39d1e206fd86322849c643e7b639fbb9b90d442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page