federicobond / solidity-parser-antlr

A Solidity parser for JS built on top of a robust ANTLR4 grammar
MIT License
155 stars 55 forks source link

Unable to parse hex literal where 0X is used. #37

Closed thakkarparth007 closed 6 years ago

thakkarparth007 commented 6 years ago

Hi, many contracts are using 0XABC as a hex literal but the grammar only allows for 0xABC, because of this parsing of a lot of contracts is failing. Remix IDE allows 0X, so I guess it should be allowed here as well, right?

federicobond commented 6 years ago

Yup, another place where grammar differs between specification and implementation. Thanks for bringing this up Parth! Will update and release shortly.

federicobond commented 6 years ago

Fixed. Please try version 0.3.2 and report any errors you find.