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