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