solidity-pegjs-parser

2.0.2 • Public • Published

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

Package Sidebar

Install

npm i solidity-pegjs-parser

Weekly Downloads

3

Version

2.0.2

License

ISC

Unpacked Size

288 kB

Total Files

23

Last publish

Collaborators

  • sambacha