ConsenSysMesh / solidity-parser

Solidity Parser in Javascript
137 stars 53 forks source link

Remove ConstToken #41

Closed cgewecke closed 7 years ago

cgewecke commented 7 years ago

Solc is ok with this:

uint const = 0;

Solidity-parser is throwing:

SyntaxError: Expected "!=", "%", "%=", "&", "&&", "&=", "(", "*", "*=", "+", "++", "+=", "-", "--", "-=", ".", "/", "/*", "/=", ";", "<", "<<", "<<=", "<=", "=", "==", ">", ">=", ">>", ">>=", ">>>", "?", "[", "^", "^=", "constant", "in", "internal", "memory", "private", "public", "storage", "|", "|=", "||", comment, end of line, or whitespace but "c" found. Line: 303, Column: 8

This PR

federicobond commented 7 years ago

LGTM