Code Snippets ABNF

Short texts ABNF 🧑‍💻 Code snippets ABNF ✍️ Reading lists ABNF 👀

BCP 47 Language Tag syntax [RFC 5646]

Language-Tag = langtag ; normal language tags / privateuse ; private use tag / grandfathered ; grandfathered tags langtag = language [“-” script] [“-” region] *(“-” variant) *(“-” extension) [“-” privateuse] language = 2*3ALPHA ; shortest ISO 639 code [“-” extlang] ; sometimes followed by ; extended language subtags / 4ALPHA ; or reserved for […]

tasl.abnf

tasl = *( block newline ) [ block ] block = *WSP [ statement *WSP ] [ line-comment ] statement = namespace-definition / type-definition / class-declaration / edge-declaration keyword-namespace = %x6E.61.6D.65.73.70.61.63.65 keyword-type = %x74.79.70.65 keyword-class = %x63.6C.61.73.73 keyword-edge = %x65.64.67.65 namespace-definition = keyword-namespace 1*WSP identifier 1*WSP namespace-uri type-definition = keyword-type 1*WSP identifier 1*WSP type class-declaration […]

uri.abnf

tasl = *( block newline ) [ block ] block = *WSP [ statement *WSP ] [ line-comment ] statement = namespace-definition / type-definition / class-declaration / edge-declaration keyword-namespace = %x6E.61.6D.65.73.70.61.63.65 keyword-type = %x74.79.70.65 keyword-class = %x63.6C.61.73.73 keyword-edge = %x65.64.67.65 namespace-definition = keyword-namespace 1*WSP identifier 1*WSP namespace-uri type-definition = keyword-type 1*WSP identifier 1*WSP type class-declaration […]