solidity-parser-scx

PEG.js Solidity parser for Javascript

Usage no npm install needed!

<script type="module">
  import solidityParserScx from 'https://cdn.skypack.dev/solidity-parser-scx';
</script>

README

consensys/solidity-parser with additional project specific grammar rules and solidity 0.5 support

For code analysis of contract systems that use custom pre-processsing to deploy or run their tests.

Additions:

Interpolation (Gnosis):

  • e.g. {{Variable}}: used to defer address assignments to contract contructors until the contracts' execution context is known.
EventFactory constant eventFactory = EventFactory({{EventFactory}});
address constant marketMaker = {{LMSRMarketMaker}};

License

MIT