Skip to main content

Solidity ANTLR4 grammar Python parser

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openzeppelin_solidity_grammar_parser-0.0.5.tar.gz (67.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file openzeppelin_solidity_grammar_parser-0.0.5.tar.gz.

File metadata

File hashes

Hashes for openzeppelin_solidity_grammar_parser-0.0.5.tar.gz
Algorithm Hash digest
SHA256 6a81b1af51c42eee3b7502e1d200cd1c94037e948b9895e002f3670694f3f028
MD5 79a81a6bc2a9f31959b25becc2034075
BLAKE2b-256 62dbf871319fdadc7aa695416e279ed3951d05eae69f6fcb472a2ddc3f99b7fc

See more details on using hashes here.

File details

Details for the file openzeppelin_solidity_grammar_parser-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for openzeppelin_solidity_grammar_parser-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 00db26614188edb22ee47318dbda115ea6a398de04dc0dbda5de933c6bc19985
MD5 b1a0490a57d77f22c2d42143ad3c34c6
BLAKE2b-256 23d28bd10007464f0ed9bb7eb39d1e206fd86322849c643e7b639fbb9b90d442

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page