mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Drop hex literals from the Yul documentation
This commit is contained in:
parent
acb1e8c280
commit
18eed44688
@ -476,9 +476,8 @@ which are explained in their own chapter.
|
|||||||
TypeName = Identifier
|
TypeName = Identifier
|
||||||
TypedIdentifierList = Identifier ( ':' TypeName )? ( ',' Identifier ( ':' TypeName )? )*
|
TypedIdentifierList = Identifier ( ':' TypeName )? ( ',' Identifier ( ':' TypeName )? )*
|
||||||
Literal =
|
Literal =
|
||||||
(NumberLiteral | StringLiteral | HexLiteral | TrueLiteral | FalseLiteral) ( ':' TypeName )?
|
(NumberLiteral | StringLiteral | TrueLiteral | FalseLiteral) ( ':' TypeName )?
|
||||||
NumberLiteral = HexNumber | DecimalNumber
|
NumberLiteral = HexNumber | DecimalNumber
|
||||||
HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'')
|
|
||||||
StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"'
|
StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"'
|
||||||
TrueLiteral = 'true'
|
TrueLiteral = 'true'
|
||||||
FalseLiteral = 'false'
|
FalseLiteral = 'false'
|
||||||
@ -688,8 +687,6 @@ We will use a destructuring notation for the AST nodes.
|
|||||||
L'[$parami] = vi and L'[$reti] = 0 for all i.
|
L'[$parami] = vi and L'[$reti] = 0 for all i.
|
||||||
Let G'', L'', mode = E(Gn, L', block)
|
Let G'', L'', mode = E(Gn, L', block)
|
||||||
G'', Ln, L''[$ret1], ..., L''[$retm]
|
G'', Ln, L''[$ret1], ..., L''[$retm]
|
||||||
E(G, L, l: HexLiteral) = G, L, hexString(l),
|
|
||||||
where hexString decodes l from hex and left-aligns it into 32 bytes
|
|
||||||
E(G, L, l: StringLiteral) = G, L, utf8EncodeLeftAligned(l),
|
E(G, L, l: StringLiteral) = G, L, utf8EncodeLeftAligned(l),
|
||||||
where utf8EncodeLeftAligned performs a utf8 encoding of l
|
where utf8EncodeLeftAligned performs a utf8 encoding of l
|
||||||
and aligns it left into 32 bytes
|
and aligns it left into 32 bytes
|
||||||
|
Loading…
Reference in New Issue
Block a user