Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

Solidity-parser Bugs #6

Closed
duaraghav8 opened this issue Jul 29, 2016 · 0 comments
Closed

Solidity-parser Bugs #6

duaraghav8 opened this issue Jul 29, 2016 · 0 comments
Assignees

Comments

@duaraghav8
Copy link
Owner

duaraghav8 commented Jul 29, 2016

List of (unfixed) bugs in solidity-parser

  1. No support for RegExp - the literal object's value gets set to {}, eg -
    {type: "Literal", value: {}}
  2. No 'name' field in StructDeclaration - this means we never get to know the name of the struct from the StructDeclaration Node object. (I've made a PR for this)
  3. 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'.
  3. Parse of var (x) = 100; failing because x is surrounded by brackets (which is legal in solidity).
@duaraghav8 duaraghav8 self-assigned this Jul 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant