Skip to content

Commit

Permalink
Update solidity parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Feb 7, 2023
1 parent abada9b commit bc2dc34
Show file tree
Hide file tree
Showing 5 changed files with 1,395 additions and 1,229 deletions.
180 changes: 89 additions & 91 deletions dist/Solidity.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -94,44 +94,43 @@ T__92=93
T__93=94
T__94=95
T__95=96
T__96=97
Int=98
Uint=99
Byte=100
Fixed=101
Ufixed=102
BooleanLiteral=103
DecimalNumber=104
HexNumber=105
NumberUnit=106
HexLiteralFragment=107
ReservedKeyword=108
AnonymousKeyword=109
BreakKeyword=110
ConstantKeyword=111
ImmutableKeyword=112
ContinueKeyword=113
LeaveKeyword=114
ExternalKeyword=115
IndexedKeyword=116
InternalKeyword=117
PayableKeyword=118
PrivateKeyword=119
PublicKeyword=120
VirtualKeyword=121
PureKeyword=122
TypeKeyword=123
ViewKeyword=124
GlobalKeyword=125
ConstructorKeyword=126
FallbackKeyword=127
ReceiveKeyword=128
Identifier=129
StringLiteralFragment=130
VersionLiteral=131
WS=132
COMMENT=133
LINE_COMMENT=134
Int=97
Uint=98
Byte=99
Fixed=100
Ufixed=101
BooleanLiteral=102
DecimalNumber=103
HexNumber=104
NumberUnit=105
HexLiteralFragment=106
ReservedKeyword=107
AnonymousKeyword=108
BreakKeyword=109
ConstantKeyword=110
ImmutableKeyword=111
ContinueKeyword=112
LeaveKeyword=113
ExternalKeyword=114
IndexedKeyword=115
InternalKeyword=116
PayableKeyword=117
PrivateKeyword=118
PublicKeyword=119
VirtualKeyword=120
PureKeyword=121
TypeKeyword=122
ViewKeyword=123
GlobalKeyword=124
ConstructorKeyword=125
FallbackKeyword=126
ReceiveKeyword=127
Identifier=128
StringLiteralFragment=129
VersionLiteral=130
WS=131
COMMENT=132
LINE_COMMENT=133
'pragma'=1
';'=2
'*'=3
Expand Down Expand Up @@ -196,56 +195,55 @@ LINE_COMMENT=134
':'=62
'+'=63
'-'=64
'after'=65
'delete'=66
'!'=67
'**'=68
'/'=69
'%'=70
'<<'=71
'>>'=72
'&'=73
'|'=74
'=='=75
'!='=76
'&&'=77
'?'=78
'|='=79
'^='=80
'&='=81
'<<='=82
'>>='=83
'+='=84
'-='=85
'*='=86
'/='=87
'%='=88
'let'=89
':='=90
'=:'=91
'switch'=92
'case'=93
'default'=94
'->'=95
'callback'=96
'override'=97
'anonymous'=109
'break'=110
'constant'=111
'immutable'=112
'continue'=113
'leave'=114
'external'=115
'indexed'=116
'internal'=117
'payable'=118
'private'=119
'public'=120
'virtual'=121
'pure'=122
'type'=123
'view'=124
'global'=125
'constructor'=126
'fallback'=127
'receive'=128
'delete'=65
'!'=66
'**'=67
'/'=68
'%'=69
'<<'=70
'>>'=71
'&'=72
'|'=73
'=='=74
'!='=75
'&&'=76
'?'=77
'|='=78
'^='=79
'&='=80
'<<='=81
'>>='=82
'+='=83
'-='=84
'*='=85
'/='=86
'%='=87
'let'=88
':='=89
'=:'=90
'switch'=91
'case'=92
'default'=93
'->'=94
'callback'=95
'override'=96
'anonymous'=108
'break'=109
'constant'=110
'immutable'=111
'continue'=112
'leave'=113
'external'=114
'indexed'=115
'internal'=116
'payable'=117
'private'=118
'public'=119
'virtual'=120
'pure'=121
'type'=122
'view'=123
'global'=124
'constructor'=125
'fallback'=126
'receive'=127
2,432 changes: 1,300 additions & 1,132 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@ethersproject/providers": "^5.7.2",
"@ethersproject/solidity": "^5.7.0",
"@octokit/core": "^4.2.0",
"@solidity-parser/parser": "^0.14.5",
"@solidity-parser/parser": "^0.15.0",
"js-sha3": "^0.8.0",
"lodash": "^4.17.21"
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1192,10 +1192,10 @@
dependencies:
"@sinonjs/commons" "^1.7.0"

"@solidity-parser/parser@^0.14.5":
version "0.14.5"
resolved "https://registry.yarnpkg.com/@solidity-parser/parser/-/parser-0.14.5.tgz#87bc3cc7b068e08195c219c91cd8ddff5ef1a804"
integrity sha512-6dKnHZn7fg/iQATVEzqyUOyEidbn05q7YA2mQ9hC0MMXhhV3/JrsxmFSYZAcr7j1yUP700LLhTruvJ3MiQmjJg==
"@solidity-parser/parser@^0.15.0":
version "0.15.0"
resolved "https://registry.yarnpkg.com/@solidity-parser/parser/-/parser-0.15.0.tgz#1d359be40be84f174dd616ccfadcf43346c6bf63"
integrity sha512-5UFJJTzWi1hgFk6aGCZ5rxG2DJkCJOzJ74qg7UkWSNCDSigW+CJLoYUb5bLiKrtI34Nr9rpFSUNHfkqtlL+N/w==
dependencies:
antlr4ts "^0.5.0-alpha.4"

Expand Down

0 comments on commit bc2dc34

Please sign in to comment.