Skip to content

Commit bd0e636

Browse files
committed
Update grammar
1 parent e75171c commit bd0e636

File tree

9 files changed

+3110
-2868
lines changed

9 files changed

+3110
-2868
lines changed

antlr

Submodule antlr updated 1 file

src/antlr/Solidity.interp

Lines changed: 7 additions & 1 deletion
Large diffs are not rendered by default.

src/antlr/Solidity.tokens

Lines changed: 130 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -93,42 +93,44 @@ T__91=92
9393
T__92=93
9494
T__93=94
9595
T__94=95
96-
Int=96
97-
Uint=97
98-
Byte=98
99-
Fixed=99
100-
Ufixed=100
101-
BooleanLiteral=101
102-
DecimalNumber=102
103-
HexNumber=103
104-
NumberUnit=104
105-
HexLiteralFragment=105
106-
ReservedKeyword=106
107-
AnonymousKeyword=107
108-
BreakKeyword=108
109-
ConstantKeyword=109
110-
ImmutableKeyword=110
111-
ContinueKeyword=111
112-
LeaveKeyword=112
113-
ExternalKeyword=113
114-
IndexedKeyword=114
115-
InternalKeyword=115
116-
PayableKeyword=116
117-
PrivateKeyword=117
118-
PublicKeyword=118
119-
VirtualKeyword=119
120-
PureKeyword=120
121-
TypeKeyword=121
122-
ViewKeyword=122
123-
ConstructorKeyword=123
124-
FallbackKeyword=124
125-
ReceiveKeyword=125
126-
Identifier=126
127-
StringLiteralFragment=127
128-
VersionLiteral=128
129-
WS=129
130-
COMMENT=130
131-
LINE_COMMENT=131
96+
T__95=96
97+
T__96=97
98+
Int=98
99+
Uint=99
100+
Byte=100
101+
Fixed=101
102+
Ufixed=102
103+
BooleanLiteral=103
104+
DecimalNumber=104
105+
HexNumber=105
106+
NumberUnit=106
107+
HexLiteralFragment=107
108+
ReservedKeyword=108
109+
AnonymousKeyword=109
110+
BreakKeyword=110
111+
ConstantKeyword=111
112+
ImmutableKeyword=112
113+
ContinueKeyword=113
114+
LeaveKeyword=114
115+
ExternalKeyword=115
116+
IndexedKeyword=116
117+
InternalKeyword=117
118+
PayableKeyword=118
119+
PrivateKeyword=119
120+
PublicKeyword=120
121+
VirtualKeyword=121
122+
PureKeyword=122
123+
TypeKeyword=123
124+
ViewKeyword=124
125+
ConstructorKeyword=125
126+
FallbackKeyword=126
127+
ReceiveKeyword=127
128+
Identifier=128
129+
StringLiteralFragment=129
130+
VersionLiteral=130
131+
WS=131
132+
COMMENT=132
133+
LINE_COMMENT=133
132134
'pragma'=1
133135
';'=2
134136
'||'=3
@@ -153,93 +155,95 @@ LINE_COMMENT=131
153155
'is'=22
154156
'('=23
155157
')'=24
156-
'using'=25
157-
'for'=26
158-
'struct'=27
159-
'modifier'=28
160-
'function'=29
161-
'returns'=30
162-
'event'=31
163-
'enum'=32
164-
'['=33
165-
']'=34
166-
'address'=35
167-
'.'=36
168-
'mapping'=37
169-
'=>'=38
170-
'memory'=39
171-
'storage'=40
172-
'calldata'=41
173-
'if'=42
174-
'else'=43
175-
'try'=44
176-
'catch'=45
177-
'while'=46
178-
'unchecked'=47
179-
'assembly'=48
180-
'do'=49
181-
'return'=50
182-
'throw'=51
183-
'emit'=52
184-
'var'=53
185-
'bool'=54
186-
'string'=55
187-
'byte'=56
188-
'++'=57
189-
'--'=58
190-
'new'=59
191-
':'=60
192-
'+'=61
193-
'-'=62
194-
'after'=63
195-
'delete'=64
196-
'!'=65
197-
'**'=66
198-
'/'=67
199-
'%'=68
200-
'<<'=69
201-
'>>'=70
202-
'&'=71
203-
'|'=72
204-
'=='=73
205-
'!='=74
206-
'&&'=75
207-
'?'=76
208-
'|='=77
209-
'^='=78
210-
'&='=79
211-
'<<='=80
212-
'>>='=81
213-
'+='=82
214-
'-='=83
215-
'*='=84
216-
'/='=85
217-
'%='=86
218-
'let'=87
219-
':='=88
220-
'=:'=89
221-
'switch'=90
222-
'case'=91
223-
'default'=92
224-
'->'=93
225-
'callback'=94
226-
'override'=95
227-
'anonymous'=107
228-
'break'=108
229-
'constant'=109
230-
'immutable'=110
231-
'continue'=111
232-
'leave'=112
233-
'external'=113
234-
'indexed'=114
235-
'internal'=115
236-
'payable'=116
237-
'private'=117
238-
'public'=118
239-
'virtual'=119
240-
'pure'=120
241-
'type'=121
242-
'view'=122
243-
'constructor'=123
244-
'fallback'=124
245-
'receive'=125
158+
'error'=25
159+
'using'=26
160+
'for'=27
161+
'struct'=28
162+
'modifier'=29
163+
'function'=30
164+
'returns'=31
165+
'event'=32
166+
'enum'=33
167+
'['=34
168+
']'=35
169+
'address'=36
170+
'.'=37
171+
'mapping'=38
172+
'=>'=39
173+
'memory'=40
174+
'storage'=41
175+
'calldata'=42
176+
'if'=43
177+
'else'=44
178+
'try'=45
179+
'catch'=46
180+
'while'=47
181+
'unchecked'=48
182+
'assembly'=49
183+
'do'=50
184+
'return'=51
185+
'throw'=52
186+
'emit'=53
187+
'revert'=54
188+
'var'=55
189+
'bool'=56
190+
'string'=57
191+
'byte'=58
192+
'++'=59
193+
'--'=60
194+
'new'=61
195+
':'=62
196+
'+'=63
197+
'-'=64
198+
'after'=65
199+
'delete'=66
200+
'!'=67
201+
'**'=68
202+
'/'=69
203+
'%'=70
204+
'<<'=71
205+
'>>'=72
206+
'&'=73
207+
'|'=74
208+
'=='=75
209+
'!='=76
210+
'&&'=77
211+
'?'=78
212+
'|='=79
213+
'^='=80
214+
'&='=81
215+
'<<='=82
216+
'>>='=83
217+
'+='=84
218+
'-='=85
219+
'*='=86
220+
'/='=87
221+
'%='=88
222+
'let'=89
223+
':='=90
224+
'=:'=91
225+
'switch'=92
226+
'case'=93
227+
'default'=94
228+
'->'=95
229+
'callback'=96
230+
'override'=97
231+
'anonymous'=109
232+
'break'=110
233+
'constant'=111
234+
'immutable'=112
235+
'continue'=113
236+
'leave'=114
237+
'external'=115
238+
'indexed'=116
239+
'internal'=117
240+
'payable'=118
241+
'private'=119
242+
'public'=120
243+
'virtual'=121
244+
'pure'=122
245+
'type'=123
246+
'view'=124
247+
'constructor'=125
248+
'fallback'=126
249+
'receive'=127

src/antlr/SolidityLexer.interp

Lines changed: 7 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)