mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Grammar fixes.
This commit is contained in:
parent
54a0d674cc
commit
9cb7b8070b
@ -124,7 +124,11 @@ userDefinedTypeName
|
|||||||
: identifier ( '.' identifier )* ;
|
: identifier ( '.' identifier )* ;
|
||||||
|
|
||||||
mapping
|
mapping
|
||||||
: 'mapping' '(' (elementaryTypeName | userDefinedTypeName) '=>' typeName ')' ;
|
: 'mapping' '(' mappingKey '=>' typeName ')' ;
|
||||||
|
|
||||||
|
mappingKey
|
||||||
|
: elementaryTypeName
|
||||||
|
| userDefinedTypeName ;
|
||||||
|
|
||||||
functionTypeName
|
functionTypeName
|
||||||
: 'function' parameterList modifierList returnParameters? ;
|
: 'function' parameterList modifierList returnParameters? ;
|
||||||
@ -470,7 +474,7 @@ SingleQuotedStringCharacter
|
|||||||
: ~['\r\n\\] | ('\\' .) ;
|
: ~['\r\n\\] | ('\\' .) ;
|
||||||
|
|
||||||
VersionLiteral
|
VersionLiteral
|
||||||
: [0-9]+ '.' [0-9]+ ('.' [0-9]+)? ;
|
: [0-9]+ ( '.' [0-9]+ ('.' [0-9]+)? )? ;
|
||||||
|
|
||||||
WS
|
WS
|
||||||
: [ \t\r\n\u000C]+ -> skip ;
|
: [ \t\r\n\u000C]+ -> skip ;
|
||||||
|
Loading…
Reference in New Issue
Block a user