mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Sort grammer rules of SolidityLexer.g4
This commit is contained in:
parent
095cc64728
commit
5f6f353953
@ -9,10 +9,9 @@ ReservedKeywords:
|
|||||||
| 'partial' | 'promise' | 'reference' | 'relocatable' | 'sealed' | 'sizeof' | 'static'
|
| 'partial' | 'promise' | 'reference' | 'relocatable' | 'sealed' | 'sizeof' | 'static'
|
||||||
| 'supports' | 'switch' | 'typedef' | 'typeof' | 'var';
|
| 'supports' | 'switch' | 'typedef' | 'typeof' | 'var';
|
||||||
|
|
||||||
Pragma: 'pragma' -> pushMode(PragmaMode);
|
|
||||||
Abstract: 'abstract';
|
Abstract: 'abstract';
|
||||||
Anonymous: 'anonymous';
|
|
||||||
Address: 'address';
|
Address: 'address';
|
||||||
|
Anonymous: 'anonymous';
|
||||||
As: 'as';
|
As: 'as';
|
||||||
Assembly: 'assembly' -> pushMode(AssemblyBlockMode);
|
Assembly: 'assembly' -> pushMode(AssemblyBlockMode);
|
||||||
Bool: 'bool';
|
Bool: 'bool';
|
||||||
@ -30,13 +29,11 @@ Else: 'else';
|
|||||||
Emit: 'emit';
|
Emit: 'emit';
|
||||||
Enum: 'enum';
|
Enum: 'enum';
|
||||||
Error: 'error'; // not a real keyword
|
Error: 'error'; // not a real keyword
|
||||||
Revert: 'revert'; // not a real keyword
|
|
||||||
Event: 'event';
|
Event: 'event';
|
||||||
External: 'external';
|
External: 'external';
|
||||||
Fallback: 'fallback';
|
Fallback: 'fallback';
|
||||||
False: 'false';
|
False: 'false';
|
||||||
Fixed: 'fixed' | ('fixed' [1-9][0-9]* 'x' [1-9][0-9]*);
|
Fixed: 'fixed' | ('fixed' [1-9][0-9]* 'x' [1-9][0-9]*);
|
||||||
From: 'from'; // not a real keyword
|
|
||||||
/**
|
/**
|
||||||
* Bytes types of fixed length.
|
* Bytes types of fixed length.
|
||||||
*/
|
*/
|
||||||
@ -46,6 +43,7 @@ FixedBytes:
|
|||||||
'bytes17' | 'bytes18' | 'bytes19' | 'bytes20' | 'bytes21' | 'bytes22' | 'bytes23' | 'bytes24' |
|
'bytes17' | 'bytes18' | 'bytes19' | 'bytes20' | 'bytes21' | 'bytes22' | 'bytes23' | 'bytes24' |
|
||||||
'bytes25' | 'bytes26' | 'bytes27' | 'bytes28' | 'bytes29' | 'bytes30' | 'bytes31' | 'bytes32';
|
'bytes25' | 'bytes26' | 'bytes27' | 'bytes28' | 'bytes29' | 'bytes30' | 'bytes31' | 'bytes32';
|
||||||
For: 'for';
|
For: 'for';
|
||||||
|
From: 'from'; // not a real keyword
|
||||||
Function: 'function';
|
Function: 'function';
|
||||||
Global: 'global'; // not a real keyword
|
Global: 'global'; // not a real keyword
|
||||||
Hex: 'hex';
|
Hex: 'hex';
|
||||||
@ -67,12 +65,14 @@ New: 'new';
|
|||||||
NumberUnit: 'wei' | 'gwei' | 'ether' | 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'years';
|
NumberUnit: 'wei' | 'gwei' | 'ether' | 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'years';
|
||||||
Override: 'override';
|
Override: 'override';
|
||||||
Payable: 'payable';
|
Payable: 'payable';
|
||||||
|
Pragma: 'pragma' -> pushMode(PragmaMode);
|
||||||
Private: 'private';
|
Private: 'private';
|
||||||
Public: 'public';
|
Public: 'public';
|
||||||
Pure: 'pure';
|
Pure: 'pure';
|
||||||
Receive: 'receive';
|
Receive: 'receive';
|
||||||
Return: 'return';
|
Return: 'return';
|
||||||
Returns: 'returns';
|
Returns: 'returns';
|
||||||
|
Revert: 'revert'; // not a real keyword
|
||||||
/**
|
/**
|
||||||
* Sized signed integer types.
|
* Sized signed integer types.
|
||||||
* int is an alias of int256.
|
* int is an alias of int256.
|
||||||
|
Loading…
Reference in New Issue
Block a user