solidity-pegjs-parser

solidity-pegjs-parser

Usage no npm install needed!

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

README

Solidity PEGJS Grammar Parser

npm solidity-pegjs-parser

Abstract

This takes solidity-parser-sc (npm package) and updates it and also provides a GitHub repository, as there is no repository listed under NPM. Nor is it actually maintained.

Overview

original consensys/solidity-parser with additional project specific grammar rules

For code analysis of processing systems that pre-processing to deploy or run their tests.

Updates to Grammar

A full list can be found under the DIFF.md document here

 HexStringLiteral
-  = HexToken StringLiteral
+  = HexToken val:StringLiteral {
+    return {
+      type: "HexLiteral",
+      value: val,
+      start: location().start.offset,
+      end: location().end.offset
+    };
+  }

License

ISC / MIT