mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:13:51 +01:00
30 lines
434 B
Plaintext
30 lines
434 B
Plaintext
@top url { Protocol Host Port? Path Query }
|
|
|
|
Protocol {
|
|
"http://" | "https://"
|
|
}
|
|
|
|
Path {
|
|
(Slash PathSegment)*
|
|
}
|
|
|
|
Query {
|
|
Question (QueryPair)*
|
|
}
|
|
|
|
QueryPair {
|
|
Amp? QueryName Equal QueryValue
|
|
}
|
|
|
|
@tokens {
|
|
Port { ":" $[0-9]+ }
|
|
Host { $[a-zA-Z0-9-_.]+ }
|
|
QueryName { $[a-zA-Z0-9-_.]+ }
|
|
QueryValue { $[a-zA-Z0-9-_./]+ }
|
|
PathSegment { $[a-zA-Z0-9-_.]+ }
|
|
Slash { "/" }
|
|
Question { "?" }
|
|
Equal { "=" }
|
|
Amp { "&" }
|
|
}
|