Socket
Socket
Sign inDemoInstall

solidity-parser

Package Overview
Dependencies
74
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.2.0

.travis.yml

2

cli.js

@@ -11,5 +11,5 @@ #!/usr/bin/env node

} else {
SolidityParser.parseFile(argv.f || argv.file || argv._[0]);
result = SolidityParser.parseFile(argv.f || argv.file || argv._[0]);
}
console.log(JSON.stringify(result, null, 2));

@@ -15,3 +15,3 @@ var PEG = require("pegjs");

var parserfile = fs.readFileSync(path.resolve("./" + parser_name + ".pegjs"), {encoding: "utf8"});
return PEG.buildParser(parserfile);
return PEG.generate(parserfile);
} else {

@@ -18,0 +18,0 @@ return builtParsers[parser_name];

{
"name": "solidity-parser",
"version": "0.1.1",
"version": "0.2.0",
"description": "PEG.js Solidity parser for Javascript",
"main": "index.js",
"scripts": {
"build": "./node_modules/.bin/pegjs ./solidity.pegjs ./build/parser.js && ./node_modules/.bin/pegjs ./imports.pegjs ./build/imports_parser.js",
"test": "./node_modules/.bin/mocha --reporter spec"
"build": "pegjs -o ./build/parser.js ./solidity.pegjs && pegjs -o ./build/imports_parser.js ./imports.pegjs",
"test": "mocha --timeout 5000 --reporter spec"
},

@@ -17,5 +17,5 @@ "bin": {

"mocha": "^2.4.5",
"pegjs": "^0.9.0",
"pegjs": "^0.10.0",
"yargs": "^4.6.0"
}
}

@@ -0,1 +1,5 @@

[![npm](https://img.shields.io/npm/v/solidity-parser.svg)]()
[![npm](https://img.shields.io/npm/dm/solidity-parser.svg)]()
[![Build Status](https://travis-ci.org/ConsenSys/solidity-parser.svg?branch=master)](https://travis-ci.org/ConsenSys/solidity-parser)
# Solidity Parser

@@ -33,3 +37,3 @@

var SolitiyParser = require("solidity-parser");
var SolidityParser = require("solidity-parser");

@@ -36,0 +40,0 @@ var result = SolidityParser.parseFile("./path/to/file.sol", "imports");

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc