duaraghav8 / solparse

Solidity Parser for Solium

Home Page:https://www.npmjs.com/package/solparse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

solidity-parser bugs (as of this writing)

duaraghav8 opened this issue · comments

List of lurking bugs in solidity-parser

  1. No 'name' field in StructDeclaration - this means we never get to know the name of the struct from the StructDeclaration Node object. (I made a PR for this but no response even after 2 weeks :()
  2. IsStatement malfunctioning - When using inheritance with Contract or Library, the syntax is:
contract Car is Vehicle, Engine {
        //definition
}

Solidity parser doesn't parse the 'is' section properly. the is Array's first object is fine (vehicle), but subsequent element is just a comma, not another object for Engine.

  1. Exponentiation operator (double asterisk) not being parsed by solidity parser
  2. A statement like uint x = 2 days; doesn't get parsed. It gives error at start of 'days'. (though SP parses the other tokens: "2 wei / 2 szabo / 2 finny, etc.", "days" is a valid suffix too but doesn't have support.
  3. Parse of var (x) = 100; failing because x is surrounded by brackets (which is legal in solidity).