Oops these have schemes most of the time

except tcp is implied if the scheme is missing

Is this grammar ambiguous?  I don't know but I think so.
This commit is contained in:
Jean-Paul Calderone 2020-11-26 10:16:49 -05:00
parent 4ee28a8479
commit a5f0be6513

View File

@ -59,7 +59,13 @@ The EBNF for a NURL is as follows::
hash = unreserved
net-loc-list = net-loc, [ { ",", net-loc } ]
net-loc = hostname, [ ":" port ]
net-loc = tcp-loc | tor-loc | i2p-loc
tcp-loc = [ "tcp:" ], hostname, [ ":" port ]
tor-loc = "tor:", hostname, [ ":" port ]
i2p-loc = "i2p:", i2p-addr, [ ":" port ]
i2p-addr = { unreserved }, ".i2p"
hostname = domain | IPv4address | IPv6address
swiss-number = segment