Ipv4 ipv4AST = parseIpv4AddressLiteral();
accept(']');
return new Ipv4RemotePartAST(popPosition(), popSpelling(), ipv4AST);
case IPv6:
accept(':');
Ipv6 ipv6AST = parseIpv6AddressLiteral();
accept(']');
return new Ipv6RemotePartAST(popPosition(), popSpelling(), ipv6AST);
case STANDARDIZED_TAG:
throw tagToken
.syntaxException("IPv4 address literal or 'IPv6' tag");