author_id
stringlengths
4
32
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
8
84
content_id
stringlengths
40
40
repo_name
stringlengths
8
53
content
dict
src_encoding
stringclasses
1 value
language
stringclasses
1 value
length_bytes
int64
11
65.5k
masztalskipiotr
fdf7b4b56ff802aa465e25c1f445fed0b4231671
cc7e2eb826198fe19889543844702b633feccbe5
/grammars/atm2.abnf
5ebbaf0e33e646716a71d533a92e51ec1d1c12e2
masztalskipiotr/project_atm
{ "content": "#ABNF 1.0;\nlanguage pl-pl;\nmode voice;\nroot $root;\ntag-format <semantics/1.0-literals>;\n\n$root = $c $w $s $z $w1 $p;\n\n$c =chciałbym;\n$w = wypłacić;\n$s = pięćdziesiąt;\n$z = złotych;\n$w1 = w;\n$p = dziesiątkach;\n\n\n\n\n\n\n" }
UTF-8
ABNF
223
PanczykowskiK
d00de1610fd4d5cd693e908b06121c876d38223a
255633b57cf92182b43cf0d05fa9b1e74ff2f44b
/grammars/grandma.abnf
917a9157d7c17d98bd2874a39d423c0ac6724d12
PanczykowskiK/LinuxSpeechAPI
{ "content": "#ABNF 1.0;\nlanguage pl-pl;\nmode voice;\nroot $root;\ntag-format <semantics/1.0-literals>;\n\n\n\n$root = ( $odtwarzacz_muzyki | $przegladarka | $edytor_tekstu | $ogolne | $arrows);\n\n\n$odtwarzacz_muzyki = ( $play | $zmien_utwor );\n\n$play = (zatrzymaj odtwarzanie | wstrzymaj odtwarzanie | wznów odtwarzanie | odtwarzaj ){audio_play};\n\n$zmien_utwor = ( następny utwór | następna (ścieżka | piosenka)){audio_next} | (poprzedni utwór | poprzednia (ścieżka | piosenka )){audio_prev};\n\n\n\n$edytor_tekstu = ( $nowy_dokument | $zapisz_dokument | $zamknij_dokument ) ;\n\n$nowy_dokument = (utwórz nowy dokument | nowy dokument | nowy tekst ){new_file};\n\n$zapisz_dokument = (zapisz | zachowaj){save_file} | (zapisz jako (nowy | kopię) | zachowaj jako (nowy | kopię) ){save_as_new_file};\n\n$zamknij_dokument = (zamknij tekst | zamknij dokument){close_file};\n\n\n\n$przegladarka = ($nowa_karta | $zamknij_karte | $poprzednia_strona | $następna_strona | $wyszukaj | $przywroc_karte | $przelacz_karte | odświerz{refresh});\n\n$nowa_karta = (nowa karta | otwórz nową kartę){cart_new} | strona domowa {home_website};\n\n$zamknij_karte = (zamknij kartę | opuść kartę){cart_close};\n\n$poprzednia_strona = (poprzednia strona | cofnij stronę){site_prev};\n\n$następna_strona =(następna strona | strona dalej){site_next};\n\n$wyszukaj = (wyszukaj | znajdź ){web_search};\n\n$przywroc_karte =((otwórz | przywróć ) (zamkniętą | opuszczoną ) (karte | kartę | stronę | strone)){cart_restore};\n\n$przelacz_karte = (przełącz na kartę | idź do karty) {cart_go} $ktora_karta;\n\n$ktora_karta = (pierwszą | pierwszej) {1} | (drugą | drugiej) {2} | (trzecią | trzeciej){3} | (czwartą | czwartej){4}| (piątą | piątej){5}|\n\n (szóstą |szóstej){6}| (siódmą| siódmej){7}| (ósmą| ósmej) {8}| (ostatnią| ostatniej) {last_one};\n\n\n\n$ogolne = $start | $zamknij | $tekst | $audio | $screen | $arrows;\n\n$start = ( uruchom | włącz){start_app} $co;\n\n$zamknij = (zamknij | zatrzymaj | wyłącz){close_app} $co | (zamknij | zatrzymaj | wyłącz) okno {close_app} ;\n\n$co = (przeglądarkę internetową | przeglądarkę | internet ){web} | (edytor tekstu | notatnik | tekst){text} | (odtwarzacz muzyki | muzykę){music} | (przeglądarkę plików){files} |(przeglądarkę plików){files} $gdzie | (konsolę | terminal){konsole};\n\n$gdzie = dokumenty{docs} | muzyka {music} | pulpit{desktop};\n\n$tekst = cofnij {back} | dalej {nextt} | ( zaznacz | zaznacz wszystko) {mark_all} | wytnij {cut} | kopiuj {copy} | (wklej | wklej tutaj) {paste} | $enter | $cancel | $usun | (drukuj | do drukarki){print} ;\n\n$enter = (akceptuj | wejdź | enter){enter};\n\n$cancel = (anuluj | wyjdź){cancel};\n\n$usun = (usuń |usuń to | pozbądź się tego | wykasuj |wykasuj to | wyczyść){delete};\n\n$screen = ($w_dol | $w_gorę | przejdz $na_dol | $na_dol | $na_gore | $zrzut_ekranu | przełącz pulpit{change_desktop} | przełącz aktywne okno{change_window});\n\n$w_dol = (niżej | przewiń w dół){page_down};\n\n$w_gorę = (wyżej | przewiń w górę){page_up};\n\n$na_dol = (na sam dół | na koniec | na dół | na sam koniec){end};\n\n$na_gore = (na samą górę | na początek | na górę | na samą górę | do góry){home};\n\n$zrzut_ekranu = (zrzut ekranu | zdjęcie | migawka){print_screen};\n\n$audio = (podgłośnij | zwiększ głośność){volume_up} o $ile_db | (ścisz | zmniejsz głośność){volume_down} o $ile_db |\n (wycisz | przełącz wyciszenie | włącz dźwięk){mute} | (zresetuj (głośność | dźwięk | audio)){audio_reset};\n\n$ile_db = jeden{1} | dwa{2}| trzy {3}| cztery{4} | pięć {5}| sześć {6}| dziesięć {10}| piętnaście {15}| dwadzieścia {20}|\n trzydzieści {30}| czterdzieści {40}|pięćdziesiąt {50}| sześćdziesiąt{60};\n\n\n$arrows = (następna | następny| prawo){right} | (poprzednia | lewo |poprzedni){left} | góra {up} | (znak | strzalka | kierunek) w dół {down};" }
UTF-8
ABNF
3,882
LedanDark
1b08718a096e9b1d36789381d5793c4d6e5c7690
7f2f8e5967afc2c23256b1c83480c2ed2f1beb5a
/1.0/social/resources/name_grammar.abnf
00a664efc779bef7b239c5e7de8910ebe20335b9
LedanDark/example-skills
{ "content": "#ABNF 1.0 ISO-8859-1;\n\nlanguage en-US;\nroot $srgs_root;\n\npublic $srgs_root = ([no] [(my name is)|(i am)] $name {out.name=rules.name} [what is your name]);\n\n$name = $<swedish_male.abnf> | $<swedish_female.abnf> | $<english_male.abnf> | $<english_female.abnf>;" }
UTF-8
ABNF
258
luma
495e476da1a3921d5307a04ce01ee85ae6852948
9d8c9ee4700a2747350b9c03ea2eab864b1e0049
/doc/sdp.abnf
a6e18d3f7bdc2231cdb103146b8cd31720b3e489
luma/wtf-sdp
{ "content": "// SDP Syntax\nsession-description = proto-version\n origin-field\n session-name-field\n information-field\n uri-field\n email-fields\n phone-fields\n connection-field\n bandwidth-fields\n time-fields\n key-field\n attribute-fields\n media-descriptions\n\nproto-version = 0x76 \"=\" DIGIT+ CRLF\n // this memo describes version 0\n\norigin-field = 0x6f \"=\" username SP sess-id SP sess-version SP\n nettype SP addrtype SP unicast-address CRLF\n\nsession-name-field = 0x73 \"=\" text CRLF\n\ninformation-field = [0x69 \"=\" text CRLF]\n\nuri-field = [0x75 \"=\" uri CRLF]\n\nemail-fields = *(0x65 \"=\" email-address CRLF)\n\nphone-fields = *(0x70 \"=\" phone-number CRLF)\n\nconnection-field = [0x63 \"=\" nettype SP addrtype SP\n connection-address CRLF]\n // a connection field must be present\n // in every media description or at the\n // session-level\n\n\nbandwidth-fields = *(0x62 \"=\" bwtype \":\" bandwidth CRLF)\n\ntime-fields = 1*( 0x74 \"=\" start-time SP stop-time\n *(CRLF repeat-fields) CRLF)\n [zone-adjustments CRLF]\n\nrepeat-fields = 0x72 \"=\" repeat-interval SP typed-time\n 1*(SP typed-time)\n\nzone-adjustments = 0x7a \"=\" time SP [\"-\"] typed-time\n *(SP time SP [\"-\"] typed-time)\n\nkey-field = [0x6b \"=\" key-type CRLF]\n\nattribute-fields = *(0x61 \"=\" attribute CRLF)\n\nmedia-descriptions = *( media-field\n information-field\n *connection-field\n bandwidth-fields\n key-field\n attribute-fields )\n\nmedia-field = 0x6d \"=\" media SP port [\"/\" integer]\n SP proto 1*(SP fmt) CRLF\n\n// sub-rules of 'o='\nusername = non-ws-string\n // pretty wide definition, but doesn't\n // include space\n\nsess-id = DIGIT+\n // should be unique for this username/host\n\nsess-version = DIGIT+\n\nnettype = token\n // typically \"IN\"\n\naddrtype = token\n // typically \"IP4\" or \"IP6\"\n\n\ntoken-char = 0x21 / 0x23-27 / 0x2A-2B / 0x2D-2E / 0x30-39\n / 0x41-5A / 0x5E-7E\n\ntoken = 1*(token-char)\n\n// sub-rules of 'u='\nuri = URI-reference\n // see RFC 3986\n\n\n// sub-rules of 'e=', see RFC 2822 for definitions\nemail-address = address-and-comment / dispname-and-address\n / addr-spec\naddress-and-comment = addr-spec 1*SP \"(\" 1*email-safe \")\"\ndispname-and-address = 1*email-safe 1*SP \"<\" addr-spec \">\"\n\n// sub-rules of 'p='\nphone-number = phone *SP \"(\" 1*email-safe \")\" /\n 1*email-safe \"<\" phone \">\" /\n phone\n\nphone = [\"+\"] DIGIT 1*(SP / \"-\" / DIGIT)\n\n// sub-rules of 'c='\nconnection-address = multicast-address / unicast-address\n\n// sub-rules of 'b='\nbwtype = token\n\nbandwidth = DIGIT+\n\n// sub-rules of 't='\nstart-time = time / \"0\"\n\nstop-time = time / \"0\"\n\ntime = POS-DIGIT 9*DIGIT\n // Decimal representation of NTP time in\n // seconds since 1900. The representation\n // of NTP time is an unbounded length field\n // containing at least 10 digits. Unlike the\n // 64-bit representation used elsewhere, time\n // in SDP does not wrap in the year 2036.\n\n// sub-rules of 'r=' and 'z='\nrepeat-interval = POS-DIGIT *DIGIT [fixed-len-time-unit]\n\ntyped-time = DIGIT+ [fixed-len-time-unit]\n\nfixed-len-time-unit = 0x64 / 0x68 / 0x6d / 0x73\n\n// sub-rules of 'k='\nkey-type = 0x70 0x72 0x6f 0x6d 0x70 0x74 / // \"prompt\"\n 0x63 0x6c 0x65 0x61 0x72 \":\" text / // \"clear:\"\n 0x62 0x61 0x73 0x65 \"64:\" base64 / // \"base64:\"\n 0x75 0x72 0x69 \":\" uri // \"uri:\"\n\nbase64 = *base64-unit [base64-pad]\n\nbase64-unit = 4base64-char\nbase64-pad = 2base64-char \"==\" / 3base64-char \"=\"\nbase64-char = ALPHA / DIGIT / \"+\" / \"/\"\n\n// sub-rules of 'a='\nattribute = (att-field \":\" att-value) / att-field\n\natt-field = token\n\natt-value = byte-string\n\n// sub-rules of 'm='\nmedia = token\n // typically \"audio\", \"video\", \"text\", or\n // \"application\"\n\nfmt = token\n // typically an RTP payload type for audio\n // and video media\n\nproto = token *(\"/\" token)\n // typically \"RTP/AVP\" or \"udp\"\n\nport = DIGIT+\n\n// generic sub-rules: addressing\nunicast-address = IP4-address / IP6-address / FQDN / extn-addr\n\nmulticast-address = IP4-multicast / IP6-multicast / FQDN\n / extn-addr\n\nIP4-multicast = m1 3( \".\" decimal-uchar )\n \"/\" ttl [ \"/\" integer ]\n // IPv4 multicast addresses may be in the\n // range 224.0.0.0 to 239.255.255.255\n\nm1 = (\"22\" (\"4\"/\"5\"/\"6\"/\"7\"/\"8\"/\"9\")) /\n (\"23\" DIGIT )\n\nIP6-multicast = hexpart [ \"/\" integer ]\n // IPv6 address starting with FF\n\nttl = (POS-DIGIT *2DIGIT) / \"0\"\n\nFQDN = 4*(alpha-numeric / \"-\" / \".\")\n // fully qualified domain name as specified\n // in RFC 1035 (and updates)\n\n\nIP4-address = b1 3(\".\" decimal-uchar)\n\nb1 = decimal-uchar\n // less than \"224\"\n\n// The following is consistent with RFC 2373 [30], Appendix B.\nIP6-address = hexpart [ \":\" IP4-address ]\n\nhexpart = hexseq / hexseq \"::\" [ hexseq ] /\n \"::\" [ hexseq ]\n\nhexseq = hex4 *( \":\" hex4)\n\nhex4 = 1*4HEXDIG\n\n// Generic for other address families\nextn-addr = non-ws-string\n\n// generic sub-rules: datatypes\ntext = byte-string\n // default is to interpret this as UTF8 text.\n // ISO 8859-1 requires \"a=charset:ISO-8859-1\"\n // session-level attribute to be used\n\nbyte-string = 1*(0x01-09/0x0B-0C/0x0E-FF)\n // any byte except NUL, CR, or LF\n\nnon-ws-string = 1*(VCHAR/0x80-FF)\n // string of visible characters\n\ntoken-char = 0x21 / 0x23-27 / 0x2A-2B / 0x2D-2E / 0x30-39\n / 0x41-5A / 0x5E-7E\n\ntoken = 1*(token-char)\n\nemail-safe = 0x01-09 / 0x0B-0C / 0x0E-27 / 0x2A-3B / 0x3D / 0x3F-FF\n // any byte except NUL, CR, LF, or the quoting\n // characters ()<>\n\ninteger = POS-DIGIT *DIGIT\n\n// generic sub-rules: primitives\nalpha-numeric = ALPHA / DIGIT\n\nPOS-DIGIT = 0x31-39 // 1 - 9\n\ndecimal-uchar = DIGIT\n / POS-DIGIT DIGIT\n / (\"1\" 2*(DIGIT))\n / (\"2\" (\"0\"/\"1\"/\"2\"/\"3\"/\"4\") DIGIT)\n / (\"2\" \"5\" (\"0\"/\"1\"/\"2\"/\"3\"/\"4\"/\"5\"))\n\n// external references:\n // ALPHA, DIGIT, CRLF, SP, VCHAR: from RFC 4234\n // URI-reference: from RFC 3986\n // addr-spec: from RFC 2822\n\n\n/**\n * addr-spec: from RFC 2822\n *\n * See https://tools.ietf.org/html/rfc2822#section-3.4.1\n *\n */\n\naddr-spec = local-part \"@\" domain\n\nlocal-part = dot-atom / quoted-string / ObsLocalPart\n\ndomain = dot-atom / domain-literal / obs-domain\n\ndomain-literal = [CFWS] \"[\" *([FWS] dcontent) [FWS] \"]\" [CFWS]\n\ndcontent = dtext / quoted-pair\n\ndtext = NO-WS-CTL / // Non white space controls\n [\\d33-\\d90] / // The rest of the US-ASCII\n [\\d94-\\d126] // characters not including \"[\",\n // \"]\", or \"\\\"\n\nquoted-pair = (\"\\\" text) / obs-qp\n\n\nNO-WS-CTL = [\\xd1-\\x8] / // US-ASCII control characters\n \"\\xd11\" / // that do not include the\n \"\\xd12\" / // carriage return, line feed,\n [\\xd14-\\x31] / // and white space characters\n \"\\xd127\"\n\n\n/**\n * Miscellaneous obsolete tokens\n *\n * See https://tools.ietf.org/html/rfc2822#section-4.1\n *\n */\nobs-qp = \"\\\" ([\\xd0-\\x127])\n\nobs-text = *LF *CR *(obs-char *LF *CR)\n\nobs-char = [\\xd0-\\x9] / \"\\xd11\" / // [\\xd0-\\x127] except CR and\n \"\\xd12\" / [\\xd14-\\x127] // LF\n\nobs-utext = obs-text\n\nobs-phrase = word *(word / \".\" / CFWS)\n\nobs-phrase-list = phrase / 1*([phrase] [CFWS] \",\" [CFWS]) [phrase]\n\nObsFWS = WSP+ (EOL WSP+)*\n\nObsLocalPart = word (\".\" word)*\n\n\n/**\n * Folding white space and comments\n *\n * See https://tools.ietf.org/html/rfc2822#section-3.2.3\n */\nFWS = ([*WSP CRLF] 1*WSP) / // Folding white space\n ObsFWS\n\nctext = NO-WS-CTL / // Non white space controls\n\n [\\xd33-\\x39] / // The rest of the US-ASCII\n [\\xd42-\\x91] / // characters not including \"(\",\n [\\xd93-\\x126] // \")\", or \"\\\"\n\nccontent = ctext / quoted-pair / comment\n\ncomment = \"(\" *([FWS] ccontent) [FWS] \")\"\n\nCFWS = *([FWS] comment) (([FWS] comment) / FWS)\n\n\n\n// ALPHA, DIGIT, CRLF, SP, VCHAR: from RFC 4234\n\nALPHA = 0x41-5A / 0x61-7A // A-Z / a-z\n\nDIGIT = 0x30-39\n // 0-9\n\nCRLF = CR LF\n // Internet standard newline\n\nCR = 0x0D\n // carriage return\n\nLF = 0x0A\n // linefeed\n\nSP = 0x20\n\nVCHAR = 0x21-7E\n // visible (printing) characters\n" }
UTF-8
ABNF
10,550
micahlee
b72f5c0f0200d8bd55a9df96105b8c3143ce0b7e
d8516babeb229925febbbe5477eb2303aaf5c6ff
/experiments/dn.abnf
878297c53f496388e3bfa2d5adf6dcc222201090
micahlee/treequel
{ "content": ";;\n;; DN productions from RFC 4514\n;; \ndistinguishedName = [ relativeDistinguishedName\n *( COMMA relativeDistinguishedName ) ]\nrelativeDistinguishedName = attributeTypeAndValue\n *( PLUS attributeTypeAndValue )\nattributeTypeAndValue = attributeType EQUALS attributeValue\nattributeType = descr / numericoid\nattributeValue = string / hexstring\n\n; The following characters are to be escaped when they appear\n; in the value to be encoded: ESC, one of <escaped>, leading\n; SHARP or SPACE, trailing SPACE, and NULL.\nstring = [ ( leadchar / pair ) [ *( stringchar / pair )\n ( trailchar / pair ) ] ]\n\nleadchar = LUTF1 / UTFMB\nLUTF1 = %x01-1F / %x21 / %x24-2A / %x2D-3A /\n %x3D / %x3F-5B / %x5D-7F\n\ntrailchar = TUTF1 / UTFMB\nTUTF1 = %x01-1F / %x21 / %x23-2A / %x2D-3A /\n %x3D / %x3F-5B / %x5D-7F\n\nstringchar = SUTF1 / UTFMB\nSUTF1 = %x01-21 / %x23-2A / %x2D-3A /\n %x3D / %x3F-5B / %x5D-7F\n\npair = ESC ( ESC / special / hexpair )\nspecial = escaped / SPACE / SHARP / EQUALS\nescaped = DQUOTE / PLUS / COMMA / SEMI / LANGLE / RANGLE\nhexstring = SHARP 1*hexpair\nhexpair = HEX HEX\n\n;; Common productions from RFC 4512\nkeystring = leadkeychar *keychar\nleadkeychar = ALPHA\nkeychar = ALPHA / DIGIT / HYPHEN\nnumber = DIGIT / ( LDIGIT 1*DIGIT )\n\nALPHA = %x41-5A / %x61-7A ; \"A\"-\"Z\" / \"a\"-\"z\"\nDIGIT = %x30 / LDIGIT ; \"0\"-\"9\"\nLDIGIT = %x31-39 ; \"1\"-\"9\"\nHEX = DIGIT / %x41-46 / %x61-66 ; \"0\"-\"9\" / \"A\"-\"F\" / \"a\"-\"f\"\n\nSP = 1*SPACE ; one or more \" \"\nWSP = 0*SPACE ; zero or more \" \"\nNULL = %x00 ; null (0)\nSPACE = %x20 ; space (\" \")\nDQUOTE = %x22 ; quote (\"\"\")\nSHARP = %x23 ; octothorpe (or sharp sign) (\"#\")\nDOLLAR = %x24 ; dollar sign (\"$\")\nSQUOTE = %x27 ; single quote (\"'\")\nLPAREN = %x28 ; left paren (\"(\")\nRPAREN = %x29 ; right paren (\")\")\nPLUS = %x2B ; plus sign (\"+\")\nCOMMA = %x2C ; comma (\",\")\nHYPHEN = %x2D ; hyphen (\"-\")\nDOT = %x2E ; period (\".\")\nSEMI = %x3B ; semicolon (\";\")\nLANGLE = %x3C ; left angle bracket (\"<\")\nEQUALS = %x3D ; equals sign (\"=\")\nRANGLE = %x3E ; right angle bracket (\">\")\nESC = %x5C ; backslash (\"\\\")\nUSCORE = %x5F ; underscore (\"_\")\nLCURLY = %x7B ; left curly brace \"{\"\nRCURLY = %x7D ; right curly brace \"}\"\n\n; Any UTF-8 [RFC3629] encoded Unicode [Unicode] character\nUTF8 = UTF1 / UTFMB\nUTFMB = UTF2 / UTF3 / UTF4\nUTF0 = %x80-BF\nUTF1 = %x00-7F\nUTF2 = %xC2-DF UTF0\nUTF3 = %xE0 %xA0-BF UTF0 / %xE1-EC 2(UTF0) /\n %xED %x80-9F UTF0 / %xEE-EF 2(UTF0)\nUTF4 = %xF0 %x90-BF 2(UTF0) / %xF1-F3 3(UTF0) /\n %xF4 %x80-8F 2(UTF0)\n\nOCTET = %x00-FF ; Any octet (8-bit data unit)\n\nnumericoid = number 1*( DOT number )\n\ndescr = keystring\n\noid = descr / numericoid\n\n" }
UTF-8
ABNF
2,686
jmitchell
e90394ecd63ebb56ff5b62d27d399f00356ed8cb
02a4a8ea98638ff0962c804a18f0643a56a8ca0a
/examples/abnf/generated/alternation.abnf
d88063a23a03be4ad4b0f4d521de2e9ac5565c4d
jmitchell/abnf-to-tree-sitter
{ "content": "start = ALPHA / SP / DIGIT\r\n" }
UTF-8
ABNF
28
underlay
df686b36ba8eb54c4f8603df2b3a9081023898f1
3d0778fa3b861d965c7b0dc7c127e7eaceca3e5a
/grammars/tasl.abnf
8286fa89c61e18de3bd83fb78b98174f59dbc246
underlay/tree-sitter-tasl
{ "content": "tasl = *( block newline ) block\n\nblock = *WSP [ line-comment / statement *WSP ]\n\nstatement = namespace-definition\n / literal-definition\n / type-definition\n / class-declaration\n / edge-declaration\n\nkeyword-namespace = %x6E.61.6D.65.73.70.61.63.65\nkeyword-type = %x74.79.70.65\nkeyword-class = %x63.6C.61.73.73\nkeyword-edge = %x65.64.67.65\n\nnamespace-definition = keyword-namespace 1*WSP identifier 1*WSP namespace-uri\nliteral-definition = keyword-literal 1*WSP identifier 1*WSP term\ntype-definition = keyword-type 1*WSP identifier 1*WSP type\nclass-declaration = keyword-class 1*WSP term 1*WSP \"::\" 1*WSP type\nedge-declaration = keyword-edge 1*WSP term 1*WSP \"::\" 1*WSP term 1*WSP edge 1*WSP term\nedge = \"=>\"\n / \"=/\" 1*WSP type 1*WSP \"/=>\"\n\ntype = identifier ; type variable\n / optional ; optional type\n / reference ; reference type\n / uri ; uri type\n / product ; product type\n / coproduct ; coproduct type\n\noptional = \"?\" *WSP type\nuri = \"<>\"\nreference = \"*\" *WSP term\nproduct = \"{\" [ *WSP newline components ] *WSP \"}\"\ncomponents = *( *WSP [ line-comment / component *WSP ] newline )\ncomponent = term 1*WSP \"->\" 1*WSP type\ncoproduct = \"[\" [ *WSP newline options ] *WSP \"]\"\noptions = *( *WSP [ line-comment / option *WSP ] newline )\noption = term 1*WSP \"<-\" 1*WSP type\n\nterm = identifier \":\" 1*( pchar / \"/\" / \"?\" )\n\nnamespace-uri = absolute-uri ( \"/\" / \"?\" / \"#\" )\nabsolute-uri = scheme \":\" ( \"//\" authority / [ \"/\" ] 1*pchar ) *( \"/\" 1*pchar )\n\nidentifier = ALPHA *(ALPHA / DIGIT)\n\nnewline = LF / CRLF\n\nline-comment = \"#\" *(WSP / VCHAR)" }
UTF-8
ABNF
1,711
decentralized-identity
568881ed3f64384ca6d02638d4218b5864da9c47
81f9922c73dd1fd6047dfbf8baa74e71cb426920
/src/main/resources/did.abnf
7e089ae72c516baa0b4a73d24020c8d16e827420
decentralized-identity/did-common-java
{ "content": "did-url = did path-abempty [ \"?\" query ] [ \"#\" fragment ]\n\ndid = \"did:\" method-name \":\" method-specific-id\nmethod-name = 1*method-char\nmethod-char = %x61-7A / DIGIT\nmethod-specific-id = *( *idchar \":\" ) 1*idchar\nidchar = ALPHA / DIGIT / \".\" / \"-\" / \"_\" / pct-encoded\npct-encoded = \"%\" HEXDIG HEXDIG\n\npath-abempty = *( \"/\" segment )\nsegment = *pchar\npchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\nquery = *( pchar / \"/\" / \"?\" )\nfragment = *( pchar / \"/\" / \"?\" )\nunreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\nreserved = gen-delims / sub-delims\ngen-delims = \":\" / \"/\" / \"?\" / \"#\" / \"[\" / \"]\" / \"@\"\nsub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\" / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n\nALPHA = %x41-5A / %x61-7A\nDIGIT = %x30-39\nHEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n" }
UTF-8
ABNF
833
tracyly
7ffdcce8f52f7ab46058f96e98d25c216413bd99
1c6eb22cc6ca553c1f7246f308e542d46b8a61c8
/app/src/main/assets/grammar_sample.abnf
a9dc26b84fb59fa467c10aa8718b3a727436092d
tracyly/KeDaXunFei2
{ "content": "#ABNF 1.0 UTF-8;\nlanguage zh-CN;\nmode voice;\n\nroot $main;\n$main = $place1 | $place2;\n$place1 = 前进|后退|左转|右转|大臂;\n$place2 = 小臂|爪子;" }
UTF-8
ABNF
155
evoldoers
47b5ffc360f527de7ffdb0b67c60ad0132f0939f
577037b64b6c9093670093821d16c74d5aa47765
/src/grammars/regex.abnf
01c7dc8d7b839f1ff87fa10a9e0fd5eb21999bc9
evoldoers/machineboss
{ "content": "REGEX <- BEGIN_ANCHOR REGEX_BODY END_ANCHOR\nNONEMPTY_REGEX_BODY <- DOLLAR NONEMPTY_REGEX_BODY / QUANT_SYMBOLS REGEX_BODY\nREGEX_BODY <- NONEMPTY_REGEX_BODY /\nBEGIN_ANCHOR <- '^'?\nEND_ANCHOR <- '$'*\nDOLLAR <- '$'\nQUANT_SYMBOLS <- QUANT_SYMBOL QUANT_SYMBOLS / QUANT_SYMBOL\nQUANT_SYMBOL <- SYMBOL QUANTIFIER / TOP_SYMBOL\nSYMBOL <- DOLLAR / TOP_SYMBOL\nTOP_SYMBOL <- !'$' MACHINE_SYMBOL\nMACHINE_SYMBOL <- NEGATED_CHAR_CLASS / CHAR_CLASS / IMPLICIT_CHAR_CLASS / ALTERNATION / MACHINE_CHAR\nMACHINE_CHAR <- ESCAPED_OR_SINGLE_CHAR\nQUANTIFIER <- '*' / '+' / ('{' INTEGER '}') / ('{' INTEGER ',' INTEGER '}')\nINTEGER <- '0' / [1-9] [0-9]*\nCHAR_CLASS <- '[' CHARS ']'\nNEGATED_CHAR_CLASS <- '[' '^' CHARS ']'\nIMPLICIT_CHAR_CLASS <- PRESET_CHAR_CLASS\nPRESET_CHAR_CLASS <- DIGIT_CHAR / WHITE_CHAR / NONWHITE_CHAR / WILD_CHAR\nCHARS <- CHAR CHARS / CHAR\nCHAR <- PRESET_CHAR_CLASS / CHAR_RANGE / CHAR_INSIDE_CLASS\nDIGIT_CHAR <- '\\\\d'\nWHITE_CHAR <- '\\\\s'\nNONWHITE_CHAR <- '\\\\S'\nWILD_CHAR <- '.'\nCHAR_RANGE <- CHAR_INSIDE_CLASS '-' CHAR_INSIDE_CLASS\nCHAR_INSIDE_CLASS <- !']' ESCAPED_OR_SINGLE_CHAR\nESCAPED_OR_SINGLE_CHAR <- ESCAPED_CHAR / SINGLE_CHAR\nESCAPED_CHAR <- '\\\\' OCTAL / '\\\\' 'x' HEX / '\\\\' ESCAPE_CHAR\nSINGLE_CHAR <- .\nESCAPE_CHAR <- .\nOCTAL <- [0-2][0-7][0-7] / [0-7][0-7]\nHEX <- [0-9a-fA-F] [0-9a-fA-F]\nALTERNATION <- '(' ALT_OPTIONS ')'\nALT_OPTIONS <- ALT_SYMBOLS '|' ALT_OPTIONS / ALT_SYMBOLS\nALT_SYMBOLS <- ALT_SYMBOL ALT_SYMBOLS /\nALT_SYMBOL <- !'|' !')' QUANT_ALT_SYMBOL\nQUANT_ALT_SYMBOL <- MACHINE_SYMBOL QUANTIFIER / MACHINE_SYMBOL\n" }
UTF-8
ABNF
1,531
hielsnoppe
7e319ac428a97ff2870dfc08c6ee1209446a5464
a6c29f7eea392b995ca30e2b14c06e54e062f6d5
/src/main/resources/DataSpec/AttackSpecs/delimiters.abnf
6b493ec9dfaec4fcd3c04ca4b99a290ccf8641eb
hielsnoppe/Fuzzino
{ "content": ";source: old Library\ndelimiters =\t\" \" / \"\" / \"!\" / \"@\" / \"#\" / \"$\" / \"%\" / \"^\" / \"&\" / \"*\" / \"(\" / \")\" / \"-\" / \"+\" / \"=\" / \":\" / \";\" / \"'\" / \"\\\" / \"/\" / \"?\" / \".\" / \",\" / \n\t\t\t\t\"\\\\\" / \"\\x0D\" / \"\\X0A\" / \"\\x09\" / \"\\x3C\" / \"\\3E\"\n\t\t\t\t2*2\"\\x09\" / 100*100\"\\x09\" / 100*100\"\\x09\\x0D\\0A\" / 100*100\":\" / 100*100\":7\" / 64*64\"\\x0D\\x0A\" / 128*128\"\\x0D\\x0A\" / 512*512\"\\x0D\\x0A\"\n" }
UTF-8
ABNF
363
jbenner-radham
753a2d38fd2a562d53d8fc5ff6737f1f392e4db1
1ce623e501a9ca87afb4166aa58b0fa9e1ca745e
/data/abnf/sound.abnf
f261f211ee22d683bd50827de33d629f63d4b6ad
jbenner-radham/jcard-to-vcard
{ "content": "SOUND-param = \"VALUE=uri\" / language-param / pid-param / pref-param\n / type-param / mediatype-param / altid-param\n / any-param\nSOUND-value = URI\n" }
UTF-8
ABNF
167
LedanDark
a824249514f7bd68933ca27c74a9609932f72354
7f2f8e5967afc2c23256b1c83480c2ed2f1beb5a
/1.0/social/resources/swedish_male.abnf
1024d252f9879f357c42ca7539d0dfc1e82999bc
LedanDark/example-skills
{ "content": "#ABNF 1.0 ISO-8859-1;\n\nlanguage en-US;\nroot $name;\n\npublic $name =\nAdam\n| Adrian\n| Ahmed\n| Albert\n| Albin\n| Alex\n| Alexander\n| Alfred\n| Ali\n| Anders\n| Andreas\n| Andre\n| Anton\n| Arne\n| Aron\n| Arvid\n| August\n| Axel\n| Bengt\n| Benjamin\n| Bernt\n| Bertil\n| Bjorn\n| Bo\n| Carl\n| Casper\n| Christer\n| Christian\n| Christoffer\n| Claes\n| Dan\n| Daniel\n| David\n| Dennis\n| Douglas\n| Eddie\n| Edvin\n| Elias\n| Elliot\n| Emanuel\n| Emil\n| Erik\n| Fabian\n| Felix\n| Filip\n| Fredrik\n| Gabriel\n| Gunnar\n| Gustav\n| Goran\n| Hampus\n| Hannes\n| Hans\n| Henrik\n| Herman\n| Hugo\n| Hugo \n| Hakan\n| Isak\n| Jack\n| Jacob\n| Jakob\n| Jan\n| Jens\n| Jesper\n| Jimmy\n| Joakim\n| Joel\n| Johan\n| Johannes\n| John\n| Johnny\n| Jonas\n| Jonathan\n| Josef\n| Julius\n| Jorgen\n| Kalle\n| Karl\n| Kenneth\n| Kent\n| Kevin\n| Kim\n| Kjell\n| Kurt\n| Lars\n| Leif\n| Lennart\n| Leo\n| Leon\n| Liam\n| Linus\n| Love\n| Lucas\n| Ludvig\n| Magnus\n| Marcus\n| Martin\n| Mats\n| Mattias\n| Max\n| Melker\n| Melvin\n| Mikael\n| Mohamed\n| Niklas\n| Nils\n| Nils \n| Noah\n| Oliver\n| Olle\n| Olle \n| Olof\n| Oscar\n| Oskar\n| Patrik\n| Per\n| Peter\n| Petter\n| Preben\n| Pontus\n| Rasmus\n| Rickard\n| Robert\n| Robin\n| Roger\n| Roland\n| Rolf\n| Samer\n| Samuel\n| Sebastian\n| Simon\n| Stefan\n| Sten\n| Stig\n| Sven\n| Theo\n| Theodor\n| Thomas\n| Tim\n| Tobias\n| Tom\n| Tommy\n| Tony\n| Torbjorn\n| Ulf\n| Viktor\n| Vincent\n| Wilhelm\n| William;" }
UTF-8
ABNF
1,312
jbenner-radham
04e697bd1da4c6a92c2c523295007905b01de599
1ce623e501a9ca87afb4166aa58b0fa9e1ca745e
/data/abnf/clientpidmap.abnf
7bd76c39a1deeb864737ad0efee46053da495a16
jbenner-radham/jcard-to-vcard
{ "content": "CLIENTPIDMAP-param = any-param\nCLIENTPIDMAP-value = 1*DIGIT \";\" URI\n" }
UTF-8
ABNF
68
smudgelang
de4d8eabcc080ab8a5da10b1f02b4295b8f093b4
a5709769103d38d94838a23069b96a8da606e679
/docs/definition/lexer.abnf
af97d1be47086de093ff6eac3e45ff1671880c86
smudgelang/smudge
{ "content": ";;;;;;;;;;;\n;; Lexer ;;\n;;;;;;;;;;;\n\n;; Visible characters\nvisible = ascii-visible / unicode-visible\nvisible-nonquote = ascii-visible-nonquote unicode-visible\n\n;; Whitespace\nnewline = ascii-nl / unicode-nl\nspace = ascii-space / unicode-space\nwhitespace = space / newline\n\n;; Letters\nalpha = ascii-alpha / unicode-alpha\n\n;; Numbers\ndigit = ascii-digit / unicode-digit\nnumber = digit / unicode-num\n\n;; Comments\ncomment = \"//\" *(space / visible) newline\nempty = *whitespace [comment empty]\nemptytoeol = [*space (comment / newline) emptytoeol]\n\n;; C identifiers\nascii-nondigit = ascii-alpha / \"_\"\nc-identifier = ascii-nondigit *(ascii-nondigit / ascii-digit)\n\n;; Smudge identifiers\nidchar = alpha / number / \"-\" / \"_\"\nunquoted = 1*idchar\nquoted = DQUOTE 1*(whitespace / visible-nonquote) DQUOTE\nidentifier = (unquoted / quoted) ; empty\nforeign-identifier = \"@\" c-identifier ; empty\n\n;; Smudge pragmas\npragma = \"#\" command [1*space argument] *space newline\ncommand = 1*idchar\nargument = 1*visible *[1*space 1*visible]\n\n;; Smudge symbols\n; The uses of 'empty'/'space' below (and above in identifier) are not needed in\n; the lexer implementation, but they must be added back in for the productions\n; to be used as generators.\nstart-sigil = \"*\" ; empty\ncomma = \",\" ; empty\ndot = \".\" ; empty\nstate-machine-begin = \"{\" ; empty\nstate-machine-end = \"}\" ; empty\nstate-begin = \"[\" ; empty\nstate-end = \"]\" ; empty\narrow-empty = ; space\n \"-->\" ; empty\ndash-empty = ; space\n \"--\" ; empty\nbecome-empty = ; space\n \"~~>\" ; empty\ndash-begin = ; space\n \"-(\" ; empty\narrow-end = \")->\" ; empty\ndash-end = \")-\" ; empty\nbecome-begin = ; space\n \"~(\" ; empty\nbecome-end = \")~>\" ; empty\nenter-exit-begin = ; space\n \"(\" ; empty\nenter-exit-end = \")\" ; empty\n\n;; Smudge lexing\ntoken = start-sigil / comma / dot\n / state-machine-begin / state-machine-end / state-begin / state-end\n / arrow-empty / dash-empty / become-empty\n / dash-begin / arrow-end / dash-end / become-begin / become-end\n / enter-exit-begin / enter-exit-end\n / identifier / foreign-identifier\nsmudge-file = *(emptytoeol pragma) empty *(token empty)\n" }
UTF-8
ABNF
2,198
jbenner-radham
fb24e348db6092cc69378451fefe9db9cfee7834
1ce623e501a9ca87afb4166aa58b0fa9e1ca745e
/data/abnf/adr.abnf
826903774f7c6dadbf737549823ec4479465a43e
jbenner-radham/jcard-to-vcard
{ "content": "label-param = \"LABEL=\" param-value\n\nADR-param = \"VALUE=text\" / label-param / language-param\n / geo-parameter / tz-parameter / altid-param / pid-param\n / pref-param / type-param / any-param\nADR-value = ADR-component-pobox \";\" ADR-component-ext \";\"\n ADR-component-street \";\" ADR-component-locality \";\"\n ADR-component-region \";\" ADR-component-code \";\"\n ADR-component-country\nADR-component-pobox = list-component\nADR-component-ext = list-component\nADR-component-street = list-component\nADR-component-locality = list-component\nADR-component-region = list-component\nADR-component-code = list-component\nADR-component-country = list-component\n" }
UTF-8
ABNF
703
bver
35a8af204ea0a065f685f3fc1175a3b094a9ed39
6d0832b3aae9e1efe02476217a3b391990ddd0fb
/test/data/arithmetic_bug.abnf
5bd5d9584bdcaa72c6bdee710a4a91ef6de0aed3
bver/GERET
{ "content": "expr = \"x\" /\n DIGIT \".\" DIGIT /\n fn1arg \"(\" expr \")\" /\n \"(\" expr op expr \")\"\n\nop = \"+\" / \"-\" / \"/\" / \"*\"\n\nfn1arg = \"sin\" / \"cos\" / \"log\"\n\n" }
UTF-8
ABNF
156
sjanbs
7ecc6089741be05bc31073ce3c684e971803617d
7549da7f15a8b49d880609990c53c638dcf78d40
/app/src/main/assets/wake_grammar_sample.abnf
e3ec441aa06995a744265b35e1eb3b8f95cbaee8
sjanbs/smartHome_Android
{ "content": "#ABNF 1.0 UTF-8;\nlanguage zh-CN; \nmode voice;\n\nroot $main;\n$main = $call $open $music|$call $next;\n$call = 小兔崽子|hello freedom|芝麻开门|妈咪妈咪哄;\n$open = 打开|播放|来点|放|play;\n$music = 音乐|歌曲|music|歌|歌儿;\n$next = 换歌|下一首|下一曲|next|next music;" }
UTF-8
ABNF
295
hildjj
587629ecc6b3849f12a01a4320f59b5dd4d72169
fd285645948c17403ee64265ef2a969776c390c1
/examples/abnf.abnf
090697103e003fe865a667d392d54b91598314ee
hildjj/node-abnf
{ "content": " ; Extracted from RFC5234\n\n rulelist = 1*( rule / (*c-wsp c-nl) )\n\n rule = rulename defined-as elements c-nl\n ; continues if next line starts\n ; with white space\n\n rulename = ALPHA *(ALPHA / DIGIT / \"-\")\n\n defined-as = *c-wsp (\"=\" / \"=/\") *c-wsp\n ; basic rules definition and\n ; incremental alternatives\n\n elements = alternation *c-wsp\n\n c-wsp = WSP / (c-nl WSP)\n\n c-nl = comment / CRLF\n ; comment or newline\n\n comment = \";\" *(WSP / VCHAR) CRLF\n\n alternation = concatenation\n *(*c-wsp \"/\" *c-wsp concatenation)\n\n concatenation = repetition *(1*c-wsp repetition)\n\n repetition = [repeat] element\n\n repeat = 1*DIGIT / (*DIGIT \"*\" *DIGIT)\n\n element = rulename / group / option /\n char-val / num-val / prose-val\n\n group = \"(\" *c-wsp alternation *c-wsp \")\"\n\n option = \"[\" *c-wsp alternation *c-wsp \"]\"\n\n ; char-val = DQUOTE *(%x20-21 / %x23-7E) DQUOTE\n ; ; quoted string of SP and VCHAR\n ; ; without DQUOTE\n\n ; From RFC 7405:\n char-val = case-insensitive-string /\n case-sensitive-string\n\n case-insensitive-string =\n [ \"%i\" ] quoted-string\n\n case-sensitive-string =\n \"%s\" quoted-string\n\n quoted-string = DQUOTE *(%x20-21 / %x23-7E) DQUOTE\n ; quoted string of SP and VCHAR\n ; without DQUOTE\n\n num-val = \"%\" (bin-val / dec-val / hex-val)\n\n bin-val = \"b\" 1*BIT\n [ 1*(\".\" 1*BIT) / (\"-\" 1*BIT) ]\n ; series of concatenated bit values\n ; or single ONEOF range\n\n dec-val = \"d\" 1*DIGIT\n [ 1*(\".\" 1*DIGIT) / (\"-\" 1*DIGIT) ]\n\n hex-val = \"x\" 1*HEXDIG\n [ 1*(\".\" 1*HEXDIG) / (\"-\" 1*HEXDIG) ]\n\n prose-val = \"<\" *(%x20-3D / %x3F-7E) \">\"\n ; bracketed string of SP and VCHAR\n ; without angles\n ; prose description, to be used as\n ; last resort\n\n ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n\n BIT = \"0\" / \"1\"\n\n CHAR = %x01-7F\n ; any 7-bit US-ASCII character,\n ; excluding NUL\n\n CR = %x0D\n ; carriage return\n\n CRLF = CR LF\n ; Internet standard newline\n\n CTL = %x00-1F / %x7F\n ; controls\n\n DIGIT = %x30-39\n ; 0-9\n\n DQUOTE = %x22\n ; \" (Double Quote)\n\n HEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n\n HTAB = %x09\n ; horizontal tab\n\n LF = %x0A\n ; linefeed\n\n LWSP = *(WSP / CRLF WSP)\n ; linear white space (past newline)\n\n OCTET = %x00-FF\n ; 8 bits of data\n\n SP = %x20\n\n VCHAR = %x21-7E\n ; visible (printing) characters\n\n WSP = SP / HTAB\n ; white space\n" }
UTF-8
ABNF
3,997
mwherman2000
001eec7fc237220e3c1104032ed42d319fe729e9
a9e7a38b55a864f632f9c9e172fefb223a338e26
/odata/odata-abnf-construction-rules.txt.abnf
86d862c2d88ac96eac1e2e4209c62982a2ad04a6
mwherman2000/did-uri-spec
{ "content": "; http://docs.oasis-open.org/odata/odata/v4.01/cs01/abnf/odata-abnf-construction-rules.txt\n;------------------------------------------------------------------------------\n; OData ABNF Construction Rules Version 4.01\n;------------------------------------------------------------------------------\n; Working Draft 03\n; 28 September 2017\n;------------------------------------------------------------------------------\n;\n; OData Version 4.01\n; Committee Specification 01\n; 30 January 2018\n; Copyright (c) OASIS Open 2018. All Rights Reserved.\n; Source: http://docs.oasis-open.org/odata/odata/v4.01/cs01/abnf/\n; Latest version of narrative specification: http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html\n; TC IPR Statement: https://www.oasis-open.org/committees/odata/ipr.php\n;\n; Technical Committee:\n; OASIS Open Data Protocol (OData) TC\n; https://www.oasis-open.org/committees/odata\n;\n; Chairs:\n; - Ralf Handl (ralf.handl@sap.com), SAP SE\n; - Ram Jeyaraman (Ram.Jeyaraman@microsoft.com), Microsoft\n;\n; Editors:\n; - Ralf Handl (ralf.handl@sap.com), SAP SE\n; - Michael Pizzo (mikep@microsoft.com), Microsoft\n; - Martin Zurmuehl (martin.zurmuehl@sap.com), SAP SE\n;\n; Additional artifacts: \n; This grammar is one component of a Work Product which consists of:\n; - OData Version 4.01 Part 1: Protocol\n; - OData Version 4.01 Part 2: URL Conventions\n; - OData ABNF Construction Rules Version 4.01 (this document)\n; - OData ABNF Test Cases Version 4.01\n;\n; Related work:\n; This specification replaces or supersedes:\n; - OData ABNF Construction Rules Version 4.0\n; This work product is related to\n; - OData Common Schema Definition Language (CSDL) JSON Representation Version 4.01\n; - OData Common Schema Definition Language (CSDL) XML Representation Version 4.01\n; - OData JSON Format Version 4.01\n;\n; Abstract:\n; The Open Data Protocol (OData) enables the creation of REST-based data\n; services, which allow resources, identified using Uniform Resource\n; Identifiers (URLs) and defined in a data model, to be published and \n; edited by Web clients using simple HTTP messages. This document defines\n; the URL syntax for requests and the serialization format for primitive \n; literals in request and response payloads.\n;\n; Overview:\n; This grammar uses the ABNF defined in RFC5234 with one extension: literals \n; enclosed in single quotes (e.g. '$metadata') are treated case-sensitive. \n;\n; The following rules assume that URIs have been percent-encoding normalized\n; as described in section 6.2.2.2 of RFC3986 \n; (http://tools.ietf.org/html/rfc3986#section-6.2.2.2)\n; before applying the grammar to them, i.e. all characters in the unreserved \n; set (see rule \"unreserved\" below) are plain literals and NOT\n; percent-encoded. \n;\n; For characters outside the unreserved set the rules explicitly state \n; whether the percent-encoded representation is treated identical to the\n; plain literal representation.\n; \n; One prominent example is the single quote that delimits OData primitive \n; type literals: %27 and ' are treated identically, so a single quote within \n; a string literal is \"encoded\" as two consecutive single quotes in either\n; literal or percent-encoded representation.\n;\n; Contents:\n; 1. Resource Path\n; 2. Query Options\n; 3. Context URL Fragments\n; 4. Expressions\n; 5. JSON format for function parameters\n; 6. Names and identifiers\n; 7. Literal Data Values\n; 8. Header values\n; 9. Punctuation\n;\n; A. URI syntax [RFC3986]\n; B. IRI syntax [RFC3986]\n; C. ABNF core definitions [RFC5234]\n;\n;------------------------------------------------------------------------------\ndummyStartRule = odataUri / header / primitiveValue ; just to please the test parser\n;------------------------------------------------------------------------------\n\n\nodataUri = serviceRoot [ odataRelativeUri ] \n\nserviceRoot = ( \"https\" / \"http\" ) ; Note: case-insensitive \n \"://\" host [ \":\" port ]\n \"/\" *( segment-nz \"/\" )\n\n; Note: dollar-prefixed path segments are case-sensitive!\nodataRelativeUri = '$batch' [ \"?\" batchOptions ]\n / '$entity' \"?\" entityOptions \n / '$entity' \"/\" qualifiedEntityTypeName \"?\" entityCastOptions \n / '$metadata' [ \"?\" metadataOptions ] [ context ]\n / resourcePath [ \"?\" queryOptions ]\n\n\n;------------------------------------------------------------------------------\n; 1. Resource Path\n;------------------------------------------------------------------------------\n\nresourcePath = entitySetName [ collectionNavigation ] \n / singletonEntity [ singleNavigation ]\n / actionImportCall \n / entityColFunctionImportCall [ collectionNavigation ] \n / entityFunctionImportCall [ singleNavigation ] \n / complexColFunctionImportCall [ complexColPath ] \n / complexFunctionImportCall [ complexPath ] \n / primitiveColFunctionImportCall [ primitiveColPath ] \n / primitiveFunctionImportCall [ primitivePath ] \n / functionImportCallNoParens\n / crossjoin\n / '$all' [ \"/\" qualifiedEntityTypeName ]\n\ncollectionNavigation = [ \"/\" qualifiedEntityTypeName ] [ collectionNavPath ]\ncollectionNavPath = keyPredicate [ singleNavigation ]\n / filterInPath [ collectionNavigation ]\n / each [ boundOperation ]\n / boundOperation\n / count\n / ref\n\nkeyPredicate = simpleKey / compoundKey / keyPathSegments\nsimpleKey = OPEN ( parameterAlias / keyPropertyValue ) CLOSE\ncompoundKey = OPEN keyValuePair *( COMMA keyValuePair ) CLOSE\nkeyValuePair = ( primitiveKeyProperty / keyPropertyAlias ) EQ ( parameterAlias / keyPropertyValue )\nkeyPropertyValue = primitiveLiteral\nkeyPropertyAlias = odataIdentifier\nkeyPathSegments = 1*( \"/\" keyPathLiteral )\nkeyPathLiteral = *pchar\n\nsingleNavigation = [ \"/\" qualifiedEntityTypeName ] \n [ \"/\" propertyPath\n / boundOperation\n / ref \n / value ; request the media resource of a media entity \n ]\n\npropertyPath = entityColNavigationProperty [ collectionNavigation ]\n / entityNavigationProperty [ singleNavigation ]\n / complexColProperty [ complexColPath ]\n / complexProperty [ complexPath ]\n / primitiveColProperty [ primitiveColPath ]\n / primitiveProperty [ primitivePath ]\n / streamProperty [ boundOperation ]\n\nprimitiveColPath = count / boundOperation / ordinalIndex\n\nprimitivePath = value / boundOperation\n\ncomplexColPath = ordinalIndex\n / [ \"/\" qualifiedComplexTypeName ] [ count / boundOperation ]\n\ncomplexPath = [ \"/\" qualifiedComplexTypeName ] \n [ \"/\" propertyPath \n / boundOperation\n ]\n \nfilterInPath = '/$filter' EQ parameterAlias\n\neach = '/$each'\ncount = '/$count'\nref = '/$ref'\nvalue = '/$value'\n\nordinalIndex = \"/\" 1*DIGIT\n\n; boundOperation segments can only be composed if the type of the previous segment \n; matches the type of the first parameter of the action or function being called.\n; Note that the rule name reflects the return type of the function.\nboundOperation = \"/\" ( boundActionCall\n / boundEntityColFunctionCall [ collectionNavigation ] \n / boundEntityFunctionCall [ singleNavigation ] \n / boundComplexColFunctionCall [ complexColPath ] \n / boundComplexFunctionCall [ complexPath ]\n / boundPrimitiveColFunctionCall [ primitiveColPath ] \n / boundPrimitiveFunctionCall [ primitivePath ] \n / boundFunctionCallNoParens\n )\n\nactionImportCall = actionImport\nboundActionCall = namespace \".\" action\n ; with the added restriction that the binding parameter MUST be either an entity or collection of entities\n ; and is specified by reference using the URI immediately preceding (to the left) of the boundActionCall\n\n; The following boundXxxFunctionCall rules have the added restrictions that\n; - the function MUST support binding, and \n; - the binding parameter type MUST match the type of resource identified by the \n; URI immediately preceding (to the left) of the boundXxxFunctionCall, and\n; - the functionParameters MUST NOT include the bindingParameter.\nboundEntityFunctionCall = namespace \".\" entityFunction functionParameters\nboundEntityColFunctionCall = namespace \".\" entityColFunction functionParameters\nboundComplexFunctionCall = namespace \".\" complexFunction functionParameters\nboundComplexColFunctionCall = namespace \".\" complexColFunction functionParameters\nboundPrimitiveFunctionCall = namespace \".\" primitiveFunction functionParameters\nboundPrimitiveColFunctionCall = namespace \".\" primitiveColFunction functionParameters\n\nboundFunctionCallNoParens = namespace \".\" entityFunction\n / namespace \".\" entityColFunction\n / namespace \".\" complexFunction\n / namespace \".\" complexColFunction\n / namespace \".\" primitiveFunction\n / namespace \".\" primitiveColFunction\n\nentityFunctionImportCall = entityFunctionImport functionParameters\nentityColFunctionImportCall = entityColFunctionImport functionParameters\ncomplexFunctionImportCall = complexFunctionImport functionParameters\ncomplexColFunctionImportCall = complexColFunctionImport functionParameters\nprimitiveFunctionImportCall = primitiveFunctionImport functionParameters\nprimitiveColFunctionImportCall = primitiveColFunctionImport functionParameters\n\nfunctionImportCallNoParens = entityFunctionImport\n / entityColFunctionImport\n / complexFunctionImport\n / complexColFunctionImport\n / primitiveFunctionImport\n / primitiveColFunctionImport\n\nfunctionParameters = OPEN [ functionParameter *( COMMA functionParameter ) ] CLOSE\nfunctionParameter = parameterName EQ ( parameterAlias / primitiveLiteral )\nparameterName = odataIdentifier\nparameterAlias = AT odataIdentifier \n\ncrossjoin = '$crossjoin' OPEN\n entitySetName *( COMMA entitySetName )\n CLOSE\n\n\n;------------------------------------------------------------------------------\n; 2. Query Options\n;------------------------------------------------------------------------------\n\nqueryOptions = queryOption *( \"&\" queryOption ) \nqueryOption = systemQueryOption \n / aliasAndValue \n / nameAndValue\n / customQueryOption \n\nbatchOptions = batchOption *( \"&\" batchOption ) \nbatchOption = format\n /customQueryOption \n \nmetadataOptions = metadataOption *( \"&\" metadataOption ) \nmetadataOption = format\n /customQueryOption \n\nentityOptions = *( entityIdOption \"&\" ) id *( \"&\" entityIdOption )\nentityIdOption = format\n / customQueryOption\nentityCastOptions = *( entityCastOption \"&\" ) id *( \"&\" entityCastOption )\nentityCastOption = entityIdOption\n / expand \n / select\n\nid = ( \"$id\" / \"id\" ) EQ IRI-in-query \n\nsystemQueryOption = compute\n / deltatoken\n / expand \n / filter \n / format \n / id\n / inlinecount \n / orderby \n / schemaversion\n / search\n / select \n / skip \n / skiptoken\n / top \n / index\n\ncompute = ( \"$compute\" / \"compute\" ) EQ computeItem *( COMMA computeItem )\ncomputeItem = commonExpr RWS \"as\" RWS computedProperty\ncomputedProperty = odataIdentifier \n\nexpand = ( \"$expand\" / \"expand\" ) EQ expandItem *( COMMA expandItem )\nexpandItem = STAR [ ref / OPEN levels CLOSE ]\n / \"$value\"\n / expandPath\n [ ref [ OPEN expandRefOption *( SEMI expandRefOption ) CLOSE ]\n / count [ OPEN expandCountOption *( SEMI expandCountOption ) CLOSE ]\n / OPEN expandOption *( SEMI expandOption ) CLOSE \n ]\nexpandPath = [ ( qualifiedEntityTypeName / qualifiedComplexTypeName ) \"/\" ] \n *( ( complexProperty / complexColProperty ) \"/\" [ qualifiedComplexTypeName \"/\" ] )\n ( STAR / streamProperty / navigationProperty [ \"/\" qualifiedEntityTypeName ] )\nexpandCountOption = filter\n / search\nexpandRefOption = expandCountOption\n / orderby\n / skip \n / top \n / inlinecount\nexpandOption = expandRefOption\n / select \n / expand\n / compute\n / levels\n / aliasAndValue\n \nlevels = ( \"$levels\" / \"levels\" ) EQ ( oneToNine *DIGIT / \"max\" )\n\nfilter = ( \"$filter\" / \"filter\" ) EQ boolCommonExpr\n\norderby = ( \"$orderby\" / \"orderby\" ) EQ orderbyItem *( COMMA orderbyItem )\norderbyItem = commonExpr [ RWS ( \"asc\" / \"desc\" ) ]\n\nskip = ( \"$skip\" / \"skip\" ) EQ 1*DIGIT\ntop = ( \"$top\" / \"top\" ) EQ 1*DIGIT\n\nindex = ( \"$index\" / \"index\" ) EQ 1*DIGIT\n\nformat = ( \"$format\" / \"format\" ) EQ\n ( \"atom\"\n / \"json\" \n / \"xml\"\n / 1*pchar \"/\" 1*pchar ; <a data service specific value indicating a\n ) ; format specific to the specific data service> or\n ; <An IANA-defined [IANA-MMT] content type>\n \ninlinecount = ( \"$count\" / \"count\" ) EQ booleanValue\n\nschemaversion = ( \"$schemaversion\" / \"schemaversion\" ) EQ ( STAR / 1*unreserved )\n\nsearch = ( \"$search\" / \"search\" ) EQ BWS searchExpr\nsearchExpr = ( OPEN BWS searchExpr BWS CLOSE\n / searchTerm \n ) [ searchOrExpr\n / searchAndExpr\n ]\n\nsearchOrExpr = RWS 'OR' RWS searchExpr\nsearchAndExpr = RWS [ 'AND' RWS ] searchExpr\n\nsearchTerm = [ 'NOT' RWS ] ( searchPhrase / searchWord )\nsearchPhrase = quotation-mark 1*qchar-no-AMP-DQUOTE quotation-mark\n\n; A searchWord is a sequence of one or more letters, digits, commas, or dots.\n; This includes Unicode characters of categories L or N using UTF-8 and percent-encoding.\n; The words AND, OR, and NOT are not a valid searchWord.\n; Expressing this in ABNF is somewhat clumsy, so the following rule is overly generous.\nsearchWord = 1*( ALPHA / DIGIT / COMMA / \".\" / pct-encoded )\n\nselect = ( \"$select\" / \"select\" ) EQ selectItem *( COMMA selectItem )\nselectItem = STAR\n / allOperationsInSchema \n / [ ( qualifiedEntityTypeName / qualifiedComplexTypeName ) \"/\" ] \n ( selectProperty\n / qualifiedActionName \n / qualifiedFunctionName \n )\nselectProperty = primitiveProperty \n / primitiveColProperty [ OPEN selectOptionPC *( SEMI selectOptionPC ) CLOSE ]\n / navigationProperty\n / selectPath [ OPEN selectOption *( SEMI selectOption ) CLOSE\n / \"/\" selectProperty \n ]\nselectPath = ( complexProperty / complexColProperty ) [ \"/\" qualifiedComplexTypeName ] \nselectOptionPC = filter / search / inlinecount / orderby / skip / top \nselectOption = selectOptionPC\n / compute / select / expand / aliasAndValue\n\nallOperationsInSchema = namespace \".\" STAR \n\n; The parameterNames uniquely identify the bound function overload\n; only if it has overloads.\nqualifiedActionName = namespace \".\" action\nqualifiedFunctionName = namespace \".\" function [ OPEN parameterNames CLOSE ]\n\n; The names of all non-binding parameters, separated by commas \nparameterNames = parameterName *( COMMA parameterName )\n\ndeltatoken = \"$deltatoken\" EQ 1*( qchar-no-AMP )\n\nskiptoken = \"$skiptoken\" EQ 1*( qchar-no-AMP )\n\naliasAndValue = parameterAlias EQ parameterValue\n\nnameAndValue = parameterName EQ parameterValue\n\nparameterValue = arrayOrObject\n / commonExpr\n\ncustomQueryOption = customName [ EQ customValue ]\ncustomName = qchar-no-AMP-EQ-AT-DOLLAR *( qchar-no-AMP-EQ ) \ncustomValue = *( qchar-no-AMP )\n\n \n;------------------------------------------------------------------------------\n; 3. Context URL Fragments\n;------------------------------------------------------------------------------\n\ncontext = \"#\" contextFragment\ncontextFragment = 'Collection($ref)'\n / '$ref'\n / 'Collection(Edm.EntityType)'\n / 'Collection(Edm.ComplexType)'\n / singletonEntity [ navigation *( containmentNavigation ) [ \"/\" qualifiedEntityTypeName ] ] [ selectList ]\n / qualifiedTypeName [ selectList ]\n / entitySet ( '/$deletedEntity' / '/$link' / '/$deletedLink' )\n / entitySet keyPredicate \"/\" contextPropertyPath [ selectList ]\n / entitySet [ selectList ] [ '/$entity' / '/$delta' ]\n \nentitySet = entitySetName *( containmentNavigation ) [ \"/\" qualifiedEntityTypeName ]\n \ncontainmentNavigation = keyPredicate [ \"/\" qualifiedEntityTypeName ] navigation\nnavigation = *( \"/\" complexProperty [ \"/\" qualifiedComplexTypeName ] ) \"/\" navigationProperty \n\nselectList = OPEN selectListItem *( COMMA selectListItem ) CLOSE\nselectListItem = STAR ; all structural properties\n / allOperationsInSchema \n / [ qualifiedEntityTypeName \"/\" ] \n ( qualifiedActionName\n / qualifiedFunctionName \n / selectListProperty\n )\nselectListProperty = primitiveProperty \n / primitiveColProperty \n / navigationProperty [ \"+\" ] [ selectList ]\n / selectPath [ \"/\" selectListProperty ]\n\ncontextPropertyPath = primitiveProperty\n / primitiveColProperty\n / complexColProperty\n / complexProperty [ [ \"/\" qualifiedComplexTypeName ] \"/\" contextPropertyPath ]\n \n\n;------------------------------------------------------------------------------\n; 4. Expressions\n;------------------------------------------------------------------------------\n\n; Note: a boolCommonExpr is also a commonExpr, e.g. sort by Boolean \ncommonExpr = ( primitiveLiteral\n / arrayOrObject\n / rootExpr\n / firstMemberExpr\n / functionExpr\n / negateExpr \n / methodCallExpr \n / parenExpr \n / listExpr\n / castExpr \n / isofExpr\n / notExpr\n ) \n [ addExpr \n / subExpr \n / mulExpr \n / divExpr\n / divbyExpr \n / modExpr\n ] \n [ eqExpr \n / neExpr \n / ltExpr \n / leExpr \n / gtExpr \n / geExpr \n / hasExpr \n / inExpr \n ]\n [ andExpr \n / orExpr \n ] \n\nboolCommonExpr = commonExpr ; resulting in a Boolean\n\nrootExpr = '$root/' ( entitySetName keyPredicate / singletonEntity ) [ singleNavigationExpr ]\n\nfirstMemberExpr = memberExpr\n / inscopeVariableExpr [ \"/\" memberExpr ]\n\nmemberExpr = [ qualifiedEntityTypeName \"/\" ]\n ( propertyPathExpr\n / boundFunctionExpr \n / annotationExpr\n )\n \npropertyPathExpr = ( entityColNavigationProperty [ collectionNavigationExpr ] \n / entityNavigationProperty [ singleNavigationExpr ] \n / complexColProperty [ complexColPathExpr ]\n / complexProperty [ complexPathExpr ] \n / primitiveColProperty [ collectionPathExpr ]\n / primitiveProperty [ primitivePathExpr ]\n / streamProperty [ primitivePathExpr ]\n )\n \nannotationExpr = annotation\n [ collectionPathExpr\n / singleNavigationExpr\n / complexPathExpr\n / primitivePathExpr\n ]\n \nannotation = AT [ namespace \".\" ] termName [ '#' annotationQualifier ]\nannotationQualifier = odataIdentifier \n \ninscopeVariableExpr = implicitVariableExpr \n / parameterAlias\n / lambdaVariableExpr ; only allowed inside a lambdaPredicateExpr\nimplicitVariableExpr = '$it' ; the current instance of the resource identified by the resource path\n / '$this' ; the instance on which the query option is evaluated\nlambdaVariableExpr = odataIdentifier\n\ncollectionNavigationExpr = [ \"/\" qualifiedEntityTypeName ]\n [ keyPredicate [ singleNavigationExpr ] \n / collectionPathExpr \n ]\n\nsingleNavigationExpr = \"/\" memberExpr\n\ncomplexColPathExpr = [ \"/\" qualifiedComplexTypeName ]\n [ collectionPathExpr ]\n \ncollectionPathExpr = count [ OPEN expandCountOption *( SEMI expandCountOption ) CLOSE ]\n / \"/\" boundFunctionExpr\n / \"/\" annotationExpr\n / \"/\" anyExpr\n / \"/\" allExpr\n \ncomplexPathExpr = [ \"/\" qualifiedComplexTypeName ]\n [ \"/\" propertyPathExpr \n / \"/\" boundFunctionExpr \n / \"/\" annotationExpr\n ]\n\nprimitivePathExpr = \"/\" [ annotationExpr / boundFunctionExpr ]\n\nboundFunctionExpr = functionExpr ; boundFunction segments can only be composed if the type of the \n ; previous segment matches the type of the first function parameter\n \nfunctionExpr = namespace \".\"\n ( entityColFunction functionExprParameters [ collectionNavigationExpr ] \n / entityFunction functionExprParameters [ singleNavigationExpr ] \n / complexColFunction functionExprParameters [ complexColPathExpr ]\n / complexFunction functionExprParameters [ complexPathExpr ] \n / primitiveColFunction functionExprParameters [ collectionPathExpr ] \n / primitiveFunction functionExprParameters [ primitivePathExpr ] \n )\n\nfunctionExprParameters = OPEN [ functionExprParameter *( COMMA functionExprParameter ) ] CLOSE\nfunctionExprParameter = parameterName EQ ( parameterAlias / parameterValue )\n\nanyExpr = \"any\" OPEN BWS [ lambdaVariableExpr BWS COLON BWS lambdaPredicateExpr ] BWS CLOSE\nallExpr = \"all\" OPEN BWS lambdaVariableExpr BWS COLON BWS lambdaPredicateExpr BWS CLOSE\nlambdaPredicateExpr = boolCommonExpr ; containing at least one lambdaVariableExpr\n\nmethodCallExpr = indexOfMethodCallExpr \n / toLowerMethodCallExpr \n / toUpperMethodCallExpr \n / trimMethodCallExpr \n / substringMethodCallExpr \n / concatMethodCallExpr \n / lengthMethodCallExpr \n / yearMethodCallExpr \n / monthMethodCallExpr \n / dayMethodCallExpr \n / hourMethodCallExpr \n / minuteMethodCallExpr \n / secondMethodCallExpr \n / fractionalsecondsMethodCallExpr\n / totalsecondsMethodCallExpr\n / dateMethodCallExpr \n / timeMethodCallExpr \n / roundMethodCallExpr \n / floorMethodCallExpr \n / ceilingMethodCallExpr \n / distanceMethodCallExpr \n / geoLengthMethodCallExpr \n / totalOffsetMinutesMethodCallExpr\n / minDateTimeMethodCallExpr\n / maxDateTimeMethodCallExpr\n / nowMethodCallExpr\n / boolMethodCallExpr\n\nboolMethodCallExpr = endsWithMethodCallExpr \n / startsWithMethodCallExpr \n / containsMethodCallExpr \n / intersectsMethodCallExpr \n / hasSubsetMethodCallExpr\n / hasSubsequenceMethodCallExpr\n\nconcatMethodCallExpr = \"concat\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS CLOSE\ncontainsMethodCallExpr = \"contains\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS CLOSE\nendsWithMethodCallExpr = \"endswith\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS CLOSE\nindexOfMethodCallExpr = \"indexof\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS CLOSE\nlengthMethodCallExpr = \"length\" OPEN BWS commonExpr BWS CLOSE\nstartsWithMethodCallExpr = \"startswith\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS CLOSE\nsubstringMethodCallExpr = \"substring\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS [ COMMA BWS commonExpr BWS ] CLOSE\ntoLowerMethodCallExpr = \"tolower\" OPEN BWS commonExpr BWS CLOSE\ntoUpperMethodCallExpr = \"toupper\" OPEN BWS commonExpr BWS CLOSE\ntrimMethodCallExpr = \"trim\" OPEN BWS commonExpr BWS CLOSE\n\nyearMethodCallExpr = \"year\" OPEN BWS commonExpr BWS CLOSE\nmonthMethodCallExpr = \"month\" OPEN BWS commonExpr BWS CLOSE\ndayMethodCallExpr = \"day\" OPEN BWS commonExpr BWS CLOSE\nhourMethodCallExpr = \"hour\" OPEN BWS commonExpr BWS CLOSE\nminuteMethodCallExpr = \"minute\" OPEN BWS commonExpr BWS CLOSE\nsecondMethodCallExpr = \"second\" OPEN BWS commonExpr BWS CLOSE\nfractionalsecondsMethodCallExpr = \"fractionalseconds\" OPEN BWS commonExpr BWS CLOSE\ntotalsecondsMethodCallExpr = \"totalseconds\" OPEN BWS commonExpr BWS CLOSE\ndateMethodCallExpr = \"date\" OPEN BWS commonExpr BWS CLOSE\ntimeMethodCallExpr = \"time\" OPEN BWS commonExpr BWS CLOSE\ntotalOffsetMinutesMethodCallExpr = \"totaloffsetminutes\" OPEN BWS commonExpr BWS CLOSE \n\nminDateTimeMethodCallExpr = \"mindatetime\" OPEN BWS CLOSE\nmaxDateTimeMethodCallExpr = \"maxdatetime\" OPEN BWS CLOSE\nnowMethodCallExpr = \"now\" OPEN BWS CLOSE\n\nroundMethodCallExpr = \"round\" OPEN BWS commonExpr BWS CLOSE\nfloorMethodCallExpr = \"floor\" OPEN BWS commonExpr BWS CLOSE\nceilingMethodCallExpr = \"ceiling\" OPEN BWS commonExpr BWS CLOSE\n\ndistanceMethodCallExpr = \"geo.distance\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS CLOSE\ngeoLengthMethodCallExpr = \"geo.length\" OPEN BWS commonExpr BWS CLOSE\nintersectsMethodCallExpr = \"geo.intersects\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS CLOSE\n\nhasSubsetMethodCallExpr = \"hassubset\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS CLOSE\nhasSubsequenceMethodCallExpr = \"hassubsequence\" OPEN BWS commonExpr BWS COMMA BWS commonExpr BWS CLOSE\n\nparenExpr = OPEN BWS commonExpr BWS CLOSE\nlistExpr = OPEN BWS commonExpr BWS *( COMMA BWS commonExpr BWS ) CLOSE\n\nandExpr = RWS \"and\" RWS boolCommonExpr\norExpr = RWS \"or\" RWS boolCommonExpr\n\neqExpr = RWS \"eq\" RWS commonExpr \nneExpr = RWS \"ne\" RWS commonExpr\nltExpr = RWS \"lt\" RWS commonExpr\nleExpr = RWS \"le\" RWS commonExpr\ngtExpr = RWS \"gt\" RWS commonExpr\ngeExpr = RWS \"ge\" RWS commonExpr\ninExpr = RWS \"in\" RWS commonExpr\n\nhasExpr = RWS \"has\" RWS enum\n\naddExpr = RWS \"add\" RWS commonExpr\nsubExpr = RWS \"sub\" RWS commonExpr\nmulExpr = RWS \"mul\" RWS commonExpr\ndivExpr = RWS \"div\" RWS commonExpr\ndivbyExpr = RWS \"divby\" RWS commonExpr\nmodExpr = RWS \"mod\" RWS commonExpr\n\nnegateExpr = \"-\" BWS commonExpr\n\nnotExpr = \"not\" RWS boolCommonExpr\n\nisofExpr = \"isof\" OPEN BWS [ commonExpr BWS COMMA BWS ] qualifiedTypeName BWS CLOSE\ncastExpr = \"cast\" OPEN BWS [ commonExpr BWS COMMA BWS ] qualifiedTypeName BWS CLOSE\n\n\n;------------------------------------------------------------------------------\n; 5. JSON format for function parameters\n;------------------------------------------------------------------------------\n; Note: the query part of a URI needs to be partially percent-decoded before\n; applying these rules, see comment at the top of this file\n;------------------------------------------------------------------------------\n\narrayOrObject = complexColInUri \n / complexInUri\n / rootExprCol\n / primitiveColInUri\n \ncomplexColInUri = begin-array \n [ complexInUri *( value-separator complexInUri ) ] \n end-array\n \ncomplexInUri = begin-object\n [ ( annotationInUri \n / primitivePropertyInUri \n / complexPropertyInUri \n / collectionPropertyInUri \n / navigationPropertyInUri\n )\n *( value-separator \n ( annotationInUri \n / primitivePropertyInUri \n / complexPropertyInUri \n / collectionPropertyInUri \n / navigationPropertyInUri\n ) \n )\n ] \n end-object\n\ncollectionPropertyInUri = ( quotation-mark primitiveColProperty quotation-mark \n name-separator \n primitiveColInUri \n ) \n / ( quotation-mark complexColProperty quotation-mark \n name-separator \n complexColInUri\n )\n\nprimitiveColInUri = begin-array \n [ primitiveLiteralInJSON *( value-separator primitiveLiteralInJSON ) ] \n end-array\n \ncomplexPropertyInUri = quotation-mark complexProperty quotation-mark \n name-separator \n complexInUri\n \nannotationInUri = quotation-mark AT namespace \".\" termName quotation-mark\n name-separator\n ( complexInUri / complexColInUri / primitiveLiteralInJSON / primitiveColInUri )\n\nprimitivePropertyInUri = quotation-mark primitiveProperty quotation-mark \n name-separator \n primitiveLiteralInJSON\n\nnavigationPropertyInUri = singleNavPropInJSON\n / collectionNavPropInJSON\nsingleNavPropInJSON = quotation-mark entityNavigationProperty quotation-mark\n\t\t\t\t\t\t\t\t\t\t\t\t\tname-separator\n\t\t\t\t\t\t\t\t\t\t\t\t\trootExpr\ncollectionNavPropInJSON = quotation-mark entityColNavigationProperty quotation-mark\n\t\t\t\t\t\t\t\t\t\t\t\t\tname-separator\n\t\t\t\t\t\t\t\t\t\t\t\t\trootExprCol\n\nrootExprCol = begin-array \n [ rootExpr *( value-separator rootExpr ) ]\n end-array\n \n; JSON syntax: adapted to URI restrictions from [RFC4627] \nbegin-object = BWS ( \"{\" / \"%7B\" ) BWS\nend-object = BWS ( \"}\" / \"%7D\" )\n\nbegin-array = BWS ( \"[\" / \"%5B\" ) BWS \nend-array = BWS ( \"]\" / \"%5D\" )\n\nquotation-mark = DQUOTE / \"%22\"\nname-separator = BWS COLON BWS\nvalue-separator = BWS COMMA BWS\n\nprimitiveLiteralInJSON = stringInJSON\n / numberInJSON\n / 'true' \n / 'false'\n / 'null'\n\nstringInJSON = quotation-mark *charInJSON quotation-mark\ncharInJSON = qchar-unescaped \n / qchar-JSON-special \n / escape ( quotation-mark \n / escape\n / ( \"/\" / \"%2F\" ) ; solidus U+002F - literal form is allowed in the query part of a URL\n / 'b' ; backspace U+0008 \n / 'f' ; form feed U+000C\n / 'n' ; line feed U+000A\n / 'r' ; carriage return U+000D\n / 't' ; tab U+0009\n / 'u' 4HEXDIG ; U+XXXX\n )\n\nqchar-JSON-special = SP / \":\" / \"{\" / \"}\" / \"[\" / \"]\" ; some agents put these unencoded into the query part of a URL\n\nescape = \"\\\" / \"%5C\" ; reverse solidus U+005C\n\nnumberInJSON = [ \"-\" ] int [ frac ] [ exp ]\nint = \"0\" / ( oneToNine *DIGIT )\nfrac = \".\" 1*DIGIT\nexp = \"e\" [ \"-\" / \"+\" ] 1*DIGIT\n\n\n;------------------------------------------------------------------------------\n; 6. Names and identifiers\n;------------------------------------------------------------------------------\n\nsingleQualifiedTypeName = qualifiedEntityTypeName \n / qualifiedComplexTypeName\n / qualifiedTypeDefinitionName\n / qualifiedEnumTypeName\n / primitiveTypeName \n \nqualifiedTypeName = singleQualifiedTypeName \n / 'Collection' OPEN singleQualifiedTypeName CLOSE\n\nqualifiedEntityTypeName = namespace \".\" entityTypeName\nqualifiedComplexTypeName = namespace \".\" complexTypeName\nqualifiedTypeDefinitionName = namespace \".\" typeDefinitionName \nqualifiedEnumTypeName = namespace \".\" enumerationTypeName\n\n; an alias is just a single-part namespace\nnamespace = namespacePart *( \".\" namespacePart )\nnamespacePart = odataIdentifier\n\nentitySetName = odataIdentifier\nsingletonEntity = odataIdentifier \nentityTypeName = odataIdentifier\ncomplexTypeName = odataIdentifier\ntypeDefinitionName = odataIdentifier \nenumerationTypeName = odataIdentifier\nenumerationMember = odataIdentifier\ntermName = odataIdentifier\n\n; Note: this pattern is overly restrictive, the normative definition is type TSimpleIdentifier in OData EDM XML Schema\nodataIdentifier = identifierLeadingCharacter *127identifierCharacter\nidentifierLeadingCharacter = ALPHA / \"_\" ; plus Unicode characters from the categories L or Nl\nidentifierCharacter = ALPHA / \"_\" / DIGIT ; plus Unicode characters from the categories L, Nl, Nd, Mn, Mc, Pc, or Cf\n\nprimitiveTypeName = 'Edm.' ( 'Binary'\n / 'Boolean'\n / 'Byte'\n / 'Date' \n / 'DateTimeOffset'\n / 'Decimal'\n / 'Double'\n / 'Duration' \n / 'Guid' \n / 'Int16'\n / 'Int32'\n / 'Int64'\n / 'SByte'\n / 'Single'\n / 'Stream'\n / 'String'\n / 'TimeOfDay'\n / abstractSpatialTypeName [ concreteSpatialTypeName ] \n )\nabstractSpatialTypeName = 'Geography'\n / 'Geometry'\nconcreteSpatialTypeName = 'Collection'\n / 'LineString'\n / 'MultiLineString'\n / 'MultiPoint'\n / 'MultiPolygon'\n / 'Point'\n / 'Polygon'\n\nprimitiveProperty = primitiveKeyProperty / primitiveNonKeyProperty\nprimitiveKeyProperty = odataIdentifier\nprimitiveNonKeyProperty = odataIdentifier\nprimitiveColProperty = odataIdentifier\ncomplexProperty = odataIdentifier\ncomplexColProperty = odataIdentifier\nstreamProperty = odataIdentifier\n\nnavigationProperty = entityNavigationProperty / entityColNavigationProperty \nentityNavigationProperty = odataIdentifier\nentityColNavigationProperty = odataIdentifier\n\naction = odataIdentifier\nactionImport = odataIdentifier\n\nfunction = entityFunction \n / entityColFunction \n / complexFunction \n / complexColFunction \n / primitiveFunction \n / primitiveColFunction\n \nentityFunction = odataIdentifier\nentityColFunction = odataIdentifier\ncomplexFunction = odataIdentifier\ncomplexColFunction = odataIdentifier\nprimitiveFunction = odataIdentifier\nprimitiveColFunction = odataIdentifier\n\nentityFunctionImport = odataIdentifier\nentityColFunctionImport = odataIdentifier\ncomplexFunctionImport = odataIdentifier\ncomplexColFunctionImport = odataIdentifier\nprimitiveFunctionImport = odataIdentifier\nprimitiveColFunctionImport = odataIdentifier\n\n\n;------------------------------------------------------------------------------\n; 7. Literal Data Values\n;------------------------------------------------------------------------------\n\n; in URLs\nprimitiveLiteral = nullValue ; plain values up to int64Value\n / booleanValue \n / guidValue \n / dateValue\n / dateTimeOffsetValue \n / timeOfDayValue\n / decimalValue \n / doubleValue \n / singleValue \n / sbyteValue \n / byteValue\n / int16Value \n / int32Value \n / int64Value \n / string ; single-quoted\n / duration\n / enum\n / binary ; all others are quoted and prefixed \n / geographyCollection \n / geographyLineString \n / geographyMultiLineString \n / geographyMultiPoint \n / geographyMultiPolygon \n / geographyPoint \n / geographyPolygon \n / geometryCollection \n / geometryLineString \n / geometryMultiLineString \n / geometryMultiPoint \n / geometryMultiPolygon \n / geometryPoint \n / geometryPolygon\n \n; in Atom and JSON message bodies and CSDL DefaultValue attributes \nprimitiveValue = booleanValue\n / guidValue\n / durationValue\n / dateValue\n / dateTimeOffsetValue \n / timeOfDayValue\n / enumValue\n / fullCollectionLiteral\n / fullLineStringLiteral\n / fullMultiPointLiteral\n / fullMultiLineStringLiteral\n / fullMultiPolygonLiteral\n / fullPointLiteral\n / fullPolygonLiteral\n / decimalValue \n / doubleValue \n / singleValue \n / sbyteValue \n / byteValue\n / int16Value \n / int32Value \n / int64Value \n / binaryValue \n ; also valid are:\n ; - any XML string for strings in Atom and CSDL documents\n ; - any JSON string for JSON documents \n\nnullValue = 'null' \n\n; base64url encoding according to http://tools.ietf.org/html/rfc4648#section-5 \nbinary = \"binary\" SQUOTE binaryValue SQUOTE\nbinaryValue = *(4base64char) [ base64b16 / base64b8 ]\nbase64b16 = 2base64char ( 'A' / 'E' / 'I' / 'M' / 'Q' / 'U' / 'Y' / 'c' / 'g' / 'k' / 'o' / 's' / 'w' / '0' / '4' / '8' ) [ \"=\" ]\nbase64b8 = base64char ( 'A' / 'Q' / 'g' / 'w' ) [ \"==\" ]\nbase64char = ALPHA / DIGIT / \"-\" / \"_\"\n\nbooleanValue = \"true\" / \"false\"\n\ndecimalValue = [ SIGN ] 1*DIGIT [ \".\" 1*DIGIT ] [ \"e\" [ SIGN ] 1*DIGIT ] / nanInfinity\ndoubleValue = decimalValue ; IEEE 754 binary64 floating-point number (15-17 decimal digits)\nsingleValue = decimalValue ; IEEE 754 binary32 floating-point number (6-9 decimal digits)\nnanInfinity = 'NaN' / '-INF' / 'INF'\n\nguidValue = 8HEXDIG \"-\" 4HEXDIG \"-\" 4HEXDIG \"-\" 4HEXDIG \"-\" 12HEXDIG \n\nbyteValue = 1*3DIGIT ; numbers in the range from 0 to 255\nsbyteValue = [ SIGN ] 1*3DIGIT ; numbers in the range from -128 to 127\nint16Value = [ SIGN ] 1*5DIGIT ; numbers in the range from -32768 to 32767 \nint32Value = [ SIGN ] 1*10DIGIT ; numbers in the range from -2147483648 to 2147483647\nint64Value = [ SIGN ] 1*19DIGIT ; numbers in the range from -9223372036854775808 to 9223372036854775807\n\nstring = SQUOTE *( SQUOTE-in-string / pchar-no-SQUOTE ) SQUOTE\nSQUOTE-in-string = SQUOTE SQUOTE ; two consecutive single quotes represent one within a string literal\n\ndateValue = year \"-\" month \"-\" day\n\ndateTimeOffsetValue = year \"-\" month \"-\" day \"T\" hour \":\" minute [ \":\" second [ \".\" fractionalSeconds ] ] ( \"Z\" / SIGN hour \":\" minute )\n\nduration = [ \"duration\" ] SQUOTE durationValue SQUOTE\ndurationValue = [ SIGN ] \"P\" [ 1*DIGIT \"D\" ] [ \"T\" [ 1*DIGIT \"H\" ] [ 1*DIGIT \"M\" ] [ 1*DIGIT [ \".\" 1*DIGIT ] \"S\" ] ]\n ; the above is an approximation of the rules for an xml dayTimeDuration.\n ; see the lexical representation for dayTimeDuration in http://www.w3.org/TR/xmlschema11-2#dayTimeDuration for more information\n\ntimeOfDayValue = hour \":\" minute [ \":\" second [ \".\" fractionalSeconds ] ]\n \noneToNine = \"1\" / \"2\" / \"3\" / \"4\" / \"5\" / \"6\" / \"7\" / \"8\" / \"9\" \nzeroToFiftyNine = ( \"0\" / \"1\" / \"2\" / \"3\" / \"4\" / \"5\" ) DIGIT\nyear = [ \"-\" ] ( \"0\" 3DIGIT / oneToNine 3*DIGIT )\nmonth = \"0\" oneToNine\n / \"1\" ( \"0\" / \"1\" / \"2\" )\nday = \"0\" oneToNine\n / ( \"1\" / \"2\" ) DIGIT\n / \"3\" ( \"0\" / \"1\" )\nhour = ( \"0\" / \"1\" ) DIGIT\n / \"2\" ( \"0\" / \"1\" / \"2\" / \"3\" ) \nminute = zeroToFiftyNine\nsecond = zeroToFiftyNine \nfractionalSeconds = 1*12DIGIT\n\nenum = [ qualifiedEnumTypeName ] SQUOTE enumValue SQUOTE\nenumValue = singleEnumValue *( COMMA singleEnumValue )\nsingleEnumValue = enumerationMember / enumMemberValue\nenumMemberValue = int64Value\n\ngeographyCollection = geographyPrefix SQUOTE fullCollectionLiteral SQUOTE\nfullCollectionLiteral = sridLiteral collectionLiteral\ncollectionLiteral = \"Collection(\" geoLiteral *( COMMA geoLiteral ) CLOSE\ngeoLiteral = collectionLiteral\n / lineStringLiteral\n / multiPointLiteral\n / multiLineStringLiteral\n / multiPolygonLiteral\n / pointLiteral\n / polygonLiteral\n\ngeographyLineString = geographyPrefix SQUOTE fullLineStringLiteral SQUOTE\nfullLineStringLiteral = sridLiteral lineStringLiteral\nlineStringLiteral = \"LineString\" lineStringData\nlineStringData = OPEN positionLiteral 1*( COMMA positionLiteral ) CLOSE\n\ngeographyMultiLineString = geographyPrefix SQUOTE fullMultiLineStringLiteral SQUOTE\nfullMultiLineStringLiteral = sridLiteral multiLineStringLiteral\nmultiLineStringLiteral = \"MultiLineString(\" [ lineStringData *( COMMA lineStringData ) ] CLOSE\n\ngeographyMultiPoint = geographyPrefix SQUOTE fullMultiPointLiteral SQUOTE\nfullMultiPointLiteral = sridLiteral multiPointLiteral\nmultiPointLiteral = \"MultiPoint(\" [ pointData *( COMMA pointData ) ] CLOSE\n\ngeographyMultiPolygon = geographyPrefix SQUOTE fullMultiPolygonLiteral SQUOTE\nfullMultiPolygonLiteral = sridLiteral multiPolygonLiteral\nmultiPolygonLiteral = \"MultiPolygon(\" [ polygonData *( COMMA polygonData ) ] CLOSE\n\ngeographyPoint = geographyPrefix SQUOTE fullPointLiteral SQUOTE\nfullPointLiteral = sridLiteral pointLiteral\nsridLiteral = \"SRID\" EQ 1*5DIGIT SEMI\npointLiteral =\"Point\" pointData\npointData = OPEN positionLiteral CLOSE\npositionLiteral = doubleValue SP doubleValue ; longitude, then latitude\n\ngeographyPolygon = geographyPrefix SQUOTE fullPolygonLiteral SQUOTE\nfullPolygonLiteral = sridLiteral polygonLiteral\npolygonLiteral = \"Polygon\" polygonData\npolygonData = OPEN ringLiteral *( COMMA ringLiteral ) CLOSE\nringLiteral = OPEN positionLiteral *( COMMA positionLiteral ) CLOSE\n ; Within each ringLiteral, the first and last positionLiteral elements MUST be an exact syntactic match to each other.\n ; Within the polygonData, the ringLiterals MUST specify their points in appropriate winding order. \n ; In order of traversal, points to the left side of the ring are interpreted as being in the polygon.\n\ngeometryCollection = geometryPrefix SQUOTE fullCollectionLiteral SQUOTE\ngeometryLineString = geometryPrefix SQUOTE fullLineStringLiteral SQUOTE\ngeometryMultiLineString = geometryPrefix SQUOTE fullMultiLineStringLiteral SQUOTE\ngeometryMultiPoint = geometryPrefix SQUOTE fullMultiPointLiteral SQUOTE\ngeometryMultiPolygon = geometryPrefix SQUOTE fullMultiPolygonLiteral SQUOTE\ngeometryPoint = geometryPrefix SQUOTE fullPointLiteral SQUOTE\ngeometryPolygon = geometryPrefix SQUOTE fullPolygonLiteral SQUOTE\n\ngeographyPrefix = \"geography\"\ngeometryPrefix = \"geometry\" \n\n\n;------------------------------------------------------------------------------\n; 8. Header values\n;------------------------------------------------------------------------------\n\nheader = content-id\n / entityid \n / isolation\n / odata-maxversion\n / odata-version\n / prefer\n\ncontent-id = \"Content-ID\" \":\" OWS request-id\nrequest-id = 1*unreserved\n \nentityid = [ \"OData-\" ] \"EntityID\" \":\" OWS IRI-in-header\nisolation = [ \"OData-\" ] \"Isolation\" \":\" OWS \"snapshot\"\nodata-maxversion = \"OData-MaxVersion\" \":\" OWS 1*DIGIT \".\" 1*DIGIT \nodata-version = \"OData-Version\" \":\" OWS \"4.0\" [ oneToNine ]\n \nprefer = \"Prefer\" \":\" OWS preference *( COMMA preference ) \npreference = allowEntityReferencesPreference\n / callbackPreference\n / continueOnErrorPreference\n / includeAnnotationsPreference\n / maxpagesizePreference\n / respondAsyncPreference\n / returnPreference\n / trackChangesPreference\n / waitPreference\n ; and everything allowed by http://tools.ietf.org/html/draft-snell-http-prefer-18\n ; / token [ EQ-h word ] *( OWS \";\" [ OWS parameter ] )\n \nallowEntityReferencesPreference = [ \"odata.\" ] \"allow-entityreferences\"\n\ncallbackPreference = [ \"odata.\" ] \"callback\" OWS \";\" OWS \"url\" EQ-h DQUOTE URI DQUOTE\n\ncontinueOnErrorPreference = [ \"odata.\" ] \"continue-on-error\" [ EQ-h booleanValue ] \n \nincludeAnnotationsPreference = [ \"odata.\" ] \"include-annotations\" EQ-h DQUOTE annotationsList DQUOTE\nannotationsList = annotationIdentifier *(COMMA annotationIdentifier)\nannotationIdentifier = [ excludeOperator ]\n ( STAR \n / namespace \".\" ( termName / STAR ) \n ) \n [ \"#\" odataIdentifier ]\nexcludeOperator = \"-\"\n \nmaxpagesizePreference = [ \"odata.\" ] \"maxpagesize\" EQ-h oneToNine *DIGIT \n\nrespondAsyncPreference = \"respond-async\"\n\nreturnPreference = \"return\" EQ-h ( 'representation' / 'minimal' )\n\ntrackChangesPreference = [ \"odata.\" ] \"track-changes\"\n\nwaitPreference = \"wait\" EQ-h 1*DIGIT\n\n;parameter = token [ EQ-h word ]\n;word = token / quoted-string\n;token = 1*tchar\n;tchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" / \"*\"\n; / \"+\" / \"-\" / \".\" / \"^\" / \"_\" / \"`\" / \"|\" / \"~\"\n; / DIGIT / ALPHA\n;quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE\n;qdtext = %x21 / %x23-5B / %x5D-7E / obs-text / OWS\nobs-text = %x80-FF\n;quoted-pair = \"\\\" ( HTAB / SP / VCHAR / obs-text )\n\nOWS = *( SP / HTAB ) ; \"optional\" whitespace \nBWS-h = *( SP / HTAB ) ; \"bad\" whitespace in header values \nEQ-h = BWS-h EQ BWS-h \n\n\n;------------------------------------------------------------------------------\n; 9. Punctuation\n;------------------------------------------------------------------------------\n\nRWS = 1*( SP / HTAB / \"%20\" / \"%09\" ) ; \"required\" whitespace \nBWS = *( SP / HTAB / \"%20\" / \"%09\" ) ; \"bad\" whitespace \n\nAT = \"@\" / \"%40\"\nCOLON = \":\" / \"%3A\"\nCOMMA = \",\" / \"%2C\"\nEQ = \"=\"\nSIGN = \"+\" / \"%2B\" / \"-\"\nSEMI = \";\" / \"%3B\"\nSTAR = \"*\" / \"%2A\"\nSQUOTE = \"'\" / \"%27\"\n\nOPEN = \"(\" / \"%28\"\nCLOSE = \")\" / \"%29\"\n\n\n;------------------------------------------------------------------------------\n; A. URI syntax [RFC3986]\n;------------------------------------------------------------------------------\n\nURI = scheme \":\" hier-part [ \"?\" query ] [ \"#\" fragment ]\nhier-part = \"//\" authority path-abempty\n / path-absolute\n / path-rootless\n; / path-empty\n;URI-reference = URI / relative-ref\n;absolute-URI = scheme \":\" hier-part [ \"?\" query ]\n;relative-ref = relative-part [ \"?\" query ] [ \"#\" fragment ]\n;relative-part = \"//\" authority path-abempty\n; / path-absolute\n; / path-noscheme\n; / path-empty\nscheme = ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" )\nauthority = [ userinfo \"@\" ] host [ \":\" port ]\nuserinfo = *( unreserved / pct-encoded / sub-delims / \":\" )\nhost = IP-literal / IPv4address / reg-name\nport = *DIGIT\nIP-literal = \"[\" ( IPv6address / IPvFuture ) \"]\"\nIPvFuture = \"v\" 1*HEXDIG \".\" 1*( unreserved / sub-delims / \":\" )\nIPv6address = 6( h16 \":\" ) ls32\n / \"::\" 5( h16 \":\" ) ls32\n / [ h16 ] \"::\" 4( h16 \":\" ) ls32\n / [ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n / [ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n / [ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n / [ *4( h16 \":\" ) h16 ] \"::\" ls32\n / [ *5( h16 \":\" ) h16 ] \"::\" h16\n / [ *6( h16 \":\" ) h16 ] \"::\"\nh16 = 1*4HEXDIG\nls32 = ( h16 \":\" h16 ) / IPv4address\nIPv4address = dec-octet \".\" dec-octet \".\" dec-octet \".\" dec-octet\ndec-octet = \"1\" 2DIGIT ; 100-199\n / \"2\" %x30-34 DIGIT ; 200-249\n / \"25\" %x30-35 ; 250-255\n / %x31-39 DIGIT ; 10-99\n / DIGIT ; 0-9\nreg-name = *( unreserved / pct-encoded / sub-delims )\n;path = path-abempty ; begins with \"/\" or is empty\n; / path-absolute ; begins with \"/\" but not \"//\"\n; / path-noscheme ; begins with a non-colon segment\n; / path-rootless ; begins with a segment\n; / path-empty ; zero characters\npath-abempty = *( \"/\" segment )\npath-absolute = \"/\" [ segment-nz *( \"/\" segment ) ]\n;path-noscheme = segment-nz-nc *( \"/\" segment )\npath-rootless = segment-nz *( \"/\" segment )\n;path-empty = \"\"\nsegment = *pchar\nsegment-nz = 1*pchar\n;segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / \"@\" ) ; non-zero-length segment without any colon \":\"\npchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\nquery = *( pchar / \"/\" / \"?\" )\nfragment = *( pchar / \"/\" / \"?\" )\npct-encoded = \"%\" HEXDIG HEXDIG\nunreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n;reserved = gen-delims / sub-delims\n;gen-delims = \":\" / \"/\" / \"?\" / \"#\" / \"[\" / \"]\" / \"@\"\n;sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\" / \"*\" / \"+\" / \",\" / \";\" / \"=\"\nsub-delims = \"$\" / \"&\" / \"'\" / \"=\" / other-delims\nother-delims = \"!\" / \"(\" / \")\" / \"*\" / \"+\" / \",\" / \";\"\n\npchar-no-SQUOTE = unreserved / pct-encoded-no-SQUOTE / other-delims / \"$\" / \"&\" / \"=\" / \":\" / \"@\"\npct-encoded-no-SQUOTE = \"%\" ( \"0\" / \"1\" / \"3\" / \"4\" / \"5\" / \"6\" / \"8\" / \"9\" / A-to-F ) HEXDIG \n / \"%\" \"2\" ( \"0\" / \"1\" / \"2\" / \"3\" / \"4\" / \"5\" / \"6\" / \"8\" / \"9\" / A-to-F )\n\nqchar-no-AMP = unreserved / pct-encoded / other-delims / \":\" / \"@\" / \"/\" / \"?\" / \"$\" / \"'\" / \"=\"\nqchar-no-AMP-EQ = unreserved / pct-encoded / other-delims / \":\" / \"@\" / \"/\" / \"?\" / \"$\" / \"'\"\nqchar-no-AMP-EQ-AT-DOLLAR = unreserved / pct-encoded / other-delims / \":\" / \"/\" / \"?\" / \"'\"\n\nqchar-unescaped = unreserved / pct-encoded-unescaped / other-delims / \":\" / \"@\" / \"/\" / \"?\" / \"$\" / \"'\" / \"=\"\npct-encoded-unescaped = \"%\" ( \"0\" / \"1\" / \"3\" / \"4\" / \"6\" / \"7\" / \"8\" / \"9\" / A-to-F ) HEXDIG \n / \"%\" \"2\" ( \"0\" / \"1\" / \"3\" / \"4\" / \"5\" / \"6\" / \"7\" / \"8\" / \"9\" / A-to-F ) \n / \"%\" \"5\" ( DIGIT / \"A\" / \"B\" / \"D\" / \"E\" / \"F\" )\n\nqchar-no-AMP-DQUOTE = qchar-unescaped \n / escape ( escape / quotation-mark )\n \n \n;------------------------------------------------------------------------------\n; B. IRI syntax [RFC3987]\n;------------------------------------------------------------------------------\n; Note: these are over-generous stubs, for the actual patterns refer to RFC3987\n;------------------------------------------------------------------------------\n\nIRI-in-header = 1*( VCHAR / obs-text )\nIRI-in-query = 1*qchar-no-AMP\n\n \n;------------------------------------------------------------------------------\n; C. ABNF core definitions [RFC5234]\n;------------------------------------------------------------------------------\n\nALPHA = %x41-5A / %x61-7A \nDIGIT = %x30-39 \nHEXDIG = DIGIT / A-to-F\nA-to-F = \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" \nDQUOTE = %x22\nSP = %x20 \nHTAB = %x09 \n;WSP = SP / HTAB \n;LWSP = *(WSP / CRLF WSP) \nVCHAR = %x21-7E \n;CHAR = %x01-7F\n;LOCTET = %x00-FF \n;CR = %x0D \n;LF = %x0A \n;CRLF = CR LF\n;BIT = \"0\" / \"1\" \n\n\n;------------------------------------------------------------------------------\n; End of odata-abnf-construction-rules\n;------------------------------------------------------------------------------" }
UTF-8
ABNF
54,567
quantum6
2f00500560d5853c67153f4cd87ae09555a8e294
5abe089d154ae01779dcbde0fa6d4f84f2ceb059
/tinyHTTP/abnf/http.abnf
094d7d1a5d1a33578aae99ca5ca9d63713d68473
quantum6/doubango-quantum6
{ "content": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;\n; RFC 5234 - ABNF CORE RULES\n;\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\nOCTET= %x00-FF ; 8 bits of data\nCHAR= %x01-7F ; any 7-bit US-ASCII character, excluding NUL\nVCHAR= %x21-7E ; visible (printing) characters\nALPHA= %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT= %x30-39 ; 0-9\n \nCTL= %x00-1F / %x7F ; any US-ASCII control character: ; (octets 0 - 31) and DEL (127)\n \nHTAB= %x09 ; horizontal tab\nLF= %x0A ; linefeed\nCR= %x0D ; carriage return\nSP= %x20 ; space\nDQUOTE= %x22 ; \" (Double Quote)\nBIT= \"0\" / \"1\" \n \nHEXDIG= DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n \nCRLF= CR LF ; Internet standard newline\nWSP= SP / HTAB ; white space\nLWSP= *(WSP / CRLF WSP) ; linear white space (past newline)\n;---------------------------------------------------------------------------------------------------------\n\n\n\n\n\n\n\n\n\n\n\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;\n; RFC 2396 - URI\n;\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\n;;;; 1.6. Syntax Notation and Common Elements\n;alpha = lowalpha / upalpha\nlowalpha = \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\" / \"g\" / \"h\" / \"i\" / \"j\" / \"k\" / \"l\" / \"m\" / \"n\" / \"o\" / \"p\" / \"q\" / \"r\" / \"s\" / \"t\" / \"u\" / \"v\" / \"w\" / \"x\" / \"y\" / \"z\"\nupalpha = \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" / \"G\" / \"H\" / \"I\" / \"J\" / \"K\" / \"L\" / \"M\" / \"N\" / \"O\" / \"P\" / \"Q\" / \"R\" / \"S\" / \"T\" / \"U\" / \"V\" / \"W\" / \"X\" / \"Y\" / \"Z\"\n;digit = \"0\" / \"1\" / \"2\" / \"3\" / \"4\" / \"5\" / \"6\" / \"7\" / \"8\" / \"9\"\nalphanum = alpha / digit\n\n;;;; 2. URI Characters and Escape Sequences\nurlc = reserved / unreserved / escaped\n\n;;;; 2.2. Reserved Characters\nreserved = \";\" / \"/\" / \"?\" / \":\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\"\n\n;;;; 2.3. Unreserved Characters\nunreserved = alphanum / mark\nmark = \"-\" / \"_\" / \".\" / \"!\" / \"~\" / \"*\" / \"'\" / \"(\" / \")\"\n\n;;;; 2.4.1. Escaped Encoding\nescaped = \"%\" hex hex\nhex = digit / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" / \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\"\n\n\n;;;; 2.4.3. Excluded US-ASCII Characters\ncontrol = %x00-1F / %x7F ;<US-ASCII coded characters 00-1F and 7F hexadecimal>\nspace = %x20 ;<US-ASCII coded character 20 hexadecimal>\ndelims = \"<\" / \">\" / \"#\" / \"%\" / DQUOTE\nunwise = \"{\" / \"}\" / \"/\" / \"\\\" / \"^\" / \"[\" / \"]\" / \"`\"\n\n\n;;;; 3. URI Syntactic Components\nabsoluteURI = scheme \":\" ( hier-part / opaque-part )\nhier-part = ( net-path / abs-path ) [ \"?\" query ]\nnet-path = \"//\" authority [ abs-path ]\nabs-path = \"/\" path-segments\nopaque-part = urlc-no-slash *urlc\nurlc-no-slash = unreserved / escaped / \";\" / \"?\" / \":\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\"\n\n;;;; 3.1. Scheme Component\nscheme = alpha *( alpha / digit / \"+\" / \"-\" / \".\" )\n\n;;;; 3.2. Authority Component\nauthority = server / reg-name\n\n;;;; Registry-based Naming Authority\nreg-name = 1*( unreserved / escaped / \"$\" / \",\" / \";\" / \":\" / \"@\" / \"&\" / \"=\" / \"+\" )\n\n;;;; 3.2.2. Server-based Naming Authority\nserver = [ [ userinfo \"@\" ] hostport ]\nuserinfo = *( unreserved / escaped / \";\" / \":\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\" )\nhostport = host [ \":\" port ]\nhost = hostname / IPv4address\nhostname = *( domainlabel \".\" ) toplabel [ \".\" ]\ndomainlabel = alphanum / alphanum *( alphanum / \"-\" ) alphanum\ntoplabel = alpha / alpha *( alphanum / \"-\" ) alphanum\nIPv4address = 1*digit \".\" 1*digit \".\" 1*digit \".\" 1*digit\nport = *digit\n\n;;;; 3.3. Path Component\npath = [ abs-path / opaque-part ]\npath-segments = segment *( \"/\" segment )\nsegment = *pchar *( \";\" param )\nparam = *pchar\npchar = unreserved / escaped / \":\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\"\n\n;;;; 3.4. Query Component\nquery = *urlc\n\n;;;; 4. URI References\nURI-reference = [ absoluteURI / relativeURI ] [ \"#\" fragment ]\n\n\n;;;; 4.1. Fragment Identifier\nfragment = *urlc\n\n;;;; 5. Relative URI References\nrelativeURI = ( net-path / abs-path / rel-path ) [ \"?\" query ]\nrel-path = rel-segment [ abs-path ]\nrel-segment = 1*( unreserved / escaped / \";\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\" )\n;---------------------------------------------------------------------------------------------------------\n\n\n\n\n\n\n\n\n\n\n\n\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;\n; HTTP digest authentication (2617) - ABNF\n;\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\n;;;; 1.2 Access Authentication Framework\nauth-scheme = token\nauth-param = token \"=\" ( token / quoted-string )\n\nchallenge = auth-scheme 1*SP auth-param *(COMMA auth-param)\n\nrealm = \"realm\" \"=\" realm-value\nrealm-value = quoted-string\n\n;;;; 2 Basic Authentication Scheme\nbasic-challenge = \"Basic\" realm\nbasic-credentials = \"Basic\" basic-credentials-value\n\nbasic-credentials-value = base64-user-pass\nbase64-user-pass = token ;<base64 [4] encoding of user-pass, except not limited to 76 char/line>\nuser-pass = userid \":\" password\nuserid = *TEXT ;*<TEXT excluding \":\">\npassword = *TEXT\n\n;;;; 3.2.1 The WWW-Authenticate Response Header\n;challenge = \"Digest\" digest-challenge\n\ndigest-challenge = digest-challenge-value *(COMMA digest-challenge-value)\ndigest-challenge-value = ( realm / [ domain ] / nonce / [ opaque ] /[ stale ] / [ algorithm ] / [ qop-options ] / [auth-param] )\n\ndomain = \"domain\" \"=\" <\"> URI ( 1*SP URI ) <\">\nURI = absoluteURI / abs-path\nnonce = \"nonce\" \"=\" nonce-value\nnonce-value = quoted-string\nopaque = \"opaque\" \"=\" quoted-string\nstale = \"stale\" \"=\" ( \"true\" / \"false\" )\nalgorithm = \"algorithm\" \"=\" ( \"MD5\" / \"MD5-sess\" / token )\nqop-options = \"qop\" \"=\" DQUOTE qop-value *(COMMA qop-value) DQUOTE\nqop-value = \"auth\" / \"auth-int\" / token\n\n\n;;;; 3.2.2 The Authorization Request Header\ncredentials = \"Digest\" digest-response\ndigest-response = digest-response-value *(COMMA digest-response-value)\ndigest-response-value = ( username / realm / nonce / digest-url / auth-response / [ algorithm ] / [cnonce] / [opaque] / [message-qop] / [nonce-count] / [auth-param] )\n\nusername = \"username\" \"=\" username-value\nusername-value = quoted-string\ndigest-url = \"url\" \"=\" digest-url-value\ndigest-url-value = request-url ; As specified by HTTP/1.1\nmessage-qop = \"qop\" \"=\" qop-value\ncnonce = \"cnonce\" \"=\" cnonce-value\ncnonce-value = nonce-value\nnonce-count = \"nc\" \"=\" nc-value\nnc-value = 8LHEX\nauth-response = \"response\" \"=\" request-digest\nrequest-digest = DQUOTE 32LHEX DQUOTE\nLHEX = \"0\" / \"1\" / \"2\" / \"3\" / \"4\" / \"5\" / \"6\" / \"7\" / \"8\" / \"9\" / \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\"\n\n\n;;;; 3.2.3 The Authentication-Info Header\nAuthenticationInfo = \"Authentication-Info\" \":\" auth-info\nauth-info = auth-info-value *(COMMA auth-info-value)\nauth-info-value = (nextnonce / [ message-qop ] / [ response-auth ] / [ cnonce ] / [nonce-count] )\nnextnonce = \"nextnonce\" \"=\" nonce-value\nresponse-auth = \"rspauth\" \"=\" response-digest\nresponse-digest = DQUOTE *LHEX DQUOTE\n;---------------------------------------------------------------------------------------------------------\n\n\n\n\n\n\n\n\n\n\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;\n; HTTP (2616) - ABNF\n;\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\nHT = %x09; <US-ASCII HT, horizontal-tab (9)>\nseparators\t = \"(\" / \")\" / \"<\" / \">\" / \"@\" / \",\" / \";\" / \":\" / \"\\\" / DQUOTE / \"/\" / \"[\" / \"]\" / \"?\" / \"=\" / \"{\" / \"}\" / SP / HTAB\ntoken\t = 1*( alphanum / separators ) ; *<any CHAR except CTLs or separators>\nLWS\t = [*WSP CRLF] 1*WSP \t; linear whitespace\nSWS\t = \t[LWS] \t; sep whitespace \nTEXT = 1*(token / LWS) ; <any OCTET except CTLs, but including LWS>\nCOMMA\t = SWS \t\",\" \tSWS \t; comma\n\n;;;; text (from http ==> is it right?)\nTEXT-UTF8-TRIM\t= 1*TEXT-UTF8char *(*LWS TEXT-UTF8char)\nTEXT-UTF8char\t= %x21-7E / UTF8-NONASCII\nUTF8-NONASCII\t= %xC0-DF \t1UTF8-CONT /\t%xE0-EF \t2UTF8-CONT /\t%xF0-F7 \t3UTF8-CONT /\t%xF8-FB \t4UTF8-CONT /\t%xFC-FD \t5UTF8-CONT\nUTF8-CONT\t = %x80-BF\n\n\ncomment = \"(\" *( ctext / quoted-pair / comment ) \")\"\nctext\t = %x21-27 / %x2A-5B / %x5D-7E / UTF8-NONASCII / LWS ; <any TEXT excluding \"(\" and \")\">\n\n;;;; quoted-string\nquoted-string = ( DQUOTE *(qdtext / quoted-pair ) DQUOTE )\nqdtext\t = LWS / %x21 / %x23-5B / %x5D-7E / UTF8-NONASCII ; <any TEXT except DQUOTE>\nquoted-pair = \"\\\" CHAR\n\n;;;; HTTP-Version\nHTTP-Version = \"HTTP\" \"/\" 1*DIGIT \".\" 1*DIGIT\n\n;;;; HTTP-date\nHTTP-date = rfc1123-date / rfc850-date / asctime-date\nrfc1123-date = wkday \",\" SP date1 SP time SP \"GMT\"\nrfc850-date = weekday \",\" SP date2 SP time SP \"GMT\"\nasctime-date = wkday SP date3 SP time SP 4DIGIT\ndate1 = 2DIGIT SP month SP 4DIGIT ; day month year (e.g., 02 Jun 1982)\ndate2 = 2DIGIT \"-\" month \"-\" 2DIGIT ; day-month-year (e.g., 02-Jun-82)\ndate3 = month SP ( 2DIGIT / ( SP 1DIGIT )) ; month day (e.g., Jun 2)\ntime = 2DIGIT \":\" 2DIGIT \":\" 2DIGIT ; 00:00:00 - 23:59:59\nwkday = \"Mon\" / \"Tue\" / \"Wed\" / \"Thu\" / \"Fri\" / \"Sat\" / \"Sun\"\nweekday = \"Monday\" / \"Tuesday\" / \"Wednesday\" / \"Thursday\" / \"Friday\" / \"Saturday\" / \"Sunday\"\nmonth = \"Jan\" / \"Feb\" / \"Mar\" / \"Apr\" / \"May\" / \"Jun\" / \"Jul\" / \"Aug\" / \"Sep\" / \"Oct\" / \"Nov\" / \"Dec\"\n\n;;;; 3.3.2 Delta Seconds\ndelta-seconds = 1*DIGIT\n\n;;;; 3.4 Character Sets\ncharset = token\n\n;;;; 3.5 Content Codings\ncontent-coding = token\n\n;;;; 3.6 Transfer Codings\ntransfer-coding = \"chunked\" / transfer-extension\ntransfer-extension = token *( \";\" parameter )\nparameter = attribute \"=\" value\nattribute = token\nvalue = token / quoted-string\n\n;;;; 3.6.1 Chunked Transfer Coding\nChunked-Body = *chunk last-chunk chunck-trailer CRLF\nchunk = chunk-size [ chunk-extension ] CRLF chunk-data CRLF\nchunk-size = 1*HEX\nlast-chunk = 1*(\"0\") [ chunk-extension ] CRLF\nchunk-extension= *( \";\" chunk-ext-name [ \"=\" chunk-ext-val ] )\nchunk-ext-name = token\nchunk-ext-val = token / quoted-string\nchunk-data = chunk-size\nchunck-trailer = *(entity-header CRLF)\n\n;;;; 3.7 Media Types\nmedia-type = type \"/\" subtype *( \";\" parameter )\ntype = token\nsubtype = token\n\n;;;; 3.8 Product Tokens\nproduct = token [\"/\" product-version]\nproduct-version = token\n\n;;;;3.9 Quality Values\nqvalue = ( \"0\" [ \".\" 0*3DIGIT ] ) / ( \"1\" [ \".\" 0*3(\"0\") ] )\n\n;;;; 3.10 Language Tags\nlanguage-tag = primary-tag *( \"-\" subtag )\nprimary-tag = 1*8ALPHA\nsubtag = 1*8ALPHA\n\n;;;; 3.11 Entity Tags\nentity-tag = [ weak ] opaque-tag\nweak = \"W/\"\nopaque-tag = quoted-string\n\n;;;; 3.12 Range Units\nrange-unit = bytes-unit / other-range-unit\nbytes-unit = \"bytes\"\nother-range-unit = token\n\n\n;;;; 4.1 Message Types\nHTTP-message = Request / Response ; HTTP/1.1 messages\ngeneric-message = start-line *(message-header CRLF) CRLF [ message-body ]\nstart-line = Request-Line / Status-Line\n\n\n;;;;4.2 Message Headers\nmessage-header = field-name \":\" [ field-value ]\nfield-name = token\nfield-value = *( field-content / LWS )\nfield-content = token ;<the OCTETs making up the field-value and consisting of either *TEXT or combinations of token, separators, and quoted-string>\n\n\n;;;; 4.3 Message Body\nmessage-body = entity-body ;/ <entity-body encoded as per Transfer-Encoding>\n\n\n;;;; 4.5 General Header Fields\ngeneral-header = Cache-Control / Connection / Date / Pragma / Trailer / Transfer-Encoding / Upgrade / Via / Warning\n;Cache-Control = \"Cache-Control\" \":\" [ field-value ]\n;Connection = \"Connection\" \":\" [ field-value ]\n;Date = \"Date\" \":\" [ field-value ]\n;Pragma = \"Pragma\" \":\" [ field-value ]\n;Trailer = \"Trailer\" \":\" [ field-value ]\n;Transfer-Encoding = \"Transfer-Encoding\" \":\" [ field-value ]\n;Upgrade = \"Upgrade\" \":\" [ field-value ]\n;Via = \"Via\" \":\" [ field-value ]\n;Warning = \"Warning\" \":\" [ field-value ]\n\n;;;; 5 Request\nRequest = Request-Line *(( general-header / request-header / entity-header ) CRLF) CRLF [ message-body ]\n\n;;;; 5.1 Request-Line\nRequest-Line = Method SP Request-URI SP HTTP-Version CRLF\n\n;;;; 5.1.1 Method\nMethod = \"OPTIONS\" / \"GET\" / \"HEAD\" / \"POST\" / \"PUT\" / \"DELETE\" / \"TRACE\" / \"CONNECT\" / extension-method\nextension-method = token\n\n;;;; 5.1.2 Request-URI\nRequest-URI = \"*\" / absoluteURI / abs-path / authority\n\n;;;; 5.3 Request Header Fields\nrequest-header = Accept / Accept-Charset / Accept-Encoding / Accept-Language / Authorization / Expect / From / Host / If-Match / If-Modified-Since / If-None-Match / If-Range / If-Unmodified-Since / Max-Forwards / Proxy-Authorization / Range / Referer / TE / User-Agent\n\n;;;; 6 Response\nResponse = Status-Line *(( general-header / response-header / entity-header ) CRLF) CRLF [ message-body ]\n\n;;;; 6.1 Status-Line\nStatus-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF\n\n;;;; 6.1.1 Status Code and Reason Phrase\nStatus-Code = \"100\" / \"101\" / \"200\" / \"201\" / \"202\" / \"203\" / \"204\" / \"205\" / \"206\" / \"300\" / \"301\" / \"302\" / \"303\" / \"304\" / \"305\" / \"307\" / \"400\" / \"401\" / \"402\" / \"403\" / \"404\" / \"405\" / \"406\" / \"407\" / \"408\" / \"409\" / \"410\" / \"411\" / \"412\" / \"413\" / \"414\" / \"415\" / \"416\" / \"417\" / \"500\" / \"501\" / \"502\" / \"503\" / \"504\" / \"505\" / extension-code\nextension-code = 3DIGIT\nReason-Phrase = *( reserved / unreserved / escaped / UTF8-NONASCII / UTF8-CONT / SP / HTAB ) ;*<TEXT, excluding CR, LF>\n\n;;;; 6.2 Response Header Fields\nresponse-header = Accept-Ranges / Age / ETag / Location / Proxy-Authenticate / Retry-After / Server / Vary / WWW-Authenticate\n\n;;;; 7.1 Entity Header Fields\nentity-header = Allow / Content-Encoding / Content-Language / Content-Length / Content-Location / Content-MD5 / Content-Range / Content-Type / Expires / Last-Modified / extension-header\nextension-header = message-header\n\n;;;; 7.2 Entity Body\nentity-body = *OCTET\n\n;;;; 7.2.1 Type\n;entity-body := Content-Encoding( Content-Type( data ) )\n\n;;;; 14.1 Accept\nAccept = \"Accept\" \":\" [ media-range [ accept-params ] ]\nmedia-range = ( \"*/*\" / ( type \"/\" \"*\" ) / ( type \"/\" subtype )) *( \";\" parameter )\naccept-params = \";\" \"q\" \"=\" qvalue *( accept-extension )\naccept-extension = \";\" token [ \"=\" ( token / quoted-string ) ]\n\n;;;; 14.2 Accept-Charset\nAccept-Charset = \"Accept-Charset\" \":\" Accept-Charset-Value *(COMMA Accept-Charset-Value)\nAccept-Charset-Value = token;FIXME:( charset / \"*\" )[ \";\" \"q\" \"=\" qvalue ] )\n\n;;;; 14.3 Accept-Encoding\nAccept-Encoding = \"Accept-Encoding\" \":\" Accept-Encoding-Value *(COMMA Accept-Encoding-Value)\nAccept-Encoding-Value = ( codings [ \";\" \"q\" \"=\" qvalue ] )\ncodings = ( content-coding / \"*\" )\n\n;;;; 14.4 Accept-Language\nAccept-Language = \"Accept-Language\" \":\" Accept-Language-Value *(COMMA Accept-Language-Value)\nAccept-Language-Value = ( language-range [ \";\" \"q\" \"=\" qvalue ] )\nlanguage-range = ( ( 1*8ALPHA *( \"-\" 1*8ALPHA ) ) / \"*\" )\n\n;;;; 14.5 Accept-Ranges\nAccept-Ranges = \"Accept-Ranges\" \":\" acceptable-ranges\nacceptable-ranges = (range-unit *(COMMA range-unit)) / \"none\"\n\n;;;; 14.6 Age\nAge = \"Age\" \":\" age-value\nage-value = delta-seconds\n \n;;;; 14.7 Allow\nAllow = \"Allow\" \":\" [Method]\n\n;;;; 14.8 Authorization\nAuthorization = \"Authorization\" \":\" credentials\n\n;;;; 14.9 Cache-Control\nCache-Control = \"Cache-Control\" \":\" cache-directive *(COMMA cache-directive)\ncache-directive = cache-request-directive / cache-response-directive\ncache-request-directive = \"no-cache\" / \"no-store\" / \"max-age\" \"=\" delta-seconds / \"max-stale\" [ \"=\" delta-seconds ] / \"min-fresh\" \"=\" delta-seconds / \"no-transform\" / \"only-if-cached\" / cache-extension \ncache-response-directive = \"public\" / \"private\" [ \"=\" DQUOTE field-name *(COMMA field-name) DQUOTE ] / \"no-cache\" [ \"=\" DQUOTE field-name *(COMMA field-name) DQUOTE ] / \"no-store\" / \"no-transform\" / \"must-revalidate\" / \"proxy-revalidate\" / \"max-age\" \"=\" delta-seconds / \"s-maxage\" \"=\" delta-seconds / cache-extension\ncache-extension = token [ \"=\" ( token / quoted-string ) ]\n\n;;;; 14.9.6 Cache Control Extensions\n;Cache-Control: private, community=\"UCI\"\n\n;;;; 14.10 Connection\nConnection = \"Connection\" \":\" (connection-token) *(COMMA connection-token)\nconnection-token = token\n\n;;;; 14.11 Content-Encoding\nContent-Encoding = \"Content-Encoding\" \":\" content-coding *(COMMA content-coding)\n\n;;;; 14.12 Content-Language\nContent-Language = \"Content-Language\" \":\" language-tag *(COMMA language-tag)\n\n;;;; 14.13 Content-Length\nContent-Length = \"Content-Length\" \":\" 1*DIGIT\n\n;;;; 14.14 Content-Location\nContent-Location = \"Content-Location\" \":\" ( absoluteURI / relativeURI )\n\n;;;; 14.15 Content-MD5\nContent-MD5 = \"Content-MD5\" \":\" md5-digest\nmd5-digest = *OCTET ;<base64 of 128 bit MD5 digest as per RFC 1864>\n\n;;;; 14.16 Content-Range\nContent-Range = \"Content-Range\" \":\" content-range-spec\ncontent-range-spec = byte-content-range-spec\nbyte-content-range-spec = bytes-unit SP byte-range-resp-spec \"/\" ( instance-length / \"*\" )\nbyte-range-resp-spec = (first-byte-pos \"-\" last-byte-pos) / \"*\"\ninstance-length = 1*DIGIT\n\n;;;; 14.17 Content-Type\nContent-Type = \"Content-Type\" \":\" media-type\n\n;;;; 14.18 Date\nDate = \"Date\" \":\" HTTP-date\n\n;;;; 14.19 ETag\nETag = \"ETag\" \":\" entity-tag\n\n;;;; 14.20 Expect\nExpect = \"Expect\" \":\" expectation *(COMMA expectation)\nexpectation = \"100-continue\" / expectation-extension\nexpectation-extension = token [ \"=\" ( token / quoted-string ) *expect-params ]\nexpect-params = \";\" token [ \"=\" ( token / quoted-string ) ]\n\n;;;; 14.21 Expires\nExpires = \"Expires\" \":\" HTTP-date\n\n;;;; 14.22 From\nFrom = \"From\" \":\" mailbox\nmailbox = token ; FIXME\n\n;;;; 14.23 Host\nHost = \"Host\" \":\" host [ \":\" port ] ; Section 3.2.2\n\n;;;; 14.24 If-Match\nIf-Match = \"If-Match\" \":\" ( \"*\" / entity-tag *(COMMA entity-tag) )\n\n;;;; 14.25 If-Modified-Since\nIf-Modified-Since = \"If-Modified-Since\" \":\" HTTP-date\n\n;;;; 14.26 If-None-Match\nIf-None-Match = \"If-None-Match\" \":\" ( \"*\" / entity-tag *(COMMA entity-tag) )\n\n;;;; 14.27 If-Range\nIf-Range = \"If-Range\" \":\" ( entity-tag / HTTP-date )\n\n;;;; 14.28 If-Unmodified-Since\nIf-Unmodified-Since = \"If-Unmodified-Since\" \":\" HTTP-date\n\n;;;; 14.29 Last-Modified\nLast-Modified = \"Last-Modified\" \":\" HTTP-date\n\n;;;; 14.30 Location\nLocation = \"Location\" \":\" absoluteURI\n\n;;;; 14.31 Max-Forwards\nMax-Forwards = \"Max-Forwards\" \":\" 1*DIGIT\n\n;;;; 14.32 Pragma\nPragma = \"Pragma\" \":\" pragma-directive *(COMMA pragma-directive)\npragma-directive = \"no-cache\" / extension-pragma\nextension-pragma = token [ \"=\" ( token / quoted-string ) ]\n\n;;;; 14.33 Proxy-Authenticate\nProxy-Authenticate = \"Proxy-Authenticate\" \":\" challenge *(COMMA challenge)\n\n;;;; 14.34 Proxy-Authorization\nProxy-Authorization = \"Proxy-Authorization\" \":\" credentials\n\n;;;; 14.35.1 Byte Ranges\nranges-specifier = byte-ranges-specifier\nbyte-ranges-specifier = bytes-unit \"=\" byte-range-set\nbyte-range-set = byte-range-set-value *(COMMA byte-range-set-value)\nbyte-range-set-value = ( byte-range-spec / suffix-byte-range-spec )\nbyte-range-spec = first-byte-pos \"-\" [last-byte-pos]\nfirst-byte-pos = 1*DIGIT\nlast-byte-pos = 1*DIGIT\nsuffix-byte-range-spec = \"-\" suffix-length\nsuffix-length = 1*DIGIT\n\n;;;; 14.35.2 Range Retrieval Requests\nRange = \"Range\" \":\" ranges-specifier\n\n;;;; 14.36 Referer\nReferer = \"Referer\" \":\" ( absoluteURI / relativeURI )\n\n;;;; 14.37 Retry-After\nRetry-After = \"Retry-After\" \":\" ( HTTP-date / delta-seconds )\n\n;;;; 14.38 Server\nServer = \"Server\" \":\" 1*( product / comment )\n\n;;;; 14.39 TE\nTE = \"TE\" \":\" [t-codings *(COMMA t-codings)]\nt-codings = \"trailers\" / ( transfer-extension [ accept-params ] )\n\n;;;; 14.40 Trailer\nTrailer = \"Trailer\" \":\" field-name *(COMMA field-name)\n\n;;;; 14.41 Transfer-Encoding\nTransfer-Encoding = \"Transfer-Encoding\" \":\" transfer-coding *(COMMA transfer-coding)\n\n;;;; 14.42 Upgrade\nUpgrade = \"Upgrade\" \":\" product *(COMMA product)\n\n;;;; 14.43 User-Agent\nUser-Agent = \"User-Agent\" \":\" 1*( product / comment )\n\n;;;; 14.44 Vary\nVary = \"Vary\" \":\" ( \"*\" / field-name *(COMMA field-name) )\n\n;;;; 14.45 Via\nVia = \"Via\" \":\" Via-Value *(COMMA Via-Value)\nVia-Value = ( received-protocol received-by [ comment ] )\nreceived-protocol = [ protocol-name \"/\" ] protocol-version\nprotocol-name = token\nprotocol-version = token\nreceived-by = ( host [ \":\" port ] ) / pseudonym\npseudonym = token\n\n;;;; 14.46 Warning\nWarning = \"Warning\" \":\" warning-value *(COMMA warning-value)\nwarning-value = warn-code SP warn-agent SP warn-text [SP warn-date]\nwarn-code = 3DIGIT\nwarn-agent = ( host [ \":\" port ] ) / pseudonym ; the name or pseudonym of the server adding ; the Warning header, for use in debugging\nwarn-text = quoted-string\nwarn-date = DQUOTE HTTP-date DQUOTE\n\n;;;; 14.47 WWW-Authenticate\nWWW-Authenticate = \"WWW-Authenticate\" \":\" challenge *(COMMA challenge)\n" }
UTF-8
ABNF
21,378
datokrat
c02c16fdd7605218d9e4987c049b54338ccd9db0
3ca5701bf7f27bb27b658e5790b8443d89247e08
/example/grammar.abnf
3721b0379583cbfecbbfd0171d7644fd3951e5cc
datokrat/abnfjs.old
{ "content": "sentence = <|subject|>=subj \" \" predicate [ \" \" <|object|>=obj ]\nsubject = \"Paul\"\npredicate = \"loves\"\nobject = \"programming\"\n" }
UTF-8
ABNF
125
gknowles
b6de22044374f1c8d14af4655bc29b4fb0afb265
c9889def8ff68247138baf9f4a9aca9faf70d409
/tools/pargen/tests.abnf
9a2b0c07ae26fe9972f4ebdb8d361fdcfd6f66a5
gknowles/dimapp
{ "content": "; Copyright Glen Knowles 2016 - 2018.\n; Distributed under the Boost Software License, Version 1.0.\n;\n; tests.abnf - pargen\n;\n%root = t2\n%api.prefix = Test\n%api.parser.file.h = test-out.h ; defaults to <%api.prefix>parse.h\n%api.parser.file.cpp = test-out.cpp ; defaults to <%api.prefix>parse.cpp\n\nt1 = t1-param *(RWS t1-param)\nt1-param = RWS { Start, End }\n\n; t2 - requires infinite stack. A series of 10 alphas, may be either 1 (if\n; followed by quote) or 10 (if followed by EOF) params\nt2 = *t2-param\nt2-param = *(1*ALPHA DQUOTE) ALPHA { Start, End }\n" }
UTF-8
ABNF
564
code-xs
20160fb9e1628f78d6ace5bc9ab34c1cd89eb986
9da8cde80b7d717198fc2cda99cb03eccca34338
/lib/src/main/assets/grammar_sample.abnf~
5332f70e6a006cf262b4302650b4d14ff35387aa
code-xs/gamebench
{ "content": "#ABNF 1.0 UTF-8;\r\nlanguage zh-CN; \r\nmode voice;\r\n\r\nroot $main;\r\n$main = $place1;\r\n$place1 = 左|右|趴下|跳起|蹲下|跑|停|向左|向右|前进|后退;\r\n" }
UTF-8
ABNF
159
sainteos
c81e1ecc6b02dc3176be8472b7d357d374d58ae9
2d6428cca481f832b816bfe97db650bbaa4e04c0
/test/resources/RFC7405.abnf
a1c4e202fe3412cb6d41b87727694965b0574fb5
sainteos/ex_abnf
{ "content": "case-sensitive = %s\"aBc\"\r\ncase-insensitive-1 = %i\"abc\"\r\ncase-insensitive-2 = \"abc\"\r\n" }
UTF-8
ABNF
84
walkingRoach
2b0151447e40d380fc1018f4b304f7543f27bf50
f5443d57dc77adbeaa1a68f2215c1ed47572e671
/communication/xf_ros/cfg/test.abnf
5721f9f1438fabe9affaa717f3f2e1785e56cd2e
walkingRoach/robot_competition_gpsr
{ "content": "#ABNF 1.0 GB2312;\n\n/*\n * Copyright 1999-2008 iFLYTEK.\n * All Rights Reserved.\n *\n * continuous digits grammar: 1-16 bit number\n * fully continuous digits grammar ²ŠŽò1-16 bit number\n */\n\nlanguage zh-CN;\nmode voice;\n\nroot $main;\n\n$main = $phone_number;\n$phone_number = $digit<1-16>;\n$digit =\n Ò»\n| ¶þ\n| Èý\n| ËÄ\n| Îå\n| Áù\n| Æß\n| °Ë\n| ŸÅ\n| Áã;\n" }
UTF-8
ABNF
368
edcuba
1941d746e9a7ad7259869b8196e3fa773e78287d
74a140d73b817472ad5a1620d217ad9758073abf
/implementations/java/uni-resolver-core/src/main/resources/did.abnf
0051f27df20fb8241c5106f1411942a59d522373
edcuba/universal-resolver
{ "content": "did-reference = did [ \"/\" did-path ] [ \"?\" did-query ] [ \"#\" did-fragment ] ;\ndid = \"did:\" method \":\" specific-idstring [ \";\" service ] ;\nmethod = 1*namechar ;\nnamechar = %x61-7A / DIGIT ;\nspecific-idstring = idstring *( \":\" idstring ) ;\nidstring = 1*idchar ;\nidchar = ALPHA / DIGIT / \".\" / \"-\" ;\nservice = 1*namechar *( \";\" 1*namechar ) ;\n\n\ndid-path = path-rootless ;\ndid-query = query ;\ndid-fragment = fragment ;\n\n\n path-rootless = segment-nz *( \"/\" segment ) ;\n\n segment = *pchar ;\n segment-nz = 1*pchar ;\n segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / \"@\" ) ;\n\n pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\" ;\n\n query = *( pchar / \"/\" / \"?\" ) ;\n\n fragment = *( pchar / \"/\" / \"?\" ) ;\n\n pct-encoded = \"%\" HEXDIG HEXDIG ;\n\n unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\" ;\n reserved = gen-delims / sub-delims ;\n gen-delims = \":\" / \"/\" / \"?\" / \"#\" / \"[\" / \"]\" / \"@\" ;\n sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\" / \"*\" / \"+\" / \",\" / \";\" / \"=\" ;\n\n\n ALPHA = %x41-5A / %x61-7A ;\n DIGIT = %x30-39 ;\n HEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" ;\n" }
UTF-8
ABNF
1,306
leafspace
f093d74843b0950d1b52b13039711f8e8073d62b
8497928d63dcb0890b2fd1bde999b580663a00d7
/程序代码/0-基于树莓派的嵌入式语音识别系统/prammars/prammar6-我要查话费.abnf
b5e506efd876a8f35adf2fdd5db6e3f46eb32dec
leafspace/Telemetry-medical-platform
{ "content": "#ABNF 1.0 UTF-8;\n\nlanguage zh-CN;\nmode voice;\n\nroot $main;\n$want = 要 | 想;\n$查询 = 查询 | 查;\n$费用 = 手机费 | 话费;\npublic $main = [我] [$want] $查询 $费用;\n" }
UTF-8
ABNF
178
jbenner-radham
dddd5a0cad802b7a40c5d9a3532d09545469f53d
1ce623e501a9ca87afb4166aa58b0fa9e1ca745e
/data/abnf/begin.abnf
e327afc9a9257b027b19039e065937a61b76afb1
jbenner-radham/jcard-to-vcard
{ "content": "BEGIN-param = 0\" \" ; no parameter allowed\nBEGIN-value = \"VCARD\"\n" }
UTF-8
ABNF
65
gknowles
911b5418bf2e307f3bf7ec0e4981504d4cf4d995
70285a5f8aabcfbb5a06c64fd5711ef30cc06b4b
/libs/query/query.abnf
3bb7cf42f3e5f0f44dab00ac7448099540a12a7e
gknowles/tismet
{ "content": "; Copyright Glen Knowles 2017 - 2018.\n; Distributed under the Boost Software License, Version 1.0.\n;\n; query.abnf - tismet query\n;\n; rules to parse graphite queries\n%root = query\n%api.prefix = Query\n%api.parser.file.h = qryparseint.h\n%api.parser.file.cpp = qryparse.cpp\n%api.base.file.h = qryparsebaseint.h\n\n;----------------------------------------------------------------------------\n; Root\n;----------------------------------------------------------------------------\nquery = path / func { Function }\n\n;----------------------------------------------------------------------------\n; Path\n;----------------------------------------------------------------------------\npath = path-seg *(\".\" path-seg) { Start, End }\npath-seg = 1*(seg-literal / seg-blot / seg-char-list / seg-seg-list)\n { Start, End }\n\n; *\nseg-literal = 1*scl-char { Start+, End+ }\nseg-blot = \"*\" { End }\n\n; [] - allows '-' ranges, but not negation (leading '^')\nseg-char-list = \"[\" [scl-dash] *(scl-single-nd [\"-\" scl-range-end])\n [scl-single] \"]\" { End }\nscl-single = scl-char { Char+ }\nscl-single-nd = scl-char-nd { Char+, As scl-single }\nscl-dash = \"-\" { Char+, As scl-single }\nscl-range-end = scl-char-nd { Char+ }\n\n; {,,,}\nseg-seg-list = \"{\" ssl-segs\nssl-segs = *WSP [path-seg] *WSP 1*(ssl-comma *WSP path-seg *WSP) \"}\"\n { Start, End, Function }\nssl-comma = \",\" { End }\n\nscl-char-nd = ALPHA / DIGIT\n / \"!\" / DQUOTE / \"#\" / \"$\" / \"%\" / \"&\" / \"'\"\n / \"+\"\n / \":\" / \";\" / \"<\" / \"=\" / \">\" / \"?\"\n / \"@\" / \"\\\" / \"^\" / \"_\"\n / \"`\" / \"~\"\nscl-char = scl-char-nd / \"-\"\n\n;----------------------------------------------------------------------------\n; Function arguments\n;----------------------------------------------------------------------------\narg-func = *WSP func *WSP\narg-path = *WSP path *WSP\narg-path-or-func = *WSP query *WSP\narg-num = *WSP number *WSP { End }\narg-string = *WSP (DQUOTE string DQUOTE / \"'\" string-ns \"'\") *WSP\narg-aggfunc = *WSP (DQUOTE aggfunc DQUOTE / \"'\" aggfunc \"'\") *WSP\n\n; String\nstring = *(%x20-21 / %x23-7E) { Start+, End+ }\nstring-ns = *(%x20-26 / %x28-7E) { As string, Start+, End+ }\n\n; Timestamp\ntimestamp = 1*DIGIT { Char+ }\n\n; Number\nnumber = [minus] int [frac] [exp] ; { Function }\ndecimal-point = \".\"\ndigit1-9 = %x31-39 ; 1-9\ne = \"e\" ; e E\nexp = e [exp-minus / exp-plus] exp-num\nexp-minus = \"-\" { End }\nexp-plus = \"+\"\nexp-num = 1*DIGIT { Char+ }\nfrac = decimal-point frac-num\nfrac-num = 1*DIGIT { Char+ }\nint = zero / (digit1-9 *DIGIT) { Char+ }\nminus = \"-\" { End }\nzero = \"0\"\n\n;----------------------------------------------------------------------------\n; Functions\n;----------------------------------------------------------------------------\n%include =/ \"queryfunc.abnf\"\n" }
UTF-8
ABNF
2,697
KyleGalvin
529e000872c4e2811cf16752b4e9f766d9a84899
24902dfa4ed5c66407c8c6efa0aa004fe9a5d52b
/tests/abnf/04.abnf
d1ed310653723d39ca5e5672dbbb99cc98b0f494
KyleGalvin/AbnfExperiments
{ "content": "\n rulelist = 1*( rule / (*c-wsp c-nl) )\n\n rule = rulename defined-as elements c-nl\n ; continues if next line starts\n ; with white space\n\n rulename = ALPHA *(ALPHA / DIGIT / \"-\")\n\n\n defined-as = *c-wsp (\"=\" / \"=/\") *c-wsp\n ; basic rules definition and\n ; incremental alternatives\n\n elements = alternation *c-wsp\n\n" }
UTF-8
ABNF
513
nkscorpion
8b69c597481193d7703632cfac3c3aa4f3789d08
c1709325017f75f25168b0ee3ec377fb4d82d6be
/app/src/main/assets/grammar_sample.abnf
4a72d8bb3711aab4f9062a592c250231bd4cfc0f
nkscorpion/MySmartVoiceAssistant
{ "content": " #ABNF 1.0 UTF-8;\nlanguage zh-CN; \nmode voice;\nroot $main;\n\n$main = $ledOpen|$ledClose|$motorOpen|$motorClose|$wsd|$infrared;\n\n$ledOpen = [打] 开 [$color]灯;\n$color= 黄色|黄颜色|粉色|粉红色|紫色;\n\n$ledClose=关灯;\n\n$motorOpen=[把] [$door] [打]开[$door];\n$door= 门 | 大门;\n\n$motorClose=[把] [$cdoor] 关[$cdoor];\n$cdoor= 门 | 大门;\n\n$wsd=[$check] 温湿度;\n$check=查询|显示;\n\n$infrared= $mc 关好了吗;\n$mc= 门 | 大门|门窗|窗户|窗;\n" }
UTF-8
ABNF
473
web-projects
6eb7c247d3a518558a138b748c3362f1e8e3e481
ea416f4242506d6aeeaace5c60756d7b17d77a10
/AccuStudioExecutables/RuleLib/AWL_Activation_Grm.abnf
5f22ccd221c61ab8b5f2dae22e026ba6a525255c
web-projects/AccuStudio
{ "content": "//\n// Dialog Grammar for switching within Always-Listening Mode\n//\n\n#start <AWL_Activation_Grm>\n\n<AWL_Activation_Grm> = Please go to sleep => ACTIVATE(0) | \n\t\t please wake up => ACTIVATE(1);\n" }
UTF-8
ABNF
197
isaldana
b54b446c4ec2b0266e5482f5af7d80664b23856d
57751129bb2d538edc7a4dfb5eb9e241810c4b34
/testdata/core.abnf
5b3d837cead77c19292bf18940ba8feb5596fd92
isaldana/abnf
{ "content": "ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nBIT = \"0\" / \"1\"\nCHAR = %x01-7F\n ; any 7-bit US-ASCII character,\n ; excluding NUL\nCR = %x0D ; carriage return\nCRLF = CR LF / LF\n ; Internet standard newline\nCTL = %x00-1F / %x7F ; controls\nDIGIT = %x30-39 ; 0-9\nDQUOTE = %x22\n ; \" (Double Quote)\nHEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n / \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\"\nHTAB = %x09\n ; horizontal tab\nLF = %x0A\n ; linefeed\nLWSP = *(WSP / CRLF WSP)\n ; Use of this linear-white-space rule\n ; permits lines containing only white\n ; space that are no longer legal in\n ; mail headers and have caused\n ; interoperability problems in other\n ; contexts.\n ; Do not use when defining mail\n ; headers and use with caution in\n ; other contexts.\nOCTET = %x00-FF\n ; 8 bits of data\nSP = %x20\nVCHAR = %x21-7E\n ; visible (printing) characters\nWSP = SP / HTAB\n ; white space\n" }
UTF-8
ABNF
1,012
evrythng
fb95aab5261ebe04440a9101e2aaf28228282818
4421c0251f9438b9b0578a39aa4609c603d88856
/grammar/GS1_Digital_Link_Grammar_1_2.abnf
6d5dabd372ecb4022d59cfa7066d47332e893c78
evrythng/digital-link.js
{ "content": ";; GS1 Digital Link Web URI Grammar\n;; Corresponding to version 1.2 of the GS1 Digital Link standard\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Character sets ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\nDIGIT\t= \"0\" / \"1\" / \"2\" / \"3\" / \"4\" /\n\t\t \"5\" / \"6\" / \"7\" / \"8\" / \"9\"\n\nBOOLEAN = \"0\" / \"1\"\n\nUPPERALPHA\t= %x41-5A ; A-Z ( ASCII characters 65-90 decimal, 41-5A hex)\n\nLOWERALPHA\t= %x61-7A ; a-z ( ASCII characters 97-122 decimal, 61-7A hex)\n\nALPHA\t= UPPERALPHA / LOWERALPHA ; A-Z or a-z\n\nHEXDIG\t= DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n\nDoubleQuote = '\"' ; the double-quote character \"\n\nOctothorpe\t= \"%23\" ; percent-encoding of the # character\nForwardSlash\t= \"%2F\" ; percent-encoding of the / character\n\nPercent\t= \"%25\" ; percent-encoding of the % character\nAmpersand\t= \"%26\" ; percent-encoding of the & character\nPlus\t= \"%2B\" ; percent-encoding of the + character\nComma\t= \"%2C\" ; percent-encoding of the , character\n\nExclamation\t= \"%21\" ; percent-encoding of the ! character\nLeftBracket\t= \"%28\" ; percent-encoding of the ( character\nRightBracket\t= \"%29\" ; percent-encoding of the ) character\nAsterisk\t= \"%2A\" ; percent-encoding of the * character\n\nApostrophe\t= \"%27\" ; percent-encoding of the ' character\nColon\t= \"%3A\" ; percent-encoding of the : character\nSemicolon\t= \"%3B\" ; percent-encoding of the ; character\nLeftAngleBracket\t= \"%3C\" ; percent-encoding of the < character\nEquals\t= \"%3D\" ; percent-encoding of the = character\nRightAngleBracket\t= \"%3E\" ; percent-encoding of the > character\nQuestionMark\t= \"%3F\" ; percent-encoding of the ? character\n\nXSYMBOL \t\t= DoubleQuote / \"-\" / \".\" / \"_\" / Exclamation / Percent /\n\t\t\t Ampersand / Plus / Comma / ForwardSlash / Asterisk /\n\t\t\t LeftBracket / RightBracket / Apostrophe / Semicolon /\n\t\t\t Colon / LeftAngleBracket / RightAngleBracket / Equals /\n\t\t\t QuestionMark\n\nYSYMBOL \t\t= \"-\" / Octothorpe / ForwardSlash\n\nXCHAR \t\t= DIGIT / UPPERALPHA / LOWERALPHA / XSYMBOL\n\nYCHAR \t\t= DIGIT / UPPERALPHA / YSYMBOL\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Primary identification keys ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\ngtin-code\t= \"01\"\t/ %s\"gtin\"\t\t; GTIN\nitip-code\t= \"8006\" / %s\"itip\"\t\t; ITIP\ngmn-code\t= \"8013\" / %s\"gmn\"\t\t; Global Model Number\ncpid-code\t= \"8010\" / %s\"cpid\"\t\t; CPID\ngln-code \t= \"414\"\t/ %s\"gln\"\t\t; Physical Location GLN\npartyGln-code\t= \"417\"\t/ %s\"party\" \t; Party GLN\ngsrnp-code \t= \"8017\" / %s\"gsrnp\"\t; GSRN of the Provider\ngsrn-code \t= \"8018\" / %s\"gsrn\"\t\t; GSRN of the Recipient\ngcn-code \t= \"255\"\t/ %s\"gcn\"\t\t; GCN\nsscc-code \t= \"00\" / %s\"sscc\"\t\t; SSCC\ngdti-code \t= \"253\"\t/ %s\"gdti\"\t\t; GDTI\nginc-code \t= \"401\"\t/ %s\"ginc\"\t\t; GINC\ngsin-code \t= \"402\"\t/ %s\"gsin\"\t\t; GSIN\ngrai-code \t= \"8003\" / %s\"grai\"\t\t; GRAI\ngiai-code \t= \"8004\" / %s\"giai\"\t\t; GIAI\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Key qualifiers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\ncpv-code \t= \"22\"\t/ %s\"cpv\" ; Consumer Product Variant\nlot-code \t= \"10\"\t/ %s\"lot\" ; Batch/Lot identifier\nser-code \t= \"21\"\t/ %s\"ser\" ; GTIN Serial Number\ncpsn-code \t= \"8011\"\t/ %s\"cpsn\" ; CPID Serial Number\nglnx-code \t= \"254\"\t/ %s\"glnx\" ; GLN extension\nrefno-code\t= \"8020\"\t/ %s\"refno\" ; Payment Reference Number\nsrin-code \t= \"8019\"\t/ %s\"srin\" ; Service Relation Instance Number\ntpx-code\t= \"235\"\t; third-party controlled serialised extension to GTIN\nuic-ext-code\t= \"7040\"\t; GS1 UIC with Extension 1 and Importer Index\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Primary key formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\ngtin-value\t\t= 14DIGIT / 13DIGIT / 12DIGIT / 8DIGIT\nitip-value\t= 14DIGIT 2DIGIT 2DIGIT ; 14 digits then 2 digits then 2 digits\ngmn-value \t= 1*30XCHAR ; 1-30 characters from 82-chr subset\ncpid-value \t= 1*30YCHAR ; 1-30 characters from 39-chr subset\n\ngln-value \t= 13DIGIT ; exactly 13 digits\npartyGln-value \t= 13DIGIT ; exactly 13 digits\ngsrnp-value \t= 18DIGIT ; exactly 18 digits\ngsrn-value \t= 18DIGIT ; exactly 18 digits\ngcn-value \t= 13DIGIT 1*12DIGIT ; 13 digits then 1-12 digits\nsscc-value \t= 18DIGIT ; exactly 18 digits\ngdti-value \t= 13DIGIT 1*17XCHAR ; 13 digits then 1-17 characters ; from the 82-character subset\nginc-value \t= 1*30XCHAR ; 1-30 characters from the 82-character subset\ngsin-value \t= 17DIGIT ; exactly 17 digits\ngrai-value \t= 14DIGIT 1*16XCHAR; 14 digits then 1-16 characters ; from the 82-character subset of ISO/IEC 646\ngiai-value \t= 1*30XCHAR ; 1-30 characters from 82-chr subset\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Key qualifier formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\ncpv-value\t= 1*20XCHAR ; 1-20 characters from 82-chr subset\nlot-value\t= 1*20XCHAR ; 1-20 characters from 82-chr subset\nser-value\t= 1*20XCHAR ; 1-20 characters from 82-chr subset\ncpsn-value\t= 1*12DIGIT ; 1-12 digits\nglnx-value\t= 1*20XCHAR ; 1-20 characters from 82-chr subset\nrefno-value \t= 1*25XCHAR ; 1-25 characters from 82-chr subset\nsrin-value \t= 1*10DIGIT ; 1-10 digits\ntpx-value\t= 1*28XCHAR ; 1-28 characters from 82-chr subset\nuic-ext-value\t= 1DIGIT 3XCHAR ; 1 digit then 3 characters from 82-chr subset\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Primary identifier and value concatenation ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\ngtin-comp\t= \"/\" gtin-code \"/\" gtin-value\nitip-comp \t= \"/\" itip-code \"/\" itip-value\ngmn-comp \t= \"/\" gmn-code \"/\" gmn-value\ncpid-comp \t= \"/\" cpid-code \"/\" cpid-value\ngln-comp \t= \"/\" gln-code \"/\" gln-value\npartyGln-comp\t= \"/\" partyGln-code \"/\" partyGln-value\ngsrnp-comp\t= \"/\" gsrnp-code \"/\" gsrnp-value\ngsrn-comp\t= \"/\" gsrn-code \"/\" gsrn-value\ngcn-comp \t= \"/\" gcn-code \"/\" gcn-value\nsscc-comp \t= \"/\" sscc-code \"/\" sscc-value\ngdti-comp \t= \"/\" gdti-code \"/\" gdti-value\nginc-comp \t= \"/\" ginc-code \"/\" ginc-value\ngsin-comp \t= \"/\" gsin-code \"/\" gsin-value\ngrai-comp \t= \"/\" grai-code \"/\" grai-value\ngiai-comp \t= \"/\" giai-code \"/\" giai-value\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Key qualifier concatenation ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\ncpv-comp \t= \"/\" cpv-code \"/\" cpv-value\nlot-comp \t= \"/\" lot-code \"/\" lot-value\nser-comp \t= \"/\" ser-code \"/\" ser-value\ncpsn-comp \t= \"/\" cpsn-code \"/\" cpsn-value\nglnx-comp \t= \"/\" glnx-code \"/\" glnx-value\nrefno-comp\t= \"/\" refno-code \"/\" refno-value\nsrin-comp \t= \"/\" srin-code \"/\" srin-value\ntpx-comp\t= \"/\" tpx-code \"/\" tpx-value\nuic-ext-comp\t= \"/\" uic-ext-code \"/\" uic-ext-value\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Path element order ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\ngtin-path \t= gtin-comp [cpv-comp] [lot-comp] [ser-comp]\nitip-path \t= itip-comp [cpv-comp] [lot-comp] [ser-comp]\ngmn-path \t= gmn-comp\ncpid-path \t= cpid-comp [cpsn-comp]\ngln-path \t= gln-comp [glnx-comp]\npartyGln-path\t= partyGln-comp\ngsrnp-path\t= gsrnp-comp [srin-comp]\ngsrn-path \t= gsrn-comp [srin-comp]\ngcn-path \t= gcn-comp\nsscc-path \t= sscc-comp\ngdti-path \t= gdti-comp\nginc-path \t= ginc-comp\ngsin-path \t= gsin-comp\ngrai-path \t= grai-comp\ngiai-path \t= giai-comp\nupui-path\t= gtin-comp tpx-comp\neoid-path\t= partyGln-comp uic-ext-comp\nfid-path\t= gln-comp uic-ext-comp\nmid-path\t= giai-comp uic-ext-comp\ngs1path \t= gtin-path / itip-path / gmn-path / cpid-path / gln-path / partyGln-path / gsrnp-path /\n gsrn-path / gcn-path / sscc-path / gdti-path / ginc-path /\n gsin-path / grai-path / giai-path / upui-path / eoid-path /\n fid-path / mid-path\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Data attributes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\nnetWeightVMTICode \t= \"3100\" / \"3101\" / \"3102\" / \"3103\" / \"3104\" / \"3105\" /\n\t\t \"3200\" / \"3201\" / \"3202\" / \"3203\" / \"3204\" / \"3205\" /\n\t\t \"3560\" / \"3561\" / \"3562\" / \"3563\" / \"3564\" / \"3565\" /\n\t\t \"3570\" / \"3571\" / \"3572\" / \"3573\" / \"3574\" / \"3575\"\nnetWeightVMTIValue\t= 6DIGIT\nnetWeightVMTIParameter\t= netWeightVMTICode \"=\" netWeightVMTIValue\n\nlengthVMTICode \t= \"3110\" / \"3111\" / \"3112\" / \"3113\" / \"3114\" / \"3115\" /\n\t \"3210\" / \"3211\" / \"3212\" / \"3213\" / \"3214\" / \"3215\" /\n\t \"3220\" / \"3221\" / \"3222\" / \"3223\" / \"3224\" / \"3225\" /\n\t \"3230\" / \"3231\" / \"3232\" / \"3233\" / \"3234\" / \"3235\"\nlengthVMTIValue = 6DIGIT\nlengthVMTIParameter = lengthVMTICode \"=\" lengthVMTIValue\n\nwidthVMTICode \t= \"3120\" / \"3121\" / \"3122\" / \"3123\" / \"3124\" / \"3125\" /\n\t \"3240\" / \"3241\" / \"3242\" / \"3243\" / \"3244\" / \"3245\" /\n\t \"3250\" / \"3251\" / \"3252\" / \"3253\" / \"3254\" / \"3255\" /\n\t \"3260\" / \"3261\" / \"3262\" / \"3263\" / \"3264\" / \"3265\"\nwidthVMTIValue = 6DIGIT\nwidthVMTIParameter = widthVMTICode \"=\" widthVMTIValue\n\ndepthVMTICode\t= \"3130\" / \"3131\" / \"3132\" / \"3133\" / \"3134\" / \"3135\" /\n\t \"3270\" / \"3271\" / \"3272\" / \"3273\" / \"3274\" / \"3275\" /\n\t \"3280\" / \"3281\" / \"3282\" / \"3283\" / \"3284\" / \"3285\" /\n\t \"3290\" / \"3291\" / \"3292\" / \"3293\" / \"3294\" / \"3295\"\n\ndepthVMTIValue = 6DIGIT\ndepthVMTIParameter = depthVMTICode \"=\" depthVMTIValue\n\nareaVMTICode \t= \"3140\" / \"3141\" / \"3142\" / \"3143\" / \"3144\" / \"3145\" /\n\t \"3500\" / \"3501\" / \"3502\" / \"3503\" / \"3504\" / \"3505\" /\n\t \"3510\" / \"3511\" / \"3512\" / \"3513\" / \"3514\" / \"3515\" /\n\t \"3520\" / \"3521\" / \"3522\" / \"3523\" / \"3524\" / \"3525\"\n\nareaVMTIValue = 6DIGIT\nareaVMTIParameter = areaVMTICode \"=\" areaVMTIValue\n\nnetVolumeVMTICode \t= \"3150\" / \"3151\" / \"3152\" / \"3153\" / \"3154\" / \"3155\" /\n\t \"3160\" / \"3161\" / \"3162\" / \"3163\" / \"3164\" / \"3165\" /\n\t \"3600\" / \"3601\" / \"3602\" / \"3603\" / \"3604\" / \"3605\" /\n\t \"3610\" / \"3611\" / \"3612\" / \"3613\" / \"3614\" / \"3615\" /\n\t \"3640\" / \"3641\" / \"3642\" / \"3643\" / \"3644\" / \"3645\" /\n\t \"3650\" / \"3651\" / \"3652\" / \"3653\" / \"3654\" / \"3655\" /\n\t \"3660\" / \"3661\" / \"3662\" / \"3663\" / \"3664\" / \"3665\"\n\nnetVolumeVMTIValue \t\t= 6DIGIT\nnetVolumeVMTIParameter \t= netVolumeVMTICode \"=\" netVolumeVMTIValue\n\nmassPerUnitAreaVMTICode \t= \"3370\" / \"3371\" / \"3372\" / \"3373\" / \"3374\" / \"3375\"\nmassPerUnitAreaVMTIValue \t\t= 6DIGIT\nmassPerUnitAreaVMTIParameter\t= massPerUnitAreaVMTICode \"=\" massPerUnitAreaVMTIValue\n\ngrossWeightCode \t= \"3300\" / \"3301\" / \"3302\" / \"3303\" / \"3304\" / \"3305\" /\n\t \"3400\" / \"3401\" / \"3402\" / \"3403\" / \"3404\" / \"3405\"\ngrossWeightValue \t\t= 6DIGIT\ngrossWeightParameter \t\t= grossWeightCode \"=\" grossWeightValue\n\nlogisticLengthCode \t= \"3310\" / \"3311\" / \"3312\" / \"3313\" / \"3314\" / \"3315\" /\n\t \"3410\" / \"3411\" / \"3412\" / \"3413\" / \"3414\" / \"3415\" /\t \"3420\" / \"3421\" / \"3422\" / \"3423\" / \"3424\" / \"3425\" /\t \"3430\" / \"3431\" / \"3432\" / \"3433\" / \"3434\" / \"3435\"\nlogisticLengthValue \t\t= 6DIGIT\nlogisticLengthParameter\t= logisticLengthCode \"=\" logisticLengthValue\n\nlogisticWidthCode \t= \"3320\" / \"3321\" / \"3322\" / \"3323\" / \"3324\" / \"3325\" /\n\t \"3440\" / \"3441\" / \"3442\" / \"3443\" / \"3444\" / \"3445\" /\t \"3450\" / \"3451\" / \"3452\" / \"3453\" / \"3454\" / \"3455\" /\t \"3460\" / \"3461\" / \"3462\" / \"3463\" / \"3464\" / \"3465\"\nlogisticWidthValue \t\t= 6DIGIT\nlogisticWidthParameter \t= logisticWidthCode \"=\" logisticWidthValue\n\nlogisticDepthCode \t= \"3330\" / \"3331\" / \"3332\" / \"3333\" / \"3334\" / \"3335\" /\n\t \"3470\" / \"3471\" / \"3472\" / \"3473\" / \"3474\" / \"3475\" /\n\t \"3480\" / \"3481\" / \"3482\" / \"3483\" / \"3484\" / \"3485\" /\n\t \"3490\" / \"3491\" / \"3492\" / \"3493\" / \"3494\" / \"3495\"\nlogisticDepthValue \t\t= 6DIGIT\nlogisticDepthParameter \t= logisticDepthCode \"=\" logisticDepthValue\n\nlogisticAreaCode \t= \"3340\" / \"3341\" / \"3342\" / \"3343\" / \"3344\" / \"3345\" /\n\t \"3530\" / \"3531\" / \"3532\" / \"3533\" / \"3534\" / \"3535\" /\t \"3540\" / \"3541\" / \"3542\" / \"3543\" / \"3544\" / \"3545\" /\t \"3550\" / \"3551\" / \"3552\" / \"3553\" / \"3554\" / \"3555\"\nlogisticAreaValue \t\t= 6DIGIT\nlogisticAreaParameter \t= logisticAreaCode \"=\" logisticAreaValue\n\nlogisticVolumeCode \t= \"3350\" / \"3351\" / \"3352\" / \"3353\" / \"3354\" / \"3355\" /\t \"3360\" / \"3361\" / \"3362\" / \"3363\" / \"3364\" / \"3365\" /\t \"3620\" / \"3621\" / \"3622\" / \"3623\" / \"3624\" / \"3625\" /\t \"3630\" / \"3631\" / \"3632\" / \"3633\" / \"3634\" / \"3635\" /\t \"3670\" / \"3671\" / \"3672\" / \"3673\" / \"3674\" / \"3675\" /\t \"3680\" / \"3681\" / \"3682\" / \"3683\" / \"3684\" / \"3685\" /\t \"3690\" / \"3691\" / \"3692\" / \"3693\" / \"3694\" / \"3695\"\nlogisticVolumeValue \t\t= 6DIGIT\nlogisticVolumeParameter \t= logisticVolumeCode \"=\" logisticVolumeValue\n\nprocessorCode \t= \"7030\" / \"7031\" / \"7032\" / \"7033\" / \"7034\" / \"7035\" /\n\t \"7036\" / \"7037\" / \"7038\" / \"7039\"\nprocessorValue \t\t= 3DIGIT 1*27XCHAR\nprocessorParameter \t\t= processorCode \"=\" processorValue\n\ncontentParameter\t= \"02=\" 14DIGIT\n\nprodDateParameter\t= \"11=\" 6DIGIT\n\ndueDateParameter\t= \"12=\" 6DIGIT\n\npackDateParameter\t= \"13=\" 6DIGIT\n\nbestBeforeDateParameter\t= \"15=\" 6DIGIT\n\nsellByDateParameter\t= \"16=\" 6DIGIT\n\nfirstFreezeDateParameter\t= \"7006=\" 6DIGIT\n\nharvestDateParameter\t= \"7007=\" 6*12DIGIT\n\npricePerUnitParameter\t= \"8005=\" 6DIGIT\n\nvariantParameter\t= \"20=\" 2DIGIT\n\nvarCountParameter\t= \"30=\" 1*8DIGIT\n\ncountParameter\t= \"37=\" 1*8DIGIT\n\nmutualParameter\t= \"90=\" 1*30DIGIT\n\nadditionalIdParameter\t= \"240=\" 1*30XCHAR\n\ncustPartNoParameter\t= \"241=\" 1*30DIGIT\n\nmtoVariantParameter\t= \"242=\" 6DIGIT\n\npcnParameter\t= \"243=\" 1*20DIGIT\n\nsecondarySerialParameter\t= \"250=\" 1*30DIGIT\n\nrefToSourceParameter\t= \"251=\" 1*30DIGIT\n\namountCode \t= \"3900\" / \"3901\" / \"3902\" / \"3903\" / \"3904\" / \"3905\"\namountValue \t= 1*15DIGIT\namountParameter \t= amountCode \"=\" amountValue\n\namountISOCode \t= \"3910\" / \"3911\" / \"3912\" / \"3913\" / \"3914\" / \"3915\"\namountISOValue \t= 3DIGIT 1*15DIGIT\namountISOParameter \t= amountISOCode \"=\" amountISOValue\n\npriceCode \t= \"3920\" / \"3921\" / \"3922\" / \"3923\" / \"3924\" / \"3925\"\npriceValue \t= 1*15DIGIT\npriceParameter \t= priceCode \"=\" priceValue\n\npriceISOCode \t= \"3930\" / \"3931\" / \"3932\" / \"3933\" / \"3934\" / \"3935\"\npriceISOValue \t= 3DIGIT 1*15DIGIT\npriceISOParameter \t= priceISOCode \"=\" priceISOValue\n\npercentOffCode \t= \"3940\" / \"3941\" / \"3942\" / \"3943\" / \"3944\" / \"3945\"\npercentOffValue \t= 4DIGIT\npercentOffParameter \t= percentOffCode \"=\" percentOffValue\n\norderNumberParameter\t= \"400=\" 1*30DIGIT\n\nrouteParameter\t= \"403=\" 1*30DIGIT\n\nshipToLocParameter\t= \"410=\" 13DIGIT\n\nbillToParameter\t= \"411=\" 13DIGIT\n\npurchaseFromParameter\t= \"412=\" 13DIGIT\n\nshipForLocParameter\t= \"413=\" 13DIGIT\n\nlocNoParameter\t= \"414=\" 13DIGIT\n\npayToParameter\t= \"415=\" 13DIGIT\n\nprodServLocParameter\t= \"416=\" 13DIGIT\n\nshipToPostParameter\t= \"420=\" 1*20XCHAR\n\nshipToPostISOParameter\t= \"421=\" 3DIGIT 1*9XCHAR\n\noriginParameter\t= \"422=\" 3DIGIT\n\ncountryProcessParameter\t= \"424=\" 3DIGIT\n\ncountryFullProcessParameter\t= \"426=\" 3DIGIT\n\ncountryInitialProcessParameter\t= \"423=\" 3DIGIT 1*12DIGIT\n\ncountryDisassemblyParameter\t= \"425=\" 3DIGIT 1*12DIGIT\n\noriginSubdivisionParameter\t= \"427=\" 1*3XCHAR\n\nnhrnPZNParameter\t= \"710=\" 1*20XCHAR\n\nnhrnCIPParameter\t= \"711=\" 1*20XCHAR\n\nnhrnCNParameter\t= \"712=\" 1*20XCHAR\n\nnhrnDRNParameter\t= \"713=\" 1*20XCHAR\n\nnhrnAIMParameter\t= \"714=\" 1*20XCHAR\n\nnsnParameter\t= \"7001=\" 13DIGIT\n\nmeatCutParameter\t= \"7002=\" 1*30XCHAR\n\nactivePotencyParameter\t= \"7004=\" 1*4DIGIT\n\ncatchAreaParameter\t= \"7005=\" 1*12XCHAR\n\naquaticSpeciesParameter\t= \"7008=\" 1*3XCHAR\n\nfishingGearTypeParameter\t= \"7009=\" 1*10XCHAR\n\nprodMethodParameter\t= \"7010=\" 1*2XCHAR\n\nrefurbLotParameter\t= \"7020=\" 1*20XCHAR\n\nfuncStatParameter\t= \"7021=\" 1*20XCHAR\n\nrevStatParameter\t= \"7022=\" 1*20XCHAR\n\ngiaiAssemblyParameter\t= \"7023=\" 1*30XCHAR\n\ncertificationRefCode \t\t= \"7230\" / \"7231\" / \"7232\" / \"7233\" / \"7234\" /\n \"7235\" / \"7236\" / \"7237\" / \"7238\" / \"7239\"\ncertificationRefValue \t= 2*30XCHAR\ncertificationRefParameter = certificationRefCode \"=\" certificationRefValue\n\ndimensionsParameter\t= \"8001=\" 14DIGIT\n\ncmtNoParameter\t= \"8002=\" 1*20XCHAR\n\nibanParameter\t= \"8007=\" 1*34XCHAR\n\nprodTimeParameter\t= \"8008=\" 8DIGIT 1*4DIGIT\n\nopticalSensorParameter\t= \"8009=\" 1*50XCHAR\n\nversionParameter\t= \"8012=\" 4DIGIT 1*20XCHAR\n\nrefNoParameter\t= \"8020=\" 1*25XCHAR\n\nitipContentParameter\t= \"8026=\" 14DIGIT 2DIGIT 2DIGIT\n\ncouponIDNAParameter\t= \"8110=\" 1*70XCHAR\n\npointsParameter\t= \"8111=\" 4DIGIT\n\npaperlessCouponIDNAParameter\t= \"8112=\" 1*70XCHAR\n\nshipToCompParameter\t= \"4300=\" 1*35XCHAR\n\nshipToNameParameter\t= \"4301=\" 1*35XCHAR\n\nshipToAdd1Parameter\t= \"4302=\" 1*70XCHAR\n\nshipToAdd2Parameter\t= \"4303=\" 1*70XCHAR\n\nshipToSubParameter\t= \"4304=\" 1*70XCHAR\n\nshipToLocalityParameter = \"4305=\" 1*70XCHAR\n\nshipToRegParameter\t= \"4306=\" 1*70XCHAR\n\nshipToCountryParameter\t= \"4307=\" 2XCHAR\n\nshipToPhoneParameter\t= \"4308=\" 1*30XCHAR\n\nrtnToCompParameter\t= \"4310=\" 1*35XCHAR\n\nrtnToNameParameter\t= \"4311=\" 1*35XCHAR\n\nrtnToAdd1Parameter\t= \"4312=\" 1*70XCHAR\n\nrtnToAdd2Parameter\t= \"4313=\" 1*70XCHAR\n\nrtnToSubParameter\t= \"4314=\" 1*70XCHAR\n\nrtnToLocParameter\t= \"4315=\" 1*70XCHAR\n\nrtnToRegParameter\t= \"4316=\" 1*70XCHAR\n\nrtnToCountryParameter\t= \"4317=\" 2XCHAR\n\nrtnToPostParameter\t= \"4318=\" 1*20XCHAR\n\nrtnToPhoneParameter\t= \"4319=\" 1*30XCHAR\n\nsrvDescriptionParameter\t= \"4320=\" 1*35XCHAR\n\ndangerousGoodsParameter = \"4321=\" BOOLEAN\n\nauthToLeaveParameter\t= \"4322=\" BOOLEAN\n\nsigRequiredParameter\t= \"4323=\" BOOLEAN\n\nnotBeforeDelDateParameter\t= \"4324=\" 10DIGIT\n\nnotAfterDelDateParameter\t= \"4325=\" 10DIGIT\n\nreleaseDateParameter\t= \"4326=\" 6DIGIT\n\namountPayPerUnitCode = \"3950\" / \"3951\" / \"3952\" / \"3953\"\n\namountPayPerUnitValue = 6DIGIT\n\namountPayPerUnitParameter = amountPayPerUnitCode \"=\" amountPayPerUnitValue\n\ngtinParameter\t= \"01=\" gtin-value\n\nitipParameter\t= \"8006=\" itip-value\n\ngmnParameter\t= \"8013=\" gmn-value\n\ncpidParameter\t= \"8010=\" cpid-value\n\nglnParameter\t= \"414=\" gln-value\n\npartyGlnParameter\t= \"417=\" partyGln-value\n\ngsrnpParameter\t= \"8017=\" gsrnp-value\n\ngsrnParameter\t= \"8018=\" gsrn-value\n\ngcnParameter\t= \"255=\" gcn-value\n\nssccParameter\t= \"00=\" sscc-value\n\ngdtiParameter\t= \"253=\" gdti-value\n\ngincParameter\t= \"401=\" ginc-value\n\ngsinParameter\t= \"402=\" gsin-value\n\ngraiParameter\t= \"8003=\" grai-value\n\ngiaiParameter\t= \"8004=\" giai-value\n\ninternalCode \t= \"91\" / \"92\" / \"93\" / \"94\" / \"95\" / \"96\" / \"97\" / \"98\" / \"99\"\ninternalValue \t= 1*90XCHAR\ninternalParameter\t= internalCode \"=\" internalValue\n\nLotParameter \t= lot-code \"=\" lot-value\n\nexpiryDateCode \t= \"17\" / %s\"exp\"\nexpiryDateValue \t= 6DIGIT\nexpiryDateParameter \t= expiryDateCode \"=\" expiryDateValue\n\nexpiryTimeCode \t= \"7003\" / %s\"expdt\"\nexpiryTimeValue \t= 10DIGIT\nexpiryTimeParameter \t= expiryTimeCode \"=\" expiryTimeValue\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Extension mechanism and reserved keywords ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\nextensionKey = *( DIGIT ) everythingExceptDigitsAndEquals *( DIGIT / everythingExceptDigitsAndEquals)\nextensionValue = *( DIGIT / everythingExceptDigitsAndEquals / \"=\")\nextensionParameter = extensionKey \"=\" extensionValue\n\t; any other query string parameter permitted by RFC 3986\n\t; including additional arbitrary key=value pairs except as\n\t; restricted in the above paragraph\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Constructing the query string ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\nqueryStringParam \t= netWeightVMTIParameter / lengthVMTIParameter /\n\t\twidthVMTIParameter / depthVMTIParameter / areaVMTIParameter /\n\t\tnetVolumeVMTIParameter / massPerUnitAreaVMTIParameter /\n\t\tgrossWeightParameter / logisticLengthParameter /\n\t\tlogisticWidthParameter / logisticDepthParameter /\n\t\tlogisticAreaParameter / logisticVolumeParameter /\n\t\tprocessorParameter / LotParameter / expiryDateParameter /\n\t\texpiryTimeParameter / contentParameter / prodDateParameter /\n\t\tdueDateParameter / packDateParameter / bestBeforeDateParameter /\n\t\tsellByDateParameter / firstFreezeDateParameter /\n\t\tharvestDateParameter / pricePerUnitParameter / variantParameter /\n\t\tvarCountParameter / countParameter / amountPayPerUnitParameter /\n\t\tadditionalIdParameter / custPartNoParameter /\n\t\tmtoVariantParameter / pcnParameter / secondarySerialParameter /\n\t\trefToSourceParameter / amountParameter / amountISOParameter /\n\t\tpriceParameter / priceISOParameter / percentOffParameter /\n\t\torderNumberParameter / routeParameter / shipToLocParameter /\n\t\tbillToParameter / purchaseFromParameter / shipForLocParameter /\n\t\tlocNoParameter / prodServLocParameter / shipToPostParameter /\n\t\tshipToPostISOParameter / originParameter /\n\t\tcountryProcessParameter / countryFullProcessParameter /\n\t\tcountryInitialProcessParameter / countryDisassemblyParameter /\n\t\toriginSubdivisionParameter / nhrnPZNParameter / nhrnCIPParameter /\n\t\tnhrnCNParameter / nhrnDRNParameter / nsnParameter /\n\t\tmeatCutParameter / activePotencyParameter / catchAreaParameter /\n\t\tfishingGearTypeParameter / prodMethodParameter /\n\t\trefurbLotParameter / funcStatParameter / revStatParameter /\n\t\tgiaiAssemblyParameter / dimensionsParameter / cmtNoParameter /\n\t\tibanParameter / prodTimeParameter / versionParameter /\n\t\trefNoParameter / couponIDNAParameter / pointsParameter /\n\t\titipContentParameter / certificationRefParameter /\n\t\taquaticSpeciesParameter / opticalSensorParameter /\n\t\tpaperlessCouponIDNAParameter / internalParameter / mutualParameter / extensionParameter /\n\t\tshipToCompParameter / shipToNameParameter /\n\t\tshipToAdd1Parameter / shipToAdd2Parameter /\n\t\tshipToSubParameter / shipToLocalityParameter /\n\t\tshipToRegParameter / shipToCountryParameter /\n\t\tshipToPhoneParameter / rtnToCompParameter /\n\t\trtnToNameParameter / rtnToAdd1Parameter /\n\t\trtnToAdd2Parameter / rtnToSubParameter /\n\t\trtnToLocParameter / rtnToRegParameter /\n\t\trtnToCountryParameter / rtnToPostParameter /\n\t\trtnToPhoneParameter / srvDescriptionParameter /\n\t\tdangerousGoodsParameter / authToLeaveParameter /\n\t\tsigRequiredParameter / notBeforeDelDateParameter /\n\t\tnotAfterDelDateParameter / releaseDateParameter /\n\t\tgtinParameter / itipParameter / gmnParameter / cpidParameter /\n\t\tglnParameter / partyGlnParameter / gsrnpParameter /\n\t\tgsrnParameter / gcnParameter / ssccParameter / gdtiParameter /\n\t\tgincParameter / gsinParameter / graiParameter /\n\t\tgiaiParameter\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SECTION - Constructing the GS1 Digital Link URI ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\nscheme\t= \"https\" / \"http\"\n\nunreserved\t= ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n\nreserved\t= gen-delims / sub-delims\n\npct-encoded\t= \"%\" HEXDIG HEXDIG\n\ngen-delims\t= \":\" / \"/\" / \"?\" / \"#\" / \"[\" / \"]\" / \"@\"\n\nsub-delims\t= \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\" / \"*\" /\n \"+\" / \",\" / \";\" / \"=\"\n\nsub-delims-without-equals\t= \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\" / \"*\" /\n \"+\" / \",\" / \";\"\neverythingExceptDigitsAndEquals = unreserved / pct-encoded /\n sub-delims-without-equals /\n \":\" / \"@\" / \"/\" / \"?\"\n\npchar\t= unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n\nsegment\t= *pchar\n\nreg-name\t= *( unreserved / pct-encoded / sub-delims )\n\ndec-octet\t= DIGIT ; 0-9\n / %x31-39 DIGIT ; 10-99\n / \"1\" 2DIGIT ; 100-199\n / \"2\" %x30-34 DIGIT ; 200-249\n / \"25\" %x30-35 ; 250-255\n\nIPv4address \t= dec-octet \".\" dec-octet \".\" dec-octet \".\" dec-octet\n\nIPv6address \t= 6( h16 \":\" ) ls32\n / \"::\" 5( h16 \":\" ) ls32\n / [ h16 ] \"::\" 4( h16 \":\" ) ls32\n / [ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n / [ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n / [ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n / [ *4( h16 \":\" ) h16 ] \"::\" ls32\n / [ *5( h16 \":\" ) h16 ] \"::\" h16\n / [ *6( h16 \":\" ) h16 ] \"::\"\n\nls32\t= ( h16 \":\" h16 ) / IPv4address\n ; least-significant 32 bits of address\n\nh16\t= 1*4HEXDIG\n ; 16 bits of address represented in hexadecimal\n\nIP-literal\t= \"[\" ( IPv6address / IPvFuture ) \"]\"\n\nIPvFuture\t= \"v\" 1*HEXDIG \".\" 1*( unreserved / sub-delims / \":\" )\n\nhost\t= IP-literal / IPv4address / reg-name\n\nport \t= *DIGIT\n\nhostname\t= host [ \":\" port ]\nqueryStringDelim \t= \"&\" / \";\"\n\nqueryStringComp \t=\n \"?\" queryStringParam *( queryStringDelim queryStringParam)\n\nuncompressedGS1webURIPattern \t= gs1path [queryStringComp]\n\nreferenceGS1webURI\t= \"https://id.gs1.org\" uncompressedGS1webURIPattern\n\ncustomURIstem\t\t= scheme \"://\" hostname ; *( \"/\" segment )\n\nuncompressedCustomGS1webURI \t= customURIstem uncompressedGS1webURIPattern\n" }
UTF-8
ABNF
23,396
michaeljclark
959ba9cb7515ddcc32ba0813c21139e9e6b4132c
29b37125d2151508387a06c96f7e39391e134a2e
/grammar/httpbis.abnf
e8055c09f0bca1829daf3c24596eb1b58ece820d
michaeljclark/latypus
{ "content": "; <https://github.com/httpwg/http11bis/blob/master/latest/httpbis.abnf>\n;\n; the ABNF below was extracted from the IETF HTTPbis Internet Drafts\n; please see\n; <http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p1-messaging-latest.html#rfc.copyrightnotice>\n; for copyright information.\n\nAccept = [ ( \",\" / ( media-range [ accept-params ] ) ) *( OWS \",\" [ OWS ( media-range [ accept-params ] ) ] ) ]\nAccept-Charset = *( \",\" OWS ) ( ( charset / \"*\" ) [ weight ] ) *( OWS \",\" [ OWS ( ( charset / \"*\" ) [ weight ] ) ] )\nAccept-Encoding = [ ( \",\" / ( codings [ weight ] ) ) *( OWS \",\" [ OWS ( codings [ weight ] ) ] ) ]\nAccept-Language = *( \",\" OWS ) ( language-range [ weight ] ) *( OWS \",\" [ OWS ( language-range [ weight ] ) ] )\nAccept-Ranges = acceptable-ranges\nAge = delta-seconds\nAllow = [ ( \",\" / method ) *( OWS \",\" [ OWS method ] ) ]\nAuthorization = credentials\nBWS = OWS\nCache-Control = *( \",\" OWS ) cache-directive *( OWS \",\" [ OWS cache-directive ] )\nConnection = *( \",\" OWS ) connection-option *( OWS \",\" [ OWS connection-option ] )\nContent-Encoding = *( \",\" OWS ) content-coding *( OWS \",\" [ OWS content-coding ] )\nContent-Language = *( \",\" OWS ) language-tag *( OWS \",\" [ OWS language-tag ] )\nContent-Length = 1*DIGIT\nContent-Location = absolute-URI / partial-URI\nContent-Range = byte-content-range / other-content-range\nContent-Type = media-type\nDate = HTTP-date\nETag = entity-tag\nExpect = \"100-continue\"\nExpires = HTTP-date\nFrom = mailbox\nGMT = %x47.4D.54 ; GMT\n\nHTTP-date = IMF-fixdate / obs-date\nHTTP-message = start-line *( header-field CRLF ) CRLF [ message-body ]\nHTTP-name = %x48.54.54.50 ; HTTP\n\nHTTP-version = HTTP-name \"/\" DIGIT \".\" DIGIT\nHost = uri-host [ \":\" port ]\nIMF-fixdate = day-name \",\" SP date1 SP time-of-day SP GMT\nIf-Match = \"*\" / ( *( \",\" OWS ) entity-tag *( OWS \",\" [ OWS entity-tag ] ) )\nIf-Modified-Since = HTTP-date\nIf-None-Match = \"*\" / ( *( \",\" OWS ) entity-tag *( OWS \",\" [ OWS entity-tag ] ) )\nIf-Range = entity-tag / HTTP-date\nIf-Unmodified-Since = HTTP-date\nLast-Modified = HTTP-date\nLocation = URI-reference\nMax-Forwards = 1*DIGIT\nOWS = *( SP / HTAB )\nPragma = *( \",\" OWS ) pragma-directive *( OWS \",\" [ OWS pragma-directive ] )\nProxy-Authenticate = *( \",\" OWS ) challenge *( OWS \",\" [ OWS challenge ] )\nProxy-Authorization = credentials\nRWS = 1*( SP / HTAB )\nRange = byte-ranges-specifier / other-ranges-specifier\nReferer = absolute-URI / partial-URI\nRetry-After = HTTP-date / delta-seconds\nServer = product *( RWS ( product / comment ) )\nTE = [ ( \",\" / t-codings ) *( OWS \",\" [ OWS t-codings ] ) ]\nTrailer = *( \",\" OWS ) field-name *( OWS \",\" [ OWS field-name ] )\nTransfer-Encoding = *( \",\" OWS ) transfer-coding *( OWS \",\" [ OWS transfer-coding ] )\nURI-reference = <URI-reference, defined in [RFC3986], Section 4.1>\nUpgrade = *( \",\" OWS ) protocol *( OWS \",\" [ OWS protocol ] )\nUser-Agent = product *( RWS ( product / comment ) )\nVary = \"*\" / ( *( \",\" OWS ) field-name *( OWS \",\" [ OWS field-name ] ) )\nVia = *( \",\" OWS ) ( received-protocol RWS received-by [ RWS comment ] ) *( OWS \",\" [ OWS ( received-protocol RWS received-by [ RWS comment ] ) ] )\nWWW-Authenticate = *( \",\" OWS ) challenge *( OWS \",\" [ OWS challenge ] )\nWarning = *( \",\" OWS ) warning-value *( OWS \",\" [ OWS warning-value ] )\nabsolute-URI = <absolute-URI, defined in [RFC3986], Section 4.3>\nabsolute-form = absolute-URI\nabsolute-path = 1*( \"/\" segment )\naccept-ext = OWS \";\" OWS token [ \"=\" word ]\naccept-params = weight *accept-ext\nacceptable-ranges = ( *( \",\" OWS ) range-unit *( OWS \",\" [ OWS range-unit ] ) ) / \"none\"\nasctime-date = day-name SP date3 SP time-of-day SP year\nasterisk-form = \"*\"\nattribute = token\nauth-param = token BWS \"=\" BWS ( token / quoted-string )\nauth-scheme = token\nauthority = <authority, defined in [RFC3986], Section 3.2>\nauthority-form = authority\nbyte-content-range = bytes-unit SP ( byte-range-resp / unsatisfied-range )\nbyte-range = first-byte-pos \"-\" last-byte-pos\nbyte-range-resp = byte-range \"/\" ( complete-length / \"*\" )\nbyte-range-set = *( \",\" OWS ) ( byte-range-spec / suffix-byte-range-spec ) *( OWS \",\" [ OWS ( byte-range-spec / suffix-byte-range-spec ) ] )\nbyte-range-spec = first-byte-pos \"-\" [ last-byte-pos ]\nbyte-ranges-specifier = bytes-unit \"=\" byte-range-set\nbytes-unit = \"bytes\"\ncache-directive = token [ \"=\" ( token / quoted-string ) ]\nchallenge = auth-scheme [ 1*SP ( token68 / [ ( \",\" / auth-param ) *( OWS \",\" [ OWS auth-param ] ) ] ) ]\ncharset = token\nchunk = chunk-size [ chunk-ext ] CRLF chunk-data CRLF\nchunk-data = 1*OCTET\nchunk-ext = *( \";\" chunk-ext-name [ \"=\" chunk-ext-val ] )\nchunk-ext-name = token\nchunk-ext-val = token / quoted-str-nf\nchunk-size = 1*HEXDIG\nchunked-body = *chunk last-chunk trailer-part CRLF\ncodings = content-coding / \"identity\" / \"*\"\ncomment = \"(\" *( ctext / quoted-cpair / comment ) \")\"\ncomplete-length = 1*DIGIT\nconnection-option = token\ncontent-coding = token\ncredentials = auth-scheme [ 1*SP ( token68 / [ ( \",\" / auth-param ) *( OWS \",\" [ OWS auth-param ] ) ] ) ]\nctext = HTAB / SP / %x21-27 ; '!'-'''\n / %x2A-5B ; '*'-'['\n / %x5D-7E ; ']'-'~'\n / obs-text\ndate1 = day SP month SP year\ndate2 = day \"-\" month \"-\" 2DIGIT\ndate3 = month SP ( 2DIGIT / ( SP DIGIT ) )\nday = 2DIGIT\nday-name = %x4D.6F.6E ; Mon\n / %x54.75.65 ; Tue\n / %x57.65.64 ; Wed\n / %x54.68.75 ; Thu\n / %x46.72.69 ; Fri\n / %x53.61.74 ; Sat\n / %x53.75.6E ; Sun\n\nday-name-l = %x4D.6F.6E.64.61.79 ; Monday\n / %x54.75.65.73.64.61.79 ; Tuesday\n / %x57.65.64.6E.65.73.64.61.79 ; Wednesday\n / %x54.68.75.72.73.64.61.79 ; Thursday\n / %x46.72.69.64.61.79 ; Friday\n / %x53.61.74.75.72.64.61.79 ; Saturday\n / %x53.75.6E.64.61.79 ; Sunday\n\ndelta-seconds = 1*DIGIT\nentity-tag = [ weak ] opaque-tag\netagc = \"!\" / %x23-7E ; '#'-'~'\n / obs-text\nextension-pragma = token [ \"=\" ( token / quoted-string ) ]\nfield-content = *( HTAB / SP / VCHAR / obs-text )\nfield-name = token\nfield-value = *( field-content / obs-fold )\nfirst-byte-pos = 1*DIGIT\nfragment = <fragment, defined in [RFC3986], Section 3.5>\nheader-field = field-name \":\" OWS field-value OWS\nhour = 2DIGIT\nhttp-URI = \"http://\" authority path-abempty [ \"?\" query ] [ \"#\" fragment ]\nhttps-URI = \"https://\" authority path-abempty [ \"?\" query ] [ \"#\" fragment ]\nlanguage-range = <language-range, defined in [RFC4647], Section 2.1>\nlanguage-tag = <Language-Tag, defined in [RFC5646], Section 2.1>\nlast-byte-pos = 1*DIGIT\nlast-chunk = 1*\"0\" [ chunk-ext ] CRLF\nmailbox = <mailbox, defined in [RFC5322], Section 3.4>\nmedia-range = ( \"*/*\" / ( type \"/*\" ) / ( type \"/\" subtype ) ) *( OWS \";\" OWS parameter )\nmedia-type = type \"/\" subtype *( OWS \";\" OWS parameter )\nmessage-body = *OCTET\nmethod = token\nminute = 2DIGIT\nmonth = %x4A.61.6E ; Jan\n / %x46.65.62 ; Feb\n / %x4D.61.72 ; Mar\n / %x41.70.72 ; Apr\n / %x4D.61.79 ; May\n / %x4A.75.6E ; Jun\n / %x4A.75.6C ; Jul\n / %x41.75.67 ; Aug\n / %x53.65.70 ; Sep\n / %x4F.63.74 ; Oct\n / %x4E.6F.76 ; Nov\n / %x44.65.63 ; Dec\n\nobs-date = rfc850-date / asctime-date\nobs-fold = CRLF ( SP / HTAB )\nobs-text = %x80-FF\nopaque-tag = DQUOTE *etagc DQUOTE\norigin-form = absolute-path [ \"?\" query ]\nother-content-range = other-range-unit SP other-range-resp\nother-range-resp = *CHAR\nother-range-set = 1*CHAR\nother-range-unit = token\nother-ranges-specifier = other-range-unit \"=\" other-range-set\nparameter = attribute \"=\" value\npartial-URI = relative-part [ \"?\" query ]\npath-abempty = <path-abempty, defined in [RFC3986], Section 3.3>\nport = <port, defined in [RFC3986], Section 3.2.3>\npragma-directive = \"no-cache\" / extension-pragma\nproduct = token [ \"/\" product-version ]\nproduct-version = token\nprotocol = protocol-name [ \"/\" protocol-version ]\nprotocol-name = token\nprotocol-version = token\npseudonym = token\nqdtext = HTAB / SP / \"!\" / %x23-5B ; '#'-'['\n / %x5D-7E ; ']'-'~'\n / obs-text\nqdtext-nf = HTAB / SP / \"!\" / %x23-5B ; '#'-'['\n / %x5D-7E ; ']'-'~'\n / obs-text\nquery = <query, defined in [RFC3986], Section 3.4>\nquoted-cpair = \"\\\" ( HTAB / SP / VCHAR / obs-text )\nquoted-pair = \"\\\" ( HTAB / SP / VCHAR / obs-text )\nquoted-str-nf = DQUOTE *( qdtext-nf / quoted-pair ) DQUOTE\nquoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE\nqvalue = ( \"0\" [ \".\" *3DIGIT ] ) / ( \"1\" [ \".\" *3\"0\" ] )\nrange-unit = bytes-unit / other-range-unit\nrank = ( \"0\" [ \".\" *3DIGIT ] ) / ( \"1\" [ \".\" *3\"0\" ] )\nreason-phrase = *( HTAB / SP / VCHAR / obs-text )\nreceived-by = ( uri-host [ \":\" port ] ) / pseudonym\nreceived-protocol = [ protocol-name \"/\" ] protocol-version\nrelative-part = <relative-part, defined in [RFC3986], Section 4.2>\nrequest-line = method SP request-target SP HTTP-version CRLF\nrequest-target = origin-form / absolute-form / authority-form / asterisk-form\nrfc850-date = day-name-l \",\" SP date2 SP time-of-day SP GMT\nsecond = 2DIGIT\nsegment = <segment, defined in [RFC3986], Section 3.3>\nspecial = \"(\" / \")\" / \"<\" / \">\" / \"@\" / \",\" / \";\" / \":\" / \"\\\" / DQUOTE / \"/\" / \"[\" / \"]\" / \"?\" / \"=\" / \"{\" / \"}\"\nstart-line = request-line / status-line\nstatus-code = 3DIGIT\nstatus-line = HTTP-version SP status-code SP reason-phrase CRLF\nsubtype = token\nsuffix-byte-range-spec = \"-\" suffix-length\nsuffix-length = 1*DIGIT\nt-codings = \"trailers\" / ( transfer-coding [ t-ranking ] )\nt-ranking = OWS \";\" OWS \"q=\" rank\ntchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" / \"*\" / \"+\" / \"-\" / \".\" / \"^\" / \"_\" / \"`\" / \"|\" / \"~\" / DIGIT / ALPHA\ntime-of-day = hour \":\" minute \":\" second\ntoken = 1*tchar\ntoken68 = 1*( ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\" / \"+\" / \"/\" ) *\"=\"\ntrailer-part = *( header-field CRLF )\ntransfer-coding = \"chunked\" / \"compress\" / \"deflate\" / \"gzip\" / transfer-extension\ntransfer-extension = token *( OWS \";\" OWS transfer-parameter )\ntransfer-parameter = attribute BWS \"=\" BWS value\ntype = token\nunsatisfied-range = \"*/\" complete-length\nuri-host = <host, defined in [RFC3986], Section 3.2.2>\nvalue = word\nwarn-agent = ( uri-host [ \":\" port ] ) / pseudonym\nwarn-code = 3DIGIT\nwarn-date = DQUOTE HTTP-date DQUOTE\nwarn-text = quoted-string\nwarning-value = warn-code SP warn-agent SP warn-text [ SP warn-date ]\nweak = %x57.2F ; W/\n\nweight = OWS \";\" OWS \"q=\" qvalue\nword = token / quoted-string\nyear = 4DIGIT\n; Accept defined but not used\n; Accept-Charset defined but not used\n; Accept-Encoding defined but not used\n; Accept-Language defined but not used\n; Accept-Ranges defined but not used\n; Age defined but not used\n; Allow defined but not used\n; Authorization defined but not used\n; Cache-Control defined but not used\n; Connection defined but not used\n; Content-Encoding defined but not used\n; Content-Language defined but not used\n; Content-Length defined but not used\n; Content-Location defined but not used\n; Content-Range defined but not used\n; Content-Type defined but not used\n; Date defined but not used\n; ETag defined but not used\n; Expect defined but not used\n; Expires defined but not used\n; From defined but not used\n; HTTP-message defined but not used\n; Host defined but not used\n; If-Match defined but not used\n; If-Modified-Since defined but not used\n; If-None-Match defined but not used\n; If-Range defined but not used\n; If-Unmodified-Since defined but not used\n; Last-Modified defined but not used\n; Location defined but not used\n; Max-Forwards defined but not used\n; Pragma defined but not used\n; Proxy-Authenticate defined but not used\n; Proxy-Authorization defined but not used\n; Range defined but not used\n; Referer defined but not used\n; Retry-After defined but not used\n; Server defined but not used\n; TE defined but not used\n; Trailer defined but not used\n; Transfer-Encoding defined but not used\n; Upgrade defined but not used\n; User-Agent defined but not used\n; Vary defined but not used\n; Via defined but not used\n; WWW-Authenticate defined but not used\n; Warning defined but not used\n; chunked-body defined but not used\n; http-URI defined but not used\n; https-URI defined but not used\n; special defined but not used\n" }
UTF-8
ABNF
11,770
sainteos
57d711cb4553ae2f6a9baa6cab3e0d0a2e0b1097
2d6428cca481f832b816bfe97db650bbaa4e04c0
/test/resources/bad_line_endings.abnf
ba033dc5ff5e42efd22333d419a06fd26dadca18
sainteos/ex_abnf
{ "content": "ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39\n\nstring1 = *ALPHA\nstring2 = *3ALPHA\nstring3 = 1*2ALPHA\nstring4 = 3*ALPHA\nstring5 = [DIGIT] string1\n" }
UTF-8
ABNF
175
massemanet
82614dd378386718e5ba9575d2614830b799203d
dd3c0e2d76a62cae99913514f7b3484344fbe3b2
/samples/rfc1035/rfc1035.abnf
cafd0e71b35ac216fc2f872aff61ed072b9ed94f
massemanet/abnfc
{ "content": ";<domain> ::= <subdomain> | \" \"\n;\n;<subdomain> ::= <label> | <subdomain> \".\" <label>\n;\n;<label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]\n;\n;<ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>\n;\n;<let-dig-hyp> ::= <let-dig> | \"-\"\n;\n;<let-dig> ::= <letter> | <digit>\n;\n;<letter> ::= any one of the 52 alphabetic characters A through Z in\n;upper case and a through z in lower case\n;\n;<digit> ::= any one of the ten digits 0 through 9\n\n\ndomain = subdomain / \" \"\n\nsubdomain = label *( \".\" label)\n\nlabel = ALPHA *ldh-str 1*let-dig\n\nldh-str = let-dig-hyp ldh-str / let-dig-hyp\n\nlet-dig-hyp = let-dig / \"-\"\n\nlet-dig = ALPHA / DIGIT\n" }
UTF-8
ABNF
653
amyinorbit
b5c6448d95837b2d0f50f2a72a42fc778a10dee6
9e6ddea1f6c2ec69b48a6d84be674f7ff8682f5e
/specs/compass-lang.abnf
3a69ffbd6d7754d7d4bd827c92fff4660d3e5134
amyinorbit/compass
{ "content": "sentence = trigger / assertion\n\nassertion = subject continuation\ncontinuation = is-sentence / has-sentence / can-sentence\n\nis-sentence = (\"is\" / \"are\") (kind / adjectives / locator / prop-def)\nkind = (\"a\" / \"an\") [\"kind\" \"of\"]\nadjectives = word *(\",\" word)\nlocator = direction (\"from\" / \"of\") noun\nprop-def = \"a\" \"property\" \"of\" noun\n\nhas-sentence = (\"has\" / \"have\") property-name\n\ncan-sentence = \"can\" \"be\" participle\n\nsubject = \"there\" / \"it\" / descriptor\ndescriptor = [\"the\" / \"a\"] noun [\"of\" noun]\n" }
UTF-8
ABNF
561
yuanbao15
db22757acfd88b6a1a709573de91532a7a3d3adb
62cac4926599e03b97c8beddf9428c2a3d463a9c
/moduleIflyVoice/src/main/assets/wake_grammar_cloud.abnf
198e67f8c5f28ceaccfb0d96f9d9280cea096745
yuanbao15/ModuleDevelop
{ "content": "#ABNF 1.0 UTF-8;\nlanguage zh-CN; \nmode voice;\n\nroot $main;\n$main = [$call] $name;\n$call = 黄家口德维恩;\n$name = 扫码|music|返回|张三|李四|张海洋;" }
UTF-8
ABNF
162
Enigma-zero
f827e6d3d675bd55c5ea3f7b9ce93ee36b1dc978
5ca5a03cd0594a0804ac2e52cc7e5e93ebd34a50
/assets/wake_grammar_sample.abnf
66c2020a667a83640caf159d79e5602d1261a01c
Enigma-zero/BISTU-Map
{ "content": "#ABNF 1.0 UTF-8;\nlanguage zh-CN; \nmode voice;\n\nroot $main;\n$main = $call $name;\n$call = 讯飞语音|讯飞语点;\n$name = 张三|李四|张海洋;" }
UTF-8
ABNF
147
asmwarrior
4825fc27afca558036c5ac29dae56ff380e639b1
ae97ae80061f2cef8bc626f038a0d8c19f3ced21
/tests/abnf/rfc7230.abnf
02db534eafd68b697f2ffcebbabea839b34de78a
asmwarrior/PeppaPEG
{ "content": "; Collected rules from RFC 7230, Appendix B.\n; https://tools.ietf.org/html/rfc7230#appendix-B\n\nBWS = OWS\n\nConnection = *( \",\" OWS ) connection-option *( OWS \",\" [ OWS connection-option ] )\n\nContent-Length = 1*DIGIT\n\nHTTP-message = start-line *( header-field CRLF ) CRLF [ message-body ]\n\nHTTP-name = %x48.54.54.50\n\nHTTP-version = HTTP-name \"/\" DIGIT \".\" DIGIT\n\nHost = uri-host [ \":\" port ]\n\nOWS = *( SP / HTAB )\n\nRWS = 1*( SP / HTAB )\n\nTE = [ ( \",\" / t-codings ) *( OWS \",\" [ OWS t-codings ] ) ]\n\nTrailer = *( \",\" OWS ) field-name *( OWS \",\" [ OWS field-name ] )\n\nTransfer-Encoding = *( \",\" OWS ) transfer-coding *( OWS \",\" [ OWS transfer-coding ] )\n\nUpgrade = *( \",\" OWS ) protocol *( OWS \",\" [ OWS protocol ] )\n\nVia = *( \",\" OWS ) ( received-protocol RWS received-by [ RWS comment ] ) *( OWS \",\" [ OWS ( received-protocol RWS received-by [ RWS comment ] ) ] )\n\nabsolute-form = absolute-URI\n\nabsolute-path = 1*( \"/\" segment )\n\nasterisk-form = \"*\"\n\nauthority-form = authority\n\nchunk = chunk-size [ chunk-ext ] CRLF chunk-data CRLF\n\nchunk-data = 1*OCTET\n\nchunk-ext = *( \";\" chunk-ext-name [ \"=\" chunk-ext-val ] )\n\nchunk-ext-name = token\n\nchunk-ext-val = token / quoted-string\n\nchunk-size = 1*HEXDIG\n\nchunked-body = *chunk last-chunk trailer-part CRLF\n\ncomment = \"(\" *( ctext / quoted-pair / comment ) \")\"\n\nconnection-option = token\n\nctext = HTAB / SP / %x21-27 / %x2A-5B / %x5D-7E / obs-text\n\nfield-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n\nfield-name = token\n\nfield-value = *( field-content / obs-fold )\n\nfield-vchar = VCHAR / obs-text\n\nheader-field = field-name \":\" OWS field-value OWS\n\nhttp-URI = \"http://\" authority path-abempty [ \"?\" query ] [ \"#\" fragment ]\n\nhttps-URI = \"https://\" authority path-abempty [ \"?\" query ] [ \"#\" fragment ]\n\nlast-chunk = 1*\"0\" [ chunk-ext ] CRLF\n\nmessage-body = *OCTET\n\nmethod = token\n\nobs-fold = CRLF 1*( SP / HTAB )\n\nobs-text = %x80-FF\n\norigin-form = absolute-path [ \"?\" query ]\n\npartial-URI = relative-part [ \"?\" query ]\n\nprotocol = protocol-name [ \"/\" protocol-version ]\n\nprotocol-name = token\n\nprotocol-version = token\n\npseudonym = token\n\nqdtext = HTAB / SP / \"!\" / %x23-5B / %x5D-7E / obs-text\n\nquoted-pair = \"\\\" ( HTAB / SP / VCHAR / obs-text )\n\nquoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE\n\nrank = ( \"0\" [ \".\" *3DIGIT ] ) / ( \"1\" [ \".\" *3\"0\" ] )\n\nreason-phrase = *( HTAB / SP / VCHAR / obs-text )\n\nreceived-by = ( uri-host [ \":\" port ] ) / pseudonym\n\nreceived-protocol = [ protocol-name \"/\" ] protocol-version\n\nrequest-line = method SP request-target SP HTTP-version CRLF\n\nrequest-target = origin-form / absolute-form / authority-form / asterisk-form\n\nstart-line = request-line / status-line\n\nstatus-code = 3DIGIT\n\nstatus-line = HTTP-version SP status-code SP reason-phrase CRLF\n\nt-codings = \"trailers\" / ( transfer-coding [ t-ranking ] )\n\nt-ranking = OWS \";\" OWS \"q=\" rank\n\ntchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" / \"*\" / \"+\" / \"-\" / \".\" / \"^\" / \"_\" / \"`\" / \"|\" / \"~\" / DIGIT / ALPHA\n\ntoken = 1*tchar\n\ntrailer-part = *( header-field CRLF )\n\ntransfer-coding = \"chunked\" / \"compress\" / \"deflate\" / \"gzip\" / transfer-extension\n\ntransfer-extension = token *( OWS \";\" OWS transfer-parameter )\n\ntransfer-parameter = token BWS \"=\" BWS ( token / quoted-string )\n" }
UTF-8
ABNF
3,223
douxiao
6f9301a24f1acba59f1295fb3aab55c7d4b0af59
d0f4e3fc799cb334c609d40d74b664adbc47c5ed
/app/src/main/assets/grammar_sample.abnf
5171fbd6aa8730f77297761e50f0d53ded8f1c09
douxiao/AKJ_UAV_APP
{ "content": "#ABNF 1.0 UTF-8;\r\nlanguage zh-CN; \r\nmode voice;\r\n\r\nroot $main;\r\n$main = $command;\r\n$command = 起飞|着陆|向前飞|向后飞|向左飞|向右飞|紧急着陆|悬停;\r\n" }
UTF-8
ABNF
170
jbenner-radham
b0964c9f00cc147f8d8bba24bf0c3ebf86c01ae4
1ce623e501a9ca87afb4166aa58b0fa9e1ca745e
/data/abnf/end.abnf
f4c6ba1898d2c1ee06071564c35bb26adee1466d
jbenner-radham/jcard-to-vcard
{ "content": "END-param = 0\" \" ; no parameter allowed\nEND-value = \"VCARD\"\n" }
UTF-8
ABNF
61
alianza-dev
82ff26ac1573fc2aee744959c0d71746f8d60a17
e5c825a3e5ea91c7bae15485ece40988c8e53c97
/src/main/java/org/murillo/abnf/sdp.abnf
0ebb6dc04a1e719b37b983aef6829986e1330039
alianza-dev/sdp
{ "content": "session-description = proto-version\n origin-field\n session-name-field\n [information-field]\n [uri-field]\n email-fields\n phone-fields\n [connection-field]\n bandwidth-fields\n time-fields\n\t\t\t[zone-adjustments]\n [key-field]\n attribute-fields\n media-descriptions;\nproto-version = %x76 \"=\" 1*DIGIT CRLF ;\norigin-field = %x6f \"=\" username SP sess-id SP sess-version SP nettype SP addrtype SP unicast-address CRLF;\nsession-name-field = %x73 \"=\" text CRLF;\ninformation-field = %x69 \"=\" text CRLF;\nuri-field = %x75 \"=\" URI-reference CRLF;\nemail-fields = *(email-field);\nemail-field = %x65 \"=\" email-address CRLF;\nphone-fields = *(phone-field);\nphone-field = %x70 \"=\" phone-number CRLF;\nconnection-field = %x63 \"=\" nettype SP addrtype SP connection-address CRLF;\nbandwidth-fields = *(bandwidth-field);\nbandwidth-field = %x62 \"=\" bwtype \":\" bandwidth CRLF;\ntime-fields = 1*(time-repeat-field) ;\ntime-repeat-field = time-field *(repeat-field);\ntime-field = %x74 \"=\" start-time SP stop-time CRLF;\nrepeat-field = %x72 \"=\" repeat-interval SP typed-time 1*(SP typed-time) CRLF;\nzone-adjustments = %x7a \"=\" *(SP time SP [\"-\"] typed-time) CRLF;\nkey-field = %x6b \"=\" key-type CRLF;\nattribute-fields = *(attribute-field);\nattribute-field\t = %x61 \"=\" gen-attribute CRLF;\ngen-attribute = mid-attr / group-attr / ssrc-attr / ssrc-group-attr / cname-attr/ previous-ssrc-attr / rtpmap-attr / fmtp-attr / crypto-attribute / candidate-attribute / extmap-attribute / fingerprint-attribute / sctpmap-attr / attribute;\nsctpmap-attr = \"sctpmap:\" sctpmap-number SP app SP [streams];\nsctpmap-number = 1*DIGIT;\napp = token;\nstreams = 1*DIGIT;\nfingerprint-attribute = \"fingerprint\" \":\" hash-func SP fingerprint;\nhash-func = \"sha-1\" / \"sha-224\" / \"sha-256\" / \"sha-384\" / \"sha-512\" / \"md5\" / \"md2\" / token ;\nfingerprint = 2HEXDIG *(\":\" 2HEXDIG);\nextmap-attribute = \"extmap:\" extension-identifier [\"/\" direction] SP extension-name [SP extension-attributes];\nextension-identifier= 1*5DIGIT;\nextension-name\t = URI;\ndirection\t = \"sendonly\" / \"recvonly\" / \"sendrecv\" / \"inactive\";\nextension-attributes= byte-string;\ncandidate-attribute = \"candidate\" \":\" foundation SP component-id SP\n transport SP\n priority SP\n connection-address SP\n port \n SP cand-type\n [SP \"raddr\" SP rel-addr]\n [SP \"rport\" SP rel-port]\n *(SP extension-att);\nfoundation = 1*32ice-char;\ncomponent-id = 1*5DIGIT ;\ntransport = \"UDP\" / transport-extension;\ntransport-extension = token ; \npriority = 1*10DIGIT ;\ncand-type = \"typ\" SP candidate-types ;\ncandidate-types = \"host\" / \"srflx\" / \"prflx\" / \"relay\" / token ;\nrel-addr = connection-address;\nrel-port = port;\nextension-att = extension-att-name SP extension-att-value ;\nextension-att-name = token ;\nextension-att-value = token ;\nice-char = ALPHA / DIGIT / \"+\" / \"/\" ;\ncrypto-attribute = \"crypto:\" tag 1*WSP crypto-suite 1*WSP key-params *(1*WSP session-param);\ntag = 1*9DIGIT ;\ncrypto-suite = 1*(ALPHA / DIGIT / \"_\");\nkey-params = key-param *(\";\" key-param) ;\nkey-param = key-method \":\" key-info ;\nkey-method = \"inline\" / key-method-ext ;\nkey-method-ext = 1*(ALPHA / DIGIT / \"_\") ;\nkey-info = 1*(%x21-3A / %x3C-7E) ; \nsession-param = 1*(VCHAR); \nmid-attr = \"mid:\" identification-tag;\nidentification-tag = token;\ngroup-attr = \"group:\" group-semantics *(SP identification-tag);\ngroup-semantics = token;\nssrc-attr = \"ssrc:\" ssrc-id SP attribute;\nssrc-id = integer ; \nssrc-group-attr = \"ssrc-group:\" ssrc-group-semantics *(SP ssrc-id);\nssrc-group-semantics = token ;\ncname-attr = \"cname:\" cname ;\ncname = byte-string;\nprevious-ssrc-attr = \"previous-ssrc:\" ssrc-id *(SP ssrc-id);\nrtpmap-attr = \"rtpmap:\" fmt SP name \"/\" rate [\"/\" parameters];\nname = token ;\nrate = integer ;\nparameters = token ;\nfmtp-attr = \"fmtp:\" fmt SP param-list;\nparam-list\t = byte-string ;\nmedia-descriptions = *(media-description);\nmedia-description = media-field\n\t\t [information-field]\n\t\t *connection-field\n\t\t bandwidth-fields\n\t\t [key-field]\n\t\t attribute-fields;\nmedia-field = %x6d \"=\" media SP port [\"/\" number-of-ports] SP proto 1*(SP fmt) CRLF;\nusername = non-ws-string ;\nsess-id = 1*DIGIT;\nsess-version = 1*DIGIT;\nnettype = token;\naddrtype = token;\nemail-address = address-and-comment / dispname-and-address / addr-spec;\naddress-and-comment = addr-spec 1*SP \"(\" 1*email-safe \")\";\ndispname-and-address= 1*email-safe 1*SP \"<\" addr-spec \">\";\nphone-number = phone *SP \"(\" 1*email-safe \")\" / 1*email-safe \"<\" phone \">\" / phone;\nphone = [\"+\"] DIGIT 1*(SP / \"-\" / DIGIT);\nconnection-address = IP4-multicast / IP6-multicast / IPv4address / IPv6address / FQDN / extn-addr;\nunicast-address = IPv4address / IPv6address / FQDN / extn-addr;\nbwtype = token;\nbandwidth = 1*DIGIT;\nstart-time = time / \"0\";\nstop-time = time / \"0\";\ntime = POS-DIGIT 9*DIGIT;\nrepeat-interval = POS-DIGIT *DIGIT [fixed-len-time-unit];\ntyped-time = 1*DIGIT [fixed-len-time-unit];\nfixed-len-time-unit = %x64 / %x68 / %x6d / %x73;\nkey-type = prompt-key-type / clear-key-type / base64-key-type / uri-key-type;\nprompt-key-type = \"prompt\";\nclear-key-type = \"clear\" \":\" text;\nbase64-key-type = \"base64\" \":\" base64;\nuri-key-type = \"uri\" \":\" URI-reference;\nbase64 = *base64-unit [base64-pad];\nbase64-unit = 4base64-char;\nbase64-pad = 2base64-char \"==\" / 3base64-char \"=\";\nbase64-char = ALPHA / DIGIT / \"+\" / \"/\";\nattribute = (att-field \":\" att-value) / att-field;\natt-field = token;\natt-value = byte-string;\nmedia = token;\nfmt = token;\nproto = token *(\"/\" token);\nport = 1*DIGIT;\nnumber-of-ports = integer;\nIP4-multicast = m1 3( \".\" decimal-uchar ) \"/\" ttl [ \"/\" integer ];\nm1 = (\"22\" (\"4\"/\"5\"/\"6\"/\"7\"/\"8\"/\"9\")) / (\"23\" DIGIT );\nIP6-multicast = IPv6address [ \"/\" integer ];\nttl = (POS-DIGIT *2DIGIT) / \"0\";\nFQDN = 4*(alpha-numeric / \"-\" / \".\");\nemail-safe = %x01-09/%x0B-0C/%x0E-27/%x2A-3B/%x3D/%x3F-FF;\nURI = scheme \":\" hier-part [ \"?\" query ] [ \"#\" fragment ];\nhier-part\t = \"//\" authority path-abempty / path-absolute / path-rootless / path-empty;\nURI-reference\t = URI / relative-ref;\nabsolute-URI\t = scheme \":\" hier-part [ \"?\" query ];\nrelative-ref\t = relative-part [ \"?\" query ] [ \"#\" fragment ];\nrelative-part\t = \"//\" authority path-abempty / path-absolute / path-noscheme / path-empty;\nscheme\t = ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" );\nauthority\t = [ userinfo \"@\" ] host [ \":\" port ];\nuserinfo\t = *( unreserved / pct-encoded / sub-delims / \":\" );\nhost = IP-literal / IPv4address / reg-name;\nIP-literal\t = \"[\" ( IPv6address / IPvFuture ) \"]\";\nIPvFuture\t = \"v\" 1*HEXDIG \".\" 1*( unreserved / sub-delims / \":\" );\nIPv6address\t = 6( h16 \":\" ) ls32\n / \"::\" 5( h16 \":\" ) ls32\n / [ h16 ] \"::\" 4( h16 \":\" ) ls32\n / [ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n / [ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n / [ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n / [ *4( h16 \":\" ) h16 ] \"::\" ls32\n / [ *5( h16 \":\" ) h16 ] \"::\" h16\n / [ *6( h16 \":\" ) h16 ] \"::\";\nh16 = 1*4HEXDIG;\nls32 = ( h16 \":\" h16 ) / IPv4address;\nIPv4address\t = dec-octet \".\" dec-octet \".\" dec-octet \".\" dec-octet;\ndec-octet\t = DIGIT / %x31-39 DIGIT / \"1\" 2DIGIT / \"2\" %x30-34 DIGIT / \"25\" %x30-35 ;\nreg-name\t = *( unreserved / pct-encoded / sub-delims );\npath = path-abempty / path-absolute / path-noscheme / path-rootless / path-empty ;\npath-abempty\t = *( \"/\" segment );\npath-absolute\t = \"/\" [ segment-nz *( \"/\" segment ) ];\npath-noscheme\t = segment-nz-nc *( \"/\" segment );\npath-rootless\t = segment-nz *( \"/\" segment );\npath-empty\t = 0*pchar;\nsegment \t = *pchar;\nsegment-nz\t = 1*pchar;\nsegment-nz-nc\t = 1*( unreserved / pct-encoded / sub-delims / \"@\" );\npchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\";\nquery = *( pchar / \"/\" / \"?\" );\nfragment\t = *( pchar / \"/\" / \"?\" );\npct-encoded\t = \"%\" HEXDIG HEXDIG;\nunreserved\t = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\";\nreserved\t = gen-delims / sub-delims;\ngen-delims\t = \":\" / \"/\" / \"?\" / \"#\" / \"[\" / \"]\" / \"@\";\nsub-delims\t = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\" / \"*\" / \"+\" / \",\" / \";\" / \"=\";\naddr-spec = local-part \"@\" domain ;\nlocal-part = dot-atom / quoted-string / obs-local-part ;\ndomain = dot-atom / domain-literal / obs-domain ;\ndomain-literal = [CFWS] \"[\" *([FWS] dcontent) [FWS] \"]\" [CFWS] ;\ndcontent = dtext / quoted-pair ;\ndtext = NO-WS-CTL / %d33-90 / %d94-126 ;\nNO-WS-CTL = %d1-8 / %d11 / %d12 / %d14-31 / %d127;\nquoted-pair = (\"\\\" text) / obs-qp ;\ntext = byte-string;\nFWS = ([*WSP CRLF] 1*WSP) / obs-FWS;\n\ncomment = \"(\" *([FWS] ccontent) [FWS] \")\";\nccontent = ctext / quoted-pair / comment;\nctext = NO-WS-CTL / %d33-39 / %d42-91 / %d93-126 ;\ndot-atom = [CFWS] dot-atom-text [CFWS];\ndot-atom-text = 1*atext *(\".\" 1*atext);\natext = ALPHA / DIGIT /\n \"!\" / \"#\" /\n \"$\" / \"%\" /\n \"&\" / \"'\" /\n \"*\" / \"+\" /\n \"-\" / \"/\" /\n \"=\" / \"?\" /\n \"^\" / \"_\" /\n \"`\" / \"{\" /\n \"|\" / \"}\" /\n \"~\";\n\ninteger = POS-DIGIT *DIGIT;\nalpha-numeric = ALPHA / DIGIT;\ndecimal-uchar = decimal-uchar-25x / decimal-uchar-2xx / decimal-uchar-1xx /POS-DIGIT DIGIT / DIGIT ;\ndecimal-uchar-1xx = \"1\" 2*(DIGIT);\ndecimal-uchar-2xx = \"2\" (\"0\"/\"1\"/\"2\"/\"3\"/\"4\") DIGIT;\ndecimal-uchar-25x = \"2\" \"5\" (\"0\"/\"1\"/\"2\"/\"3\"/\"4\"/\"5\");\nBIT = \"0\" / \"1\";\nCHAR = %x01-7F;\nCR = %x0D;\nCTL = %x00-1F / %x7F;\nHEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\";\nHTAB = %x09;\nLF = %x0A;\nLWSP = *(WSP / CRLF WSP);\nOCTET = %x00-FF;\nSP = %x20;\nVCHAR = %x21-7E;\nquoted-string = [CFWS] DQUOTE *([FWS] qcontent) [FWS] DQUOTE [CFWS];\nqcontent = qtext / quoted-pair;\nqtext = NO-WS-CTL / %d33 / %d35-91 / %d93-126 ;\nobs-local-part = word *(\".\" word);\nobs-domain = atom *(\".\" atom);\nobs-FWS = 1*WSP *(CRLF 1*WSP);\nobs-qp = \"\\\" (%d0-127);\nobs-text = *LF *CR *(obs-char *LF *CR);\nobs-char = %d0-9 / %d11 / %d12 / %d14-127 ;\nCFWS = *([FWS] comment) (([FWS] comment) / FWS);\nWSP = SP / HTAB ;\natom = [CFWS] 1*atext [CFWS];\nword = atom / quoted-string;\nextn-addr = non-ws-string;\nnon-ws-string = 1*(VCHAR/%x80-FF);\nbyte-string = $rule(\"org.murillo.abnf.precomp.ByteString\")\t; # 1*(%x01-09/%x0B-0C/%x0E-FF);\nCRLF = $rule(\"org.murillo.abnf.precomp.CRLF\") \t\t; # %d13.10\ntoken = $rule(\"org.murillo.abnf.precomp.Token\") \t\t; # 1*(%x21 / %x23-27 / %x2A-2B / %x2D-2E / %x30-39 / %x41-5A / %x5E-7E)\nALPHA = $rule(\"org.murillo.abnf.precomp.ALPHA\") \t\t; # %x41-5A / %x61-7A \nDIGIT = %x30-39;\nPOS-DIGIT = %x31-39;\nDQUOTE = %x22;\nEQUALS = \"=\";" }
UTF-8
ABNF
12,741
jbenner-radham
1c179b468ea264bd123eb50956763c108a213040
1ce623e501a9ca87afb4166aa58b0fa9e1ca745e
/data/abnf/version.abnf
f55db1aab6d64d3cdb97fbeee428cd978720b05a
jbenner-radham/jcard-to-vcard
{ "content": "VERSION-param = \"VALUE=text\" / any-param\nVERSION-value = \"4.0\"\n" }
UTF-8
ABNF
63
bver
0a54a8710fbcc449590ce825a29bdbcc0340d57d
6d0832b3aae9e1efe02476217a3b391990ddd0fb
/sample/pid/grammar_complete.abnf
dc090f30805a8e2915415ffeef4457f20a415b54
bver/GERET
{ "content": "\nprogram = [ \" v1 = \" expr \";\" ]\n [ \" v2 = \" expr \";\" ]\n [ \" v3 = \" expr \";\" ] \n [ \" v4 = \" expr \";\" ]\n [ \" v5 = \" expr \";\" ]\n \" y = \" expr \";\"\n\nexpr = expr op expr / \n \"(\" expr op expr \")\" /\n var\n\nop = \"+\" / \"-\" / \"/\" / \"*\"\n\nvar = constant / \"x[1]\" / \"x[2]\" / \"v1\" / \"v2\" / \"v3\" / \"v4\" / \"v5\"\n \nconstant = decimal / neg-decimal\n\ndecimal = DIGIT \".\" 1*2DIGIT\n\nneg-decimal = \"(-\" decimal \")\"\n\n\n" }
UTF-8
ABNF
458
KyleGalvin
4c9d91dd158e8b87d226a8e62ccfd2b3cf798a00
24902dfa4ed5c66407c8c6efa0aa004fe9a5d52b
/tests/abnf/03.abnf
877bb85c3fb7df5971c711edb0d73c4853a795c3
KyleGalvin/AbnfExperiments
{ "content": "rulelist = 1*( rule / (*c-wsp c-nl) )\nrule = rulename defined-as elements c-nl\n ;continues if next line starts\n ; with white space\n rulename = ALPHA *(ALPHA / DIGIT / \"-\")\n\n" }
UTF-8
ABNF
178
quantum6
2473b0bfb12f54daad478c2d6ca7707390140561
5abe089d154ae01779dcbde0fa6d4f84f2ceb059
/tinyHTTP/abnf/uri.abnf
7e4a80d64d084c45a3e33ae551d72e1aba7c343e
quantum6/doubango-quantum6
{ "content": "; FIXME:\nDQUOTE= %x22 ; \" (Double Quote)\n\n\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;\n; URI (2396) - ABNF\n;\n;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n\n;;;; 1.6. Syntax Notation and Common Elements\nalpha = lowalpha / upalpha\nlowalpha = \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\" / \"g\" / \"h\" / \"i\" / \"j\" / \"k\" / \"l\" / \"m\" / \"n\" / \"o\" / \"p\" / \"q\" / \"r\" / \"s\" / \"t\" / \"u\" / \"v\" / \"w\" / \"x\" / \"y\" / \"z\"\nupalpha = \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" / \"G\" / \"H\" / \"I\" / \"J\" / \"K\" / \"L\" / \"M\" / \"N\" / \"O\" / \"P\" / \"Q\" / \"R\" / \"S\" / \"T\" / \"U\" / \"V\" / \"W\" / \"X\" / \"Y\" / \"Z\"\ndigit = \"0\" / \"1\" / \"2\" / \"3\" / \"4\" / \"5\" / \"6\" / \"7\" / \"8\" / \"9\"\nalphanum = alpha / digit\n\n;;;; 2. URI Characters and Escape Sequences\nurlc = reserved / unreserved / escaped\n\n;;;; 2.2. Reserved Characters\nreserved = \";\" / \"/\" / \"?\" / \":\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\"\n\n;;;; 2.3. Unreserved Characters\nunreserved = alphanum / mark\nmark = \"-\" / \"_\" / \".\" / \"!\" / \"~\" / \"*\" / \"'\" / \"(\" / \")\"\n\n;;;; 2.4.1. Escaped Encoding\nescaped = \"%\" hex hex\nhex = digit / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" / \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\"\n\n\n;;;; 2.4.3. Excluded US-ASCII Characters\ncontrol = %x00-1F / %x7F ;<US-ASCII coded characters 00-1F and 7F hexadecimal>\nspace = %x20 ;<US-ASCII coded character 20 hexadecimal>\ndelims = \"<\" / \">\" / \"#\" / \"%\" / DQUOTE\nunwise = \"{\" / \"}\" / \"/\" / \"\\\" / \"^\" / \"[\" / \"]\" / \"`\"\n\n\n;;;; 3. URI Syntactic Components\nabsoluteURI = scheme \":\" ( hier-part / opaque-part )\nhier-part = ( net-path / abs-path ) [ \"?\" query ]\nnet-path = \"//\" authority [ abs-path ]\nabs-path = \"/\" path-segments\nopaque-part = urlc-no-slash *urlc\nurlc-no-slash = unreserved / escaped / \";\" / \"?\" / \":\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\"\n\n;;;; 3.1. Scheme Component\nscheme = alpha *( alpha / digit / \"+\" / \"-\" / \".\" )\n\n;;;; 3.2. Authority Component\nauthority = server / reg-name\n\n;;;; Registry-based Naming Authority\nreg-name = 1*( unreserved / escaped / \"$\" / \",\" / \";\" / \":\" / \"@\" / \"&\" / \"=\" / \"+\" )\n\n;;;; 3.2.2. Server-based Naming Authority\nserver = [ [ userinfo \"@\" ] hostport ]\nuserinfo = *( unreserved / escaped / \";\" / \":\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\" )\nhostport = host [ \":\" port ]\nhost = hostname / IPv4address\nhostname = *( domainlabel \".\" ) toplabel [ \".\" ]\ndomainlabel = alphanum / alphanum *( alphanum / \"-\" ) alphanum\ntoplabel = alpha / alpha *( alphanum / \"-\" ) alphanum\nIPv4address = 1*digit \".\" 1*digit \".\" 1*digit \".\" 1*digit\nport = *digit\n\n;;;; 3.3. Path Component\npath = [ abs-path / opaque-part ]\npath-segments = segment *( \"/\" segment )\nsegment = *pchar *( \";\" param )\nparam = *pchar\npchar = unreserved / escaped / \":\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\"\n\n;;;; 3.4. Query Component\nquery = *urlc\n\n;;;; 4. URI References\nURI-reference = [ absoluteURI / relativeURI ] [ \"#\" fragment ]\n\n\n;;;; 4.1. Fragment Identifier\nfragment = *urlc\n\n;;;; 5. Relative URI References\nrelativeURI = ( net-path / abs-path / rel-path ) [ \"?\" query ]\nrel-path = rel-segment [ abs-path ]\nrel-segment = 1*( unreserved / escaped / \";\" / \"@\" / \"&\" / \"=\" / \"+\" / \"$\" / \",\" )" }
UTF-8
ABNF
3,317
triflicacid
a6321305fce23a6983064be27e26c29a5e3cfc0d
5ac907275f3fdac9f9c9ff1857cdb84f37c9823c
/ABNF/tests/eval/load.abnf
208d7247338caf9db52787dd0902ab36835a5a42
triflicacid/cpp-abnf
{ "content": "!load <core>\n!testfile CRLF, ./ABNF/tests/eval/__load.txt" }
UTF-8
ABNF
57
watson-developer-cloud
32ce1038f817f497c54f41691e912b1e5ae79d5e
44cffb77ed744100187e949270bafbd07c415093
/speech-to-text/reference/list.abnf
6ec15b1ed0425b08007a609514a31b892c5cfcf8
watson-developer-cloud/doc-tutorial-downloads
{ "content": "#ABNF 1.0 ISO-8859-1;\nlanguage en-US;\nmode voice;\nroot $names;\n\n$names = Vasquez\n| R R Smith\n| R R Van Wagenen\n| R R Martin\n| R R Jr Gensler\n| R R Dean Iii\n| R T Pittman Iii\n| Yi Wen Tan\n| Yohannes Atlaw\n| Yon See\n| Youngjoon Lee\n;\n" }
UTF-8
ABNF
232
waratuman
2221ca298013ec7d5a00be0615f1b1af70450295
079bcc91972f81381f9ebbf8b4867cdcff5ce607
/grammars/rfc5545.abnf
36c3c0125c47fceb2771e0a66ae071a7d5ce2124
waratuman/rfc5545-rrule
{ "content": "contentline = name *(\";\" param ) \":\" value CRLF\nname = iana-token / x-name\n\niana-token = 1*(ALPHA / DIGIT / \"-\")\nx-name = \"X-\" [vendorid \"-\"] 1*(ALPHA / DIGIT / \"-\")\nvendorid = 3*(ALPHA / DIGIT)\nparam = param-name \"=\" param-value *(\",\" param-value)\nparam-name = iana-token / x-name\n\nparam-value = paramtext / quoted-string\n\nparamtext = *SAFE-CHAR\nvalue = *VALUE-CHAR\n\nquoted-string = DQUOTE *QSAFE-CHAR DQUOTE\n\nQSAFE-CHAR = WSP / %x21 / %x23-7E / NON-US-ASCII\nSAFE-CHAR = WSP / %x21 / %x23-2B / %x2D-39 / %x3C-7E\n / NON-US-ASCII\nVALUE-CHAR = WSP / %x21-7E / NON-US-ASCII\nNON-US-ASCII = UTF8-2 / UTF8-3 / UTF8-4\nCONTROL = %x00-08 / %x0A-1F / %x7F\nicalparameter = altrepparam ; Alternate text representation\n / cnparam ; Common name\n / cutypeparam ; Calendar user type\n / delfromparam ; Delegator\n / deltoparam ; Delegatee\n / dirparam ; Directory entry\n / encodingparam ; Inline encoding\n / fmttypeparam ; Format type\n / fbtypeparam ; Free/busy time type\n / languageparam ; Language for text\n / memberparam ; Group or list membership\n / partstatparam ; Participation status\n / rangeparam ; Recurrence identifier range\n / trigrelparam ; Alarm trigger relationship\n / reltypeparam ; Relationship type\n / roleparam ; Participation role\n / rsvpparam ; RSVP expectation\n / sentbyparam ; Sent by\n / tzidparam ; Reference to time zone object\n / valuetypeparam ; Property value data type\n / other-param\n\nother-param = (iana-param / x-param)\n\niana-param = iana-token \"=\" param-value *(\",\" param-value)\nx-param = x-name \"=\" param-value *(\",\" param-value)\naltrepparam = \"ALTREP\" \"=\" DQUOTE uri DQUOTE\n\ncnparam = \"CN\" \"=\" param-value\n\ncutypeparam = \"CUTYPE\" \"=\"\n (\"INDIVIDUAL\" ; An individual\n / \"GROUP\" ; A group of individuals\n / \"RESOURCE\" ; A physical resource\n / \"ROOM\" ; A room resource\n / \"UNKNOWN\" ; Otherwise not known\n / x-name ; Experimental type\n / iana-token) ; Other IANA-registered\n ; type\ndelfromparam = \"DELEGATED-FROM\" \"=\" DQUOTE cal-address\n DQUOTE *(\",\" DQUOTE cal-address DQUOTE)\n\ndeltoparam = \"DELEGATED-TO\" \"=\" DQUOTE cal-address DQUOTE\n *(\",\" DQUOTE cal-address DQUOTE)\n\ndirparam = \"DIR\" \"=\" DQUOTE uri DQUOTE\n\nencodingparam = \"ENCODING\" \"=\"\n ( \"8BIT\"\n ; \"8bit\" text encoding is defined in [RFC2045]\n / \"BASE64\"\n ; \"BASE64\" binary encoding format is defined in [RFC4648]\n )\n\nfmttypeparam = \"FMTTYPE\" \"=\" type-name \"/\" subtype-name\n ; Where \"type-name\" and \"subtype-name\" are\n ; defined in Section 4.2 of [RFC4288].\n\nfbtypeparam = \"FBTYPE\" \"=\" (\"FREE\" / \"BUSY\"\n / \"BUSY-UNAVAILABLE\" / \"BUSY-TENTATIVE\"\n / x-name\n ; Some experimental iCalendar free/busy type.\n / iana-token)\n ; Some other IANA-registered iCalendar free/busy type.\n\nlanguageparam = \"LANGUAGE\" \"=\" Language-Tag ; As defined in [RFC5646].\n\n\nmemberparam = \"MEMBER\" \"=\" DQUOTE cal-address DQUOTE\n *(\",\" DQUOTE cal-address DQUOTE)\npartstatparam = \"PARTSTAT\" \"=\"\n (partstat-event\n / partstat-todo\n / partstat-jour)\n\npartstat-event = (\"NEEDS-ACTION\" ; Event needs action\n / \"ACCEPTED\" ; Event accepted\n / \"DECLINED\" ; Event declined\n / \"TENTATIVE\" ; Event tentatively\n ; accepted\n / \"DELEGATED\" ; Event delegated\n / x-name ; Experimental status\n / iana-token) ; Other IANA-registered\n ; status\npartstat-todo = (\"NEEDS-ACTION\" ; To-do needs action\n / \"ACCEPTED\" ; To-do accepted\n / \"DECLINED\" ; To-do declined\n / \"TENTATIVE\" ; To-do tentatively\n ; accepted\n / \"DELEGATED\" ; To-do delegated\n / \"COMPLETED\" ; To-do completed\n ; COMPLETED property has\n ; DATE-TIME completed\n / \"IN-PROCESS\" ; To-do in process of\n ; being completed\n / x-name ; Experimental status\n / iana-token) ; Other IANA-registered\n ; status\npartstat-jour = (\"NEEDS-ACTION\" ; Journal needs action\n / \"ACCEPTED\" ; Journal accepted\n / \"DECLINED\" ; Journal declined\n / x-name ; Experimental status\n / iana-token) ; Other IANA-registered\n ; status\nrangeparam = \"RANGE\" \"=\" \"THISANDFUTURE\"\ntrigrelparam = \"RELATED\" \"=\"\n (\"START\" ; Trigger off of start\n / \"END\") ; Trigger off of end\n\nreltypeparam = \"RELTYPE\" \"=\"\n (\"PARENT\" ; Parent relationship - Default\n / \"CHILD\" ; Child relationship\n / \"SIBLING\" ; Sibling relationship\n / iana-token ; Some other IANA-registered\n ; iCalendar relationship type\n / x-name) ; A non-standard, experimental\n ; relationship type\n\nroleparam = \"ROLE\" \"=\"\n (\"CHAIR\" ; Indicates chair of the\n ; calendar entity\n / \"REQ-PARTICIPANT\" ; Indicates a participant whose\n ; participation is required\n / \"OPT-PARTICIPANT\" ; Indicates a participant whose\n ; participation is optional\n / \"NON-PARTICIPANT\" ; Indicates a participant who\n ; is copied for information\n ; purposes only\n / x-name ; Experimental role\n / iana-token) ; Other IANA role\nrsvpparam = \"RSVP\" \"=\" (\"TRUE\" / \"FALSE\")\nsentbyparam = \"SENT-BY\" \"=\" DQUOTE cal-address DQUOTE\n\ntzidparam = \"TZID\" \"=\" [tzidprefix] paramtext\n\ntzidprefix = \"/\"\n\nvaluetypeparam = \"VALUE\" \"=\" valuetype\n\nvaluetype = (\"BINARY\"\n / \"BOOLEAN\"\n / \"CAL-ADDRESS\"\n / \"DATE\"\n / \"DATE-TIME\"\n / \"DURATION\"\n / \"FLOAT\"\n / \"INTEGER\"\n / \"PERIOD\"\n / \"RECUR\"\n / \"TEXT\"\n / \"TIME\"\n / \"URI\"\n / \"UTC-OFFSET\"\n / x-name\n ; Some experimental iCalendar value type.\n / iana-token)\n ; Some other IANA-registered iCalendar value type.\n\nbinary = *(4b-char) [b-end]\nb-end = (2b-char \"==\") / (3b-char \"=\")\n\nb-char = ALPHA / DIGIT / \"+\" / \"/\"\n\nboolean = \"TRUE\" / \"FALSE\"\n\ncal-address = uri\n\ndate = date-value\n\ndate-value = date-fullyear date-month date-mday\ndate-fullyear = 4DIGIT\ndate-month = 2DIGIT ;01-12\ndate-mday = 2DIGIT ;01-28, 01-29, 01-30, 01-31\n ;based on month/year\n\ndate-time = date \"T\" time ; As specified in the DATE and TIME\n ; value definitions\n\ndur-value = ([\"+\"] / \"-\") \"P\" (dur-date / dur-time / dur-week)\n\ndur-date = dur-day [dur-time]\ndur-time = \"T\" (dur-hour / dur-minute / dur-second)\ndur-week = 1*DIGIT \"W\"\ndur-hour = 1*DIGIT \"H\" [dur-minute]\ndur-minute = 1*DIGIT \"M\" [dur-second]\ndur-second = 1*DIGIT \"S\"\ndur-day = 1*DIGIT \"D\"\n\nfloat = ([\"+\"] / \"-\") 1*DIGIT [\".\" 1*DIGIT]\n\ninteger = ([\"+\"] / \"-\") 1*DIGIT\n\nperiod = period-explicit / period-start\n\nperiod-explicit = date-time \"/\" date-time\nperiod-start = date-time \"/\" dur-value\nrecur = recur-rule-part *( \";\" recur-rule-part )\n ;\n ; The rule parts are not ordered in any\n ; particular sequence.\n ;\n ; The FREQ rule part is REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n ; The UNTIL or COUNT rule parts are OPTIONAL,\n ; but they MUST NOT occur in the same 'recur'.\n ;\n ; The other rule parts are OPTIONAL,\n ; but MUST NOT occur more than once.\n\nrecur-rule-part = ( \"FREQ\" \"=\" freq )\n / ( \"UNTIL\" \"=\" enddate )\n / ( \"COUNT\" \"=\" 1*DIGIT )\n / ( \"INTERVAL\" \"=\" 1*DIGIT )\n / ( \"BYSECOND\" \"=\" byseclist )\n / ( \"BYMINUTE\" \"=\" byminlist )\n / ( \"BYHOUR\" \"=\" byhrlist )\n / ( \"BYDAY\" \"=\" bywdaylist )\n / ( \"BYMONTHDAY\" \"=\" bymodaylist )\n / ( \"BYYEARDAY\" \"=\" byyrdaylist )\n / ( \"BYWEEKNO\" \"=\" bywknolist )\n / ( \"BYMONTH\" \"=\" bymolist )\n / ( \"BYSETPOS\" \"=\" bysplist )\n / ( \"WKST\" \"=\" weekday )\n\nfreq = \"SECONDLY\" / \"MINUTELY\" / \"HOURLY\" / \"DAILY\"\n / \"WEEKLY\" / \"MONTHLY\" / \"YEARLY\"\n\nenddate = date / date-time\n\nbyseclist = ( seconds *(\",\" seconds) )\n\nseconds = 1*2DIGIT ;0 to 60\n\nbyminlist = ( minutes *(\",\" minutes) )\n\nminutes = 1*2DIGIT ;0 to 59\n\nbyhrlist = ( hour *(\",\" hour) )\n\nhour = 1*2DIGIT ;0 to 23\n\nbywdaylist = ( weekdaynum *(\",\" weekdaynum) )\n\nweekdaynum = [[plus / minus] ordwk] weekday\n\nplus = \"+\"\n\nminus = \"-\"\n\nordwk = 1*2DIGIT ;1 to 53\n\nweekday = \"SU\" / \"MO\" / \"TU\" / \"WE\" / \"TH\" / \"FR\" / \"SA\"\nbymodaylist = ( monthdaynum *(\",\" monthdaynum) )\n\nmonthdaynum = [plus / minus] ordmoday\n\nordmoday = 1*2DIGIT ;1 to 31\n\nbyyrdaylist = ( yeardaynum *(\",\" yeardaynum) )\n\nyeardaynum = [plus / minus] ordyrday\n\nordyrday = 1*3DIGIT ;1 to 366\n\nbywknolist = ( weeknum *(\",\" weeknum) )\n\nweeknum = [plus / minus] ordwk\n\nbymolist = ( monthnum *(\",\" monthnum) )\n\nmonthnum = 1*2DIGIT ;1 to 12\n\nbysplist = ( setposday *(\",\" setposday) )\n\nsetposday = yeardaynum\n\ntext = *(TSAFE-CHAR / \":\" / DQUOTE / ESCAPED-CHAR)\n ; Folded according to description above\n\nESCAPED-CHAR = (\"\\\\\" / \"\\;\" / \"\\,\" / \"\\N\" / \"\\n\")\n ; \\\\ encodes \\, \\N or \\n encodes newline\n ; \\; encodes ;, \\, encodes ,\n\nTSAFE-CHAR = WSP / %x21 / %x23-2B / %x2D-39 / %x3C-5B /\n %x5D-7E / NON-US-ASCII\n ; Any character except CONTROLs not needed by the current\n ; character set, DQUOTE, \";\", \":\", \"\\\", \",\"\n\ntime = time-hour time-minute time-second [time-utc]\n\ntime-hour = 2DIGIT ;00-23\ntime-minute = 2DIGIT ;00-59\ntime-second = 2DIGIT ;00-60\ntime-utc = \"Z\"\n\n; uri = <As defined in Section 3 of [RFC3986]>\n\nutc-offset = time-numzone\n\ntime-numzone = (\"+\" / \"-\") time-hour time-minute [time-second]\n\nicalstream = 1*icalobject\n\nicalobject = \"BEGIN\" \":\" \"VCALENDAR\" CRLF\n icalbody\n \"END\" \":\" \"VCALENDAR\" CRLF\n\nicalbody = calprops component\n\ncalprops = *(\n ;\n ; The following are REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n prodid / version /\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n calscale / method /\n ;\n ; The following are OPTIONAL,\n ; and MAY occur more than once.\n ;\n x-prop / iana-prop\n ;\n )\n\ncomponent = 1*(eventc / todoc / journalc / freebusyc /\n timezonec / iana-comp / x-comp)\n\niana-comp = \"BEGIN\" \":\" iana-token CRLF\n 1*contentline\n \"END\" \":\" iana-token CRLF\n\nx-comp = \"BEGIN\" \":\" x-name CRLF\n 1*contentline\n \"END\" \":\" x-name CRLF\n\neventc = \"BEGIN\" \":\" \"VEVENT\" CRLF\n eventprop *alarmc\n \"END\" \":\" \"VEVENT\" CRLF\n\neventprop = *(\n ;\n ; The following are REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n dtstamp / uid /\n ;\n ; The following is REQUIRED if the component\n ; appears in an iCalendar object that doesn't\n ; specify the \"METHOD\" property; otherwise, it\n ; is OPTIONAL; in any case, it MUST NOT occur\n ; more than once.\n ;\n dtstart /\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n class / created / description / geo /\n last-mod / location / organizer / priority /\n seq / status / summary / transp /\n url / recurid /\n ;\n ; The following is OPTIONAL,\n ; but SHOULD NOT occur more than once.\n ;\n rrule /\n ;\n ; Either 'dtend' or 'duration' MAY appear in\n ; a 'eventprop', but 'dtend' and 'duration'\n ; MUST NOT occur in the same 'eventprop'.\n ;\n dtend / duration /\n ;\n ; The following are OPTIONAL,\n ; and MAY occur more than once.\n ;\n attach / attendee / categories / comment /\n contact / exdate / rstatus / related /\n resources / rdate / x-prop / iana-prop\n ;\n )\n\ntodoc = \"BEGIN\" \":\" \"VTODO\" CRLF\n todoprop *alarmc\n \"END\" \":\" \"VTODO\" CRLF\n\ntodoprop = *(\n ;\n ; The following are REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n dtstamp / uid /\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n class / completed / created / description /\n dtstart / geo / last-mod / location / organizer /\n percent / priority / recurid / seq / status /\n summary / url /\n ;\n ; The following is OPTIONAL,\n ; but SHOULD NOT occur more than once.\n ;\n rrule /\n ;\n ; Either 'due' or 'duration' MAY appear in\n ; a 'todoprop', but 'due' and 'duration'\n ; MUST NOT occur in the same 'todoprop'.\n ; If 'duration' appear in a 'todoprop',\n ; then 'dtstart' MUST also appear in\n ; the same 'todoprop'.\n ;\n due / duration /\n ;\n ; The following are OPTIONAL,\n ; and MAY occur more than once.\n ;\n attach / attendee / categories / comment / contact /\n exdate / rstatus / related / resources /\n rdate / x-prop / iana-prop\n ;\n )\n\njournalc = \"BEGIN\" \":\" \"VJOURNAL\" CRLF\n jourprop\n \"END\" \":\" \"VJOURNAL\" CRLF\n\njourprop = *(\n ;\n ; The following are REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n dtstamp / uid /\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n class / created / dtstart /\n last-mod / organizer / recurid / seq /\n status / summary / url /\n ;\n ; The following is OPTIONAL,\n ; but SHOULD NOT occur more than once.\n ;\n rrule /\n ;\n ; The following are OPTIONAL,\n ; and MAY occur more than once.\n ;\n attach / attendee / categories / comment /\n contact / description / exdate / related / rdate /\n rstatus / x-prop / iana-prop\n ;\n )\n\nfreebusyc = \"BEGIN\" \":\" \"VFREEBUSY\" CRLF\n fbprop\n \"END\" \":\" \"VFREEBUSY\" CRLF\n\nfbprop = *(\n ;\n ; The following are REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n dtstamp / uid /\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n contact / dtstart / dtend /\n organizer / url /\n ;\n ; The following are OPTIONAL,\n ; and MAY occur more than once.\n ;\n attendee / comment / freebusy / rstatus / x-prop /\n iana-prop\n ;\n )\n\ntimezonec = \"BEGIN\" \":\" \"VTIMEZONE\" CRLF\n *(\n ;\n ; 'tzid' is REQUIRED, but MUST NOT occur more\n ; than once.\n ;\n tzid /\n ;\n ; 'last-mod' and 'tzurl' are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n last-mod / tzurl /\n ;\n ; One of 'standardc' or 'daylightc' MUST occur\n ; and each MAY occur more than once.\n ;\n standardc / daylightc /\n ;\n ; The following are OPTIONAL,\n ; and MAY occur more than once.\n ;\n x-prop / iana-prop\n ;\n )\n \"END\" \":\" \"VTIMEZONE\" CRLF\n\nstandardc = \"BEGIN\" \":\" \"STANDARD\" CRLF\n tzprop\n \"END\" \":\" \"STANDARD\" CRLF\n\ndaylightc = \"BEGIN\" \":\" \"DAYLIGHT\" CRLF\n tzprop\n \"END\" \":\" \"DAYLIGHT\" CRLF\n\ntzprop = *(\n ;\n ; The following are REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n dtstart / tzoffsetto / tzoffsetfrom /\n ;\n ; The following is OPTIONAL,\n ; but SHOULD NOT occur more than once.\n ;\n rrule /\n ;\n ; The following are OPTIONAL,\n ; and MAY occur more than once.\n ;\n comment / rdate / tzname / x-prop / iana-prop\n ;\n )\n\nalarmc = \"BEGIN\" \":\" \"VALARM\" CRLF\n (audioprop / dispprop / emailprop)\n \"END\" \":\" \"VALARM\" CRLF\n\naudioprop = *(\n ;\n ; 'action' and 'trigger' are both REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n action / trigger /\n ;\n ; 'duration' and 'repeat' are both OPTIONAL,\n ; and MUST NOT occur more than once each;\n ; but if one occurs, so MUST the other.\n ;\n duration / repeat /\n ;\n ; The following is OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n attach /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n x-prop / iana-prop\n ;\n )\n\ndispprop = *(\n ;\n ; The following are REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n action / description / trigger /\n ;\n ; 'duration' and 'repeat' are both OPTIONAL,\n ; and MUST NOT occur more than once each;\n ; but if one occurs, so MUST the other.\n ;\n duration / repeat /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n x-prop / iana-prop\n ;\n )\n\nemailprop = *(\n ;\n ; The following are all REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n action / description / trigger / summary /\n ;\n ; The following is REQUIRED,\n ; and MAY occur more than once.\n ;\n attendee /\n ;\n ; 'duration' and 'repeat' are both OPTIONAL,\n ; and MUST NOT occur more than once each;\n ; but if one occurs, so MUST the other.\n ;\n duration / repeat /\n ;\n ; The following are OPTIONAL,\n ; and MAY occur more than once.\n ;\n attach / x-prop / iana-prop\n ;\n )\n\ncalscale = \"CALSCALE\" calparam \":\" calvalue CRLF\n\ncalparam = *(\";\" other-param)\n\ncalvalue = \"GREGORIAN\"\n\nmethod = \"METHOD\" metparam \":\" metvalue CRLF\n\nmetparam = *(\";\" other-param)\n\nmetvalue = iana-token\n\nprodid = \"PRODID\" pidparam \":\" pidvalue CRLF\n\npidparam = *(\";\" other-param)\npidvalue = text\nversion = \"VERSION\" verparam \":\" vervalue CRLF\n\nverparam = *(\";\" other-param)\n\nvervalue = \"2.0\"\n; / maxver\n; / (minver \";\" maxver)\n\n; minver = <A IANA-registered iCalendar version identifier>\n; maxver = <A IANA-registered iCalendar version identifier>\n\nattach = \"ATTACH\" attachparam ( \":\" uri ) /\n (\n \";\" \"ENCODING\" \"=\" \"BASE64\"\n \";\" \"VALUE\" \"=\" \"BINARY\"\n \":\" binary\n )\n CRLF\n\nattachparam = *(\n ;\n ; The following is OPTIONAL for a URI value,\n ; RECOMMENDED for a BINARY value,\n ; and MUST NOT occur more than once.\n ;\n (\";\" fmttypeparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\ncategories = \"CATEGORIES\" catparam \":\" text *(\",\" text)\n CRLF\n\ncatparam = *(\n ;\n ; The following is OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" languageparam ) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\nclass = \"CLASS\" classparam \":\" classvalue CRLF\n\nclassparam = *(\";\" other-param)\n\nclassvalue = \"PUBLIC\" / \"PRIVATE\" / \"CONFIDENTIAL\" / iana-token\n / x-name\ncomment = \"COMMENT\" commparam \":\" text CRLF\n\ncommparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" altrepparam) / (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\ndescription = \"DESCRIPTION\" descparam \":\" text CRLF\n\ndescparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" altrepparam) / (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\n; decimal = degrees + minutes/60 + seconds/3600.\n\ngeo = \"GEO\" geoparam \":\" geovalue CRLF\n\ngeoparam = *(\";\" other-param)\n\ngeovalue = float \";\" float\nlocation = \"LOCATION\" locparam \":\" text CRLF\n\nlocparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" altrepparam) / (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\npercent = \"PERCENT-COMPLETE\" pctparam \":\" integer CRLF\n\npctparam = *(\";\" other-param)\n\npriority = \"PRIORITY\" prioparam \":\" priovalue CRLF\nprioparam = *(\";\" other-param)\n\npriovalue = integer ;Must be in the range [0..9]\n ; All other values are reserved for future use.\n\nresources = \"RESOURCES\" resrcparam \":\" text *(\",\" text) CRLF\n\nresrcparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" altrepparam) / (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\nstatus = \"STATUS\" statparam \":\" statvalue CRLF\n\nstatparam = *(\";\" other-param)\n\nstatvalue = (statvalue-event\n / statvalue-todo\n / statvalue-jour)\n\nstatvalue-event = \"TENTATIVE\" ;Indicates event is tentative.\n / \"CONFIRMED\" ;Indicates event is definite.\n / \"CANCELLED\" ;Indicates event was cancelled.\nstatvalue-todo = \"NEEDS-ACTION\" ;Indicates to-do needs action.\n / \"COMPLETED\" ;Indicates to-do completed.\n / \"IN-PROCESS\" ;Indicates to-do in process of.\n / \"CANCELLED\" ;Indicates to-do was cancelled.\nstatvalue-jour = \"DRAFT\" ;Indicates journal is draft.\n / \"FINAL\" ;Indicates journal is final.\n / \"CANCELLED\" ;Indicates journal is removed.\nsummary = \"SUMMARY\" summparam \":\" text CRLF\n\nsummparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" altrepparam) / (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\ncompleted = \"COMPLETED\" compparam \":\" date-time CRLF\n\ncompparam = *(\";\" other-param)\n\ndtend = \"DTEND\" dtendparam \":\" dtendval CRLF\n\ndtendparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" \"VALUE\" \"=\" (\"DATE-TIME\" / \"DATE\")) /\n (\";\" tzidparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\ndtendval = date-time / date\ndue = \"DUE\" dueparam \":\" dueval CRLF\n\ndueparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" \"VALUE\" \"=\" (\"DATE-TIME\" / \"DATE\")) /\n (\";\" tzidparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\ndueval = date-time / date\ndtstart = \"DTSTART\" dtstparam \":\" dtstval CRLF\n\ndtstparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" \"VALUE\" \"=\" (\"DATE-TIME\" / \"DATE\")) /\n (\";\" tzidparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\ndtstval = date-time / date\nduration = \"DURATION\" durparam \":\" dur-value CRLF\n ;consisting of a positive duration of time.\n\ndurparam = *(\";\" other-param)\n\nfreebusy = \"FREEBUSY\" fbparam \":\" fbvalue CRLF\n\nfbparam = *(\n ;\n ; The following is OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" fbtypeparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\nfbvalue = period *(\",\" period)\ntransp = \"TRANSP\" transparam \":\" transvalue CRLF\n\ntransparam = *(\";\" other-param)\n\ntransvalue = \"OPAQUE\"\n ;Blocks or opaque on busy time searches.\n / \"TRANSPARENT\"\n ;Transparent on busy time searches.\ntzid = \"TZID\" tzidpropparam \":\" [tzidprefix] text CRLF\n\ntzidpropparam = *(\";\" other-param)\n\ntzname = \"TZNAME\" tznparam \":\" text CRLF\n\ntznparam = *(\n ;\n ; The following is OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\ntzoffsetfrom = \"TZOFFSETFROM\" frmparam \":\" utc-offset\n CRLF\n\nfrmparam = *(\";\" other-param)\n\ntzoffsetto = \"TZOFFSETTO\" toparam \":\" utc-offset CRLF\n\ntoparam = *(\";\" other-param)\ntzurl = \"TZURL\" tzurlparam \":\" uri CRLF\n\ntzurlparam = *(\";\" other-param)\n\nattendee = \"ATTENDEE\" attparam \":\" cal-address CRLF\n\nattparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" cutypeparam) / (\";\" memberparam) /\n (\";\" roleparam) / (\";\" partstatparam) /\n (\";\" rsvpparam) / (\";\" deltoparam) /\n (\";\" delfromparam) / (\";\" sentbyparam) /\n (\";\" cnparam) / (\";\" dirparam) /\n (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\ncontact = \"CONTACT\" contparam \":\" text CRLF\n\ncontparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" altrepparam) / (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\norganizer = \"ORGANIZER\" orgparam \":\"\n cal-address CRLF\n\norgparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" cnparam) / (\";\" dirparam) / (\";\" sentbyparam) /\n (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\nrecurid = \"RECURRENCE-ID\" ridparam \":\" ridval CRLF\n\nridparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" \"VALUE\" \"=\" (\"DATE-TIME\" / \"DATE\")) /\n (\";\" tzidparam) / (\";\" rangeparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\nridval = date-time / date\nrelated = \"RELATED-TO\" relparam \":\" text CRLF\n\nrelparam = *(\n ;\n ; The following is OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" reltypeparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\nurl = \"URL\" urlparam \":\" uri CRLF\n\nurlparam = *(\";\" other-param)\n\nuid = \"UID\" uidparam \":\" text CRLF\n\nuidparam = *(\";\" other-param)\n\nexdate = \"EXDATE\" exdtparam \":\" exdtval *(\",\" exdtval) CRLF\n\nexdtparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" \"VALUE\" \"=\" (\"DATE-TIME\" / \"DATE\")) /\n ;\n (\";\" tzidparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\nexdtval = date-time / date\nrdate = \"RDATE\" rdtparam \":\" rdtval *(\",\" rdtval) CRLF\n\nrdtparam = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" \"VALUE\" \"=\" (\"DATE-TIME\" / \"DATE\" / \"PERIOD\")) /\n (\";\" tzidparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\nrdtval = date-time / date / period\nrrule = \"RRULE\" rrulparam \":\" recur CRLF\n\nrrulparam = *(\";\" other-param)\n\naction = \"ACTION\" actionparam \":\" actionvalue CRLF\n\nactionparam = *(\";\" other-param)\n\n\nactionvalue = \"AUDIO\" / \"DISPLAY\" / \"EMAIL\"\n / iana-token / x-name\n\nrepeat = \"REPEAT\" repparam \":\" integer CRLF\nrepparam = *(\";\" other-param)\n\ntrigger = \"TRIGGER\" (trigrel / trigabs) CRLF\n\ntrigrel = *(\n ;\n ; The following are OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" \"VALUE\" \"=\" \"DURATION\") /\n (\";\" trigrelparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n ) \":\" dur-value\n\ntrigabs = *(\n ;\n ; The following is REQUIRED,\n ; but MUST NOT occur more than once.\n ;\n (\";\" \"VALUE\" \"=\" \"DATE-TIME\") /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n ) \":\" date-time\n\ncreated = \"CREATED\" creaparam \":\" date-time CRLF\n\ncreaparam = *(\";\" other-param)\n\ndtstamp = \"DTSTAMP\" stmparam \":\" date-time CRLF\n\nstmparam = *(\";\" other-param)\nlast-mod = \"LAST-MODIFIED\" lstparam \":\" date-time CRLF\n\nlstparam = *(\";\" other-param)\n\nseq = \"SEQUENCE\" seqparam \":\" integer CRLF\nseqparam = *(\";\" other-param)\n\niana-prop = iana-token *(\";\" icalparameter) \":\" value CRLF\n\nx-prop = x-name *(\";\" icalparameter) \":\" value CRLF\n\nrstatus = \"REQUEST-STATUS\" rstatparam \":\"\n statcode \";\" statdesc [\";\" extdata]\n\nrstatparam = *(\n ;\n ; The following is OPTIONAL,\n ; but MUST NOT occur more than once.\n ;\n (\";\" languageparam) /\n ;\n ; The following is OPTIONAL,\n ; and MAY occur more than once.\n ;\n (\";\" other-param)\n ;\n )\n\nstatcode = 1*DIGIT 1*2(\".\" 1*DIGIT)\nstatdesc = text\nextdata = text\n" }
UTF-8
ABNF
39,179
MagicBowen
3ed0558e6c784c51b95c193e8bb60f89de1b139e
0b78652c1aa1f2fb550816bcdb8ca627395f4fb7
/lucknumber.abnf
2439f27dec1fbcfeb0f867e7245e7d6a2ed18ede
MagicBowen/dingdong
{ "content": "#ABNF 1.0 UTF-8;\nbusiness lucky_number;\n#include \"pre_word.lst\"\nroot main;\n#ABNF HEAD-END;\n\n\n//业务唤醒前缀词\n$pre_word = ($u_LST_pre_word);\n\n$l_bizname{bizname} = 幸运数字|幸运数;\n\n/*业务唤醒,唤醒业务方式如下,\n\t1、前缀词+业务唤醒词;\n\t2、前缀词+业务唤醒词+用户意图;\n\t3、进入业务流程后,之后用户可以直接交互,不需要加业务唤醒词\n*/\n\n$search = 查|问|看|查查|问问|看看|查看|查下|查一下|看下|看一下|报一下|播报|播报下|播报一下;\n$my = 我[的];\n$current = (当前|现在|目前|这会|最近|今天)[的];\n$my_current=($my$current)|($current$my)|$my|$current;\n$search_my_lucknumber = $search[$my_current]$l_bizname;\n\n$c_bizname = [$pre_word]$l_bizname;\n$any_words{noise} = $_ti_ch_<1-30>;\n\n$main{biz: lucky_number}=($_ti_ch_<3->($c_bizname|$search_my_lucknumber)$_ti_ch_<5->)|$any_words;" }
UTF-8
ABNF
897
dirkz
24d35abf63a79b592ef9d28c928cd2006c8432d4
f3bc02ad5400b823656874afb54e3d4863c1048b
/abnfs/ServerResponse.abnf
aad638e406079577ad3e280a8c773dc7b0f471aa
dirkz/haskell-abnf-parser
{ "content": "response = *(continue-req / response-data) response-done\n\nresponse-data = \"*\" SP (resp-cond-state / resp-cond-bye /\n mailbox-data / message-data / capability-data) CRLF\n\nresponse-done = response-tagged / response-fatal\n\nresponse-fatal = \"*\" SP resp-cond-bye CRLF\n ; Server closes connection immediately\n\nresponse-tagged = tag SP resp-cond-state CRLF\n\nresp-cond-auth = (\"OK\" / \"PREAUTH\") SP resp-text\n ; Authentication condition\n\nresp-cond-bye = \"BYE\" SP resp-text\n\nresp-cond-state = (\"OK\" / \"NO\" / \"BAD\") SP resp-text\n ; Status condition\n\nresp-specials = \"]\"\n\nresp-text = [\"[\" resp-text-code \"]\" SP] text\n\nresp-text-code = \"ALERT\" /\n \"BADCHARSET\" [SP \"(\" astring *(SP astring) \")\" ] /\n capability-data / \"PARSE\" /\n \"PERMANENTFLAGS\" SP \"(\"\n [flag-perm *(SP flag-perm)] \")\" /\n \"READ-ONLY\" / \"READ-WRITE\" / \"TRYCREATE\" /\n \"UIDNEXT\" SP nz-number / \"UIDVALIDITY\" SP nz-number /\n \"UNSEEN\" SP nz-number /\n atom [SP 1*non-bracket-close-text-char]\n\nnon-bracket-close-text-char = %d32-92 / %d94-126\n\natom = 1*ATOM-CHAR\n\nATOM-CHAR = ; <any CHAR except atom-specials>\n \"!\" / \"#\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\" / \"+\" / \",\" / \"-\" / \".\" / \"/\" / \"0\" / \"1\" / \"2\" / \"3\" / \"4\" / \"5\" / \"6\" / \"7\" / \"8\" / \"9\" / \":\" / \";\" / \"<\" / \"=\" / \">\" / \"?\" / \"@\" / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" / \"G\" / \"H\" / \"I\" / \"J\" / \"K\" / \"L\" / \"M\" / \"N\" / \"O\" / \"P\" / \"Q\" / \"R\" / \"S\" / \"T\" / \"U\" / \"V\" / \"W\" / \"X\" / \"Y\" / \"Z\" / \"[\" / \"^\" / \"_\" / \"`\" / \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\" / \"g\" / \"h\" / \"i\" / \"j\" / \"k\" / \"l\" / \"m\" / \"n\" / \"o\" / \"p\" / \"q\" / \"r\" / \"s\" / \"t\" / \"u\" / \"v\" / \"w\" / \"x\" / \"y\" / \"z\" / \"{\" / \"|\" / \"}\" / \"~\"\n\natom-specials = \"(\" / \")\" / \"{\" / SP / CTL / list-wildcards /\n quoted-specials / resp-specials\n\nlist-wildcards = \"%\" / \"*\"\n\nquoted-specials = DQUOTE / \"\\\"\n\ntag = ; 1*<any ASTRING-CHAR except \"+\">\n 1*(\"!\" / \"#\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\" / \",\" / \"-\" / \".\" / \"/\" / \"0\" / \"1\" / \"2\" / \"3\" / \"4\" / \"5\" / \"6\" / \"7\" / \"8\" / \"9\" / \":\" / \";\" / \"<\" / \"=\" / \">\" / \"?\" / \"@\" / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" / \"G\" / \"H\" / \"I\" / \"J\" / \"K\" / \"L\" / \"M\" / \"N\" / \"O\" / \"P\" / \"Q\" / \"R\" / \"S\" / \"T\" / \"U\" / \"V\" / \"W\" / \"X\" / \"Y\" / \"Z\" / \"[\" / \"^\" / \"_\" / \"`\" / \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\" / \"g\" / \"h\" / \"i\" / \"j\" / \"k\" / \"l\" / \"m\" / \"n\" / \"o\" / \"p\" / \"q\" / \"r\" / \"s\" / \"t\" / \"u\" /\n \"v\" / \"w\" / \"x\" / \"y\" / \"z\" / \"{\" / \"|\" / \"}\" / \"~\" /\n \"]\")\n\nmailbox-data = \"FLAGS\" SP flag-list / \"LIST\" SP mailbox-list /\n \"LSUB\" SP mailbox-list / \"SEARCH\" *(SP nz-number) /\n \"STATUS\" SP mailbox SP \"(\" [status-att-list] \")\" /\n number SP \"EXISTS\" / number SP \"RECENT\"\n\nmailbox-list = \"(\" [mbx-list-flags] \")\" SP\n (DQUOTE QUOTED-CHAR DQUOTE / nil) SP mailbox\n\nmbx-list-flags = *(mbx-list-oflag SP) mbx-list-sflag\n *(SP mbx-list-oflag) /\n mbx-list-oflag *(SP mbx-list-oflag)\n\nmbx-list-oflag = \"\\Noinferiors\" / flag-extension\n ; Other flags; multiple possible per LIST response\n\nmbx-list-sflag = \"\\Noselect\" / \"\\Marked\" / \"\\Unmarked\"\n ; Selectability flags; only one per LIST response\n\n" }
UTF-8
ABNF
3,455
gknowles
7dfe0575b8b6aa1cc95a670d3da4ec5ad56c41bf
70285a5f8aabcfbb5a06c64fd5711ef30cc06b4b
/libs/carbon/carbon.abnf
3476275afb3c63ccd418845ac0f13f914c61bc1d
gknowles/tismet
{ "content": "; Copyright Glen Knowles 2017 - 2018.\n; Distributed under the Boost Software License, Version 1.0.\n;\n; carbon.abnf - tismet carbon\n;\n; rules to parse carbon\n%root = metric\n%api.prefix = Carbon\n%api.parser.file.h = carbonparseint.h\n%api.base.file.h = carbonparsebaseint.h\n\nmetriclist = 1*metric\nmetric = path SP value SP timestamp [CR] LF { End }\n\nx = path SP value SP timestamp *(SP option) [CR] LF { End }\noption = opt-name \"=\" opt-value\n\n; Path\npath = 1*path-chars { Start+, End+ }\npath-chars = ALPHA / DIGIT\n / \"!\" / DQUOTE / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" ; \"(\" / \")\" / \"*\"\n / \"+\" ; \",\"\n / \"-\" / \".\" ; \"/\"\n / \":\" / \";\" / \"<\" / \"=\" / \">\" / \"?\"\n / \"@\" ; \"[\"\n / \"\\\" ; \"]\"\n / \"^\" / \"_\"\n / \"`\" ; \"{\" / \"|\" / \"}\"\n / \"~\"\n\n; Timestamp\ntimestamp = now / timepoint\nnow = \"-1\" { End }\ntimepoint = 1*DIGIT { Char+ }\n\n; Value\nvalue = int [frac] [exp]\ndecimal-point = \".\"\ndigit1-9 = %x31-39 ; 1-9\ne = \"e\" ; e E\nexp = e [exp-minus / exp-plus] exp-num\nexp-minus = \"-\" { End }\nexp-plus = \"+\"\nexp-num = 1*DIGIT { Char+ }\nfrac = decimal-point frac-num\nfrac-num = 1*DIGIT { Char+ }\nint = [int-minus] int-num\nint-minus = \"-\" { End }\nint-num = zero / digit1-9 *DIGIT { Char+ }\nzero = \"0\"\n" }
UTF-8
ABNF
1,389
web-projects
54cf30524295af7bf787146d2a2e973f419a82b3
ea416f4242506d6aeeaace5c60756d7b17d77a10
/AccuStudioExecutables/RuleLib/TELib/Template3.abnf
c6369a538724b5a06ce13668308daf70474da31a
web-projects/AccuStudio
{ "content": "// Handle a Screen with a list of options that are scrolled to and selected with <Enter>\n// Dialog Grammar: |DialogName|\n//\n\n#include \"|AppName|_res.h\"\n#include \"vkeys.h\"\n\n#start <|DialogName|>\n\n<|DialogName|> = \n\n <selection> => NAVIGATE(0, <selection>)+DEPRESS(VK_ENTER);\t// Go to indicated line\n\n\n<selection> = #(\t\n\t\t\toption 1 \t\t\t\t= 1 , \t\t//Line number on the screen for each option\n\t\t option 2\t\t\t\t= 2,\n\t\t\tsign off \t\t\t\t= 3,\n\t\t\tlog off \t\t\t\t= 3\t\t\t\n\t\t );\n\n" }
UTF-8
ABNF
458
xldenis
42510af13f65fbd204525bdb63725a3feb9842aa
7faa078218688cc8155a48db893a9369d32f26b8
/test/grammars/postal.abnf
5a2e1c4b5e0a0576587bcea4ae3b7ffcf436f012
xldenis/abnf-gen
{ "content": "postal-address = name-part street zip-part\n\nname-part = *(personal-part SP) last-name [SP suffix] CRLF\nname-part =/ personal-part CRLF\n\npersonal-part = first-name / (initial \".\")\nfirst-name = *ALPHA\ninitial = ALPHA\nlast-name = *ALPHA\nsuffix = (\"Jr.\" / \"Sr.\" / 1*(\"I\" / \"V\" / \"X\"))\n\nstreet = [apt SP] house-num SP street-name CRLF\napt = 1*4DIGIT\nhouse-num = 1*8(DIGIT / ALPHA)\nstreet-name = 1*VCHAR\n\nzip-part = town-name \",\" SP state 1*2SP zip-code CRLF\ntown-name = 1*(ALPHA / SP)\nstate = 2ALPHA\nzip-code = 5DIGIT [\"-\" 4DIGIT]\n\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n\nDIGIT = %x30-39 ; 0-9\nCRLF = CR LF; Internet standard newline\nSP = %x20\nCR = %x0D\nLF = %x0A\nVCHAR = %x21-7E\n" }
UTF-8
ABNF
876
Macecaski
3b2348e7af57905797ee550b8cf79a6cd0b3484c
af04c0933e0f1976b831b9e52bf9edd04f25c158
/grammars/godziny.abnf
02de34eeeb000cb95f61adaa83d83f4e6406ad99
Macecaski/projektTMy3
{ "content": "#ABNF 1.0;\r\nlanguage pl-pl;\r\nmode voice;\r\nroot $root;\r\ntag-format <semantics/1.0-literals>;\r\n\r\n$root = $godzina | ($godzina $minuta) | ($godzina $minuta $minuta) | ($godzina $godzina) | ($godzina $godzina $minuta) | ($godzina $godzina $minuta $minuta) | ($minuta $po $godzina) | ($minuta $minuta $po $godzina) | ($minuta $po $godzina $godzina) | ($minuta $minuta $po $godzina $godzina) | ($wpółdo $godz1) | ($wpółdo $godzina $godz1) | ($godz2 $po $południu) | ($godz2 $minuta $po $południu) | ($godz2 $minuta $minuta $po $południu) | ($za $minuta $godz1) | ($za $minuta $godzina $godz1) | ($za $minuta $minuta $godz1) | ($za $minuta $minuta $godzina $godz1) | ($cały $dzień) | $wróć | $anuluj;\r\n\r\n\r\n$godzina = północy {0} | (pierwsza | pierwszej) {1} | (druga | drugiej) {2} | (trzecia | trzeciej) {3} | (czwarta | czwartej) {4} | (piąta | piątej) {5} | (szósta | szóstej) {6} | (siódma | siódmej) {7} | (ósma | ósmej) {8} | (dziewiąta | dziewiątej) {9} | (dziesiąta | dziesiątej) {10} | (jedenasta | jedenastej) {11} | (dwunasta | dwunastej | południe) {12} | (trzynasta | trzynastej) {13} | (czternasta | czternastej) {14} | (piętnasta | piętnastej) {15} | (szesnasta | szesnastej) {16} | (siedemnasta | siedemnastej) {17} | (osiemnasta | osiemnastej) {18} | (dziewiętnasta | dziewiętnastej) {19} | (dwudziesta | dwudziestej) {20};\r\n\r\n$godz1 = (pierwsza | pierwszej) {0} | (druga | drugiej) {1} | (trzecia | trzeciej) {2} | (czwarta | czwartej) {3} | (piąta | piątej) {4} | (szósta | szóstej) {5} | (siódma | siódmej) {6} | (ósma | ósmej) {7} | (dziewiąta | dziewiątej) {8} | (dziesiąta | dziesiątej) {9} | (jedenasta | jedenastej) {10} | (dwunasta | dwunastej | południe) {11} | (trzynasta | trzynastej) {12} | (czternasta | czternastej) {13} | (piętnasta | piętnastej) {14} | (szesnasta | szesnastej) {15} | (siedemnasta | siedemnastej) {16} | (osiemnasta | osiemnastej) {17} | (dziewiętnasta | dziewiętnastej) {18} | (dwudziesta | dwudziestej) {19} | północ {23};\r\n$godz2 = (pierwsza | pierwszej) {13} | (druga | drugiej) {14} | (trzecia | trzeciej) {15} | (czwarta | czwartej) {16} | (piąta | piątej) {17} | (szósta | szóstej) {18} | (siódma | siódmej) {19} | (ósma | ósmej) {20} | (dziewiąta | dziewiątej) {21} | (dziesiąta | dziesiątej) {22} | (jedenasta | jedenastej) {23} ;\r\n$minuta = jeden {1m} | dwa {2m}| trzy {3m} | cztery{4m} | pięć {5m} | sześć {6m} | siedem {7m}| osiem {8m}| dziewięć {9m}| dziesięć{10m} | jedenaście {11m} | dwanaście {12m} | trzynaście {13m} | czternaście {14m} | (piętnaście | kwadrans) {15m} | szesnaście {16m} | siedemnaście {17m} | osiemnaście {18m} | dziewiętnaście {19m} | dwadzieścia {20m} | trzydzieści {30m} | czterdzieści {40m} | pięćdziesiąt {50m};\r\n\r\n$po = po {po};\r\n\r\n$wpółdo = w pół do {30m};\r\n$południu = południu {południu};\r\n$za = za {za};\r\n\r\n$cały = cały {cały};\r\n$dzień = dzień {dzień};\r\n$wróć = (wróć | cofnij) {wróć};\r\n$anuluj = (anuluj | wyjdź | zamknij | zakończ) {anuluj};" }
UTF-8
ABNF
3,039
LongTengDao
79bb18468952b9010a00f83e152febee304ea358
4619e5f116bd224e5c235118d93c365c5e5ab6e6
/toml.abnf
9a13a1ea19cb48c2bc0035e04b59d342d13216ac
LongTengDao/TOML
{ "content": ";; 该文档描述了 TOML 的语法,使用的是 ABNF 格式(定义于 RFC 5234——https://www.ietf.org/rfc/rfc5234.txt)。\n;;\n;; 所有有效的 TOML 文档都符合该描述,然而根据辅助性文本说明中描述的语义需要拒绝某些错误的文档。\n\n;; 可以通过 instaparse 交互式地尝试该语法。\n;; http://instaparse.mojombo.com/\n;;\n;; 要做到这一点,在右下角,点击 Options 并将 `:input-format` 改为 ':abnf'。\n;; 然后将整个 ABNF 文档粘贴到语法输入框(在 Options 上方)。\n;; 然后您可以将一份 TOML 文档小样输入或粘贴到左侧米黄色的框中。\n;; Tada!\n\n;; 总结构\n\ntoml = expression *( newline expression )\n\nexpression = ws [ comment ]\nexpression =/ ws keyval ws [ comment ]\nexpression =/ ws table ws [ comment ]\n\n;; 空白\n\nws = *wschar\nwschar = %x20 ; 空格\nwschar =/ %x09 ; 水平制表符\n\n;; 换行\n\nnewline = %x0A ; LF\nnewline =/ %x0D.0A ; CRLF\n\n;; 注释\n\ncomment-start-symbol = %x23 ; #\nnon-ascii = %x80-D7FF / %xE000-10FFFF\nnon-eol = %x09 / %x20-7E / non-ascii\n\ncomment = comment-start-symbol *non-eol\n\n;; 键值对\n\nkeyval = key keyval-sep val\n\nkey = simple-key / dotted-key\nsimple-key = quoted-key / unquoted-key\n\nunquoted-key = 1*( ALPHA / DIGIT / %x2D / %x5F ) ; A-Z / a-z / 0-9 / - / _\nquoted-key = basic-string / literal-string\ndotted-key = simple-key 1*( dot-sep simple-key )\n\ndot-sep = ws %x2E ws ; . 点\nkeyval-sep = ws %x3D ws ; =\n\nval = string / boolean / array / inline-table / date-time / float / integer\n\n;; 字符串\n\nstring = ml-basic-string / basic-string / ml-literal-string / literal-string\n\n;; 基础字符串\n\nbasic-string = quotation-mark *basic-char quotation-mark\n\nquotation-mark = %x22 ; \"\n\nbasic-char = basic-unescaped / escaped\nbasic-unescaped = wschar / %x21 / %x23-5B / %x5D-7E / non-ascii\nescaped = escape escape-seq-char\n\nescape = %x5C ; \\\nescape-seq-char = %x22 ; \" 双引号 U+0022\nescape-seq-char =/ %x5C ; \\ 反斜杠 U+005C\nescape-seq-char =/ %x62 ; b 退格符 U+0008\nescape-seq-char =/ %x66 ; f 换页符 U+000C\nescape-seq-char =/ %x6E ; n 换行符 U+000A\nescape-seq-char =/ %x72 ; r 回车符 U+000D\nescape-seq-char =/ %x74 ; t 制表符 U+0009\nescape-seq-char =/ %x75 4HEXDIG ; uXXXX U+XXXX\nescape-seq-char =/ %x55 8HEXDIG ; UXXXXXXXX U+XXXXXXXX\n\n;; 多行基础字符串\n\nml-basic-string = ml-basic-string-delim [ newline ] ml-basic-body\n ml-basic-string-delim\nml-basic-string-delim = 3quotation-mark\nml-basic-body = *mlb-content *( mlb-quotes 1*mlb-content ) [ mlb-quotes ]\n\nmlb-content = mlb-char / newline / mlb-escaped-nl\nmlb-char = mlb-unescaped / escaped\nmlb-quotes = 1*2quotation-mark\nmlb-unescaped = wschar / %x21 / %x23-5B / %x5D-7E / non-ascii\nmlb-escaped-nl = escape ws newline *( wschar / newline )\n\n;; 字面量字符串\n\nliteral-string = apostrophe *literal-char apostrophe\n\napostrophe = %x27 ; ' 单引号\n\nliteral-char = %x09 / %x20-26 / %x28-7E / non-ascii\n\n;; 多行字面量字符串\n\nml-literal-string = ml-literal-string-delim [ newline ] ml-literal-body\n ml-literal-string-delim\nml-literal-string-delim = 3apostrophe\nml-literal-body = *mll-content *( mll-quotes 1*mll-content ) [ mll-quotes ]\n\nmll-content = mll-char / newline\nmll-char = %x09 / %x20-26 / %x28-7E / non-ascii\nmll-quotes = 1*2apostrophe\n\n;; 整数\n\ninteger = dec-int / hex-int / oct-int / bin-int\n\nminus = %x2D ; -\nplus = %x2B ; +\nunderscore = %x5F ; _\ndigit1-9 = %x31-39 ; 1-9\ndigit0-7 = %x30-37 ; 0-7\ndigit0-1 = %x30-31 ; 0-1\n\nhex-prefix = %x30.78 ; 0x\noct-prefix = %x30.6F ; 0o\nbin-prefix = %x30.62 ; 0b\n\ndec-int = [ minus / plus ] unsigned-dec-int\nunsigned-dec-int = DIGIT / digit1-9 1*( DIGIT / underscore DIGIT )\n\nhex-int = hex-prefix HEXDIG *( HEXDIG / underscore HEXDIG )\noct-int = oct-prefix digit0-7 *( digit0-7 / underscore digit0-7 )\nbin-int = bin-prefix digit0-1 *( digit0-1 / underscore digit0-1 )\n\n;; 浮点数\n\nfloat = float-int-part ( exp / frac [ exp ] )\nfloat =/ special-float\n\nfloat-int-part = dec-int\nfrac = decimal-point zero-prefixable-int\ndecimal-point = %x2E ; .\nzero-prefixable-int = DIGIT *( DIGIT / underscore DIGIT )\n\nexp = \"e\" float-exp-part\nfloat-exp-part = [ minus / plus ] zero-prefixable-int\n\nspecial-float = [ minus / plus ] ( inf / nan )\ninf = %x69.6e.66 ; inf\nnan = %x6e.61.6e ; nan\n\n;; 布尔值\n\nboolean = true / false\n\ntrue = %x74.72.75.65 ; true\nfalse = %x66.61.6C.73.65 ; false\n\n;; 日期和时刻(按照 RFC 3339 中的定义)\n\ndate-time = offset-date-time / local-date-time / local-date / local-time\n\ndate-fullyear = 4DIGIT\ndate-month = 2DIGIT ; 01-12\ndate-mday = 2DIGIT ; 01-28,01-29,01-30,01-31 基于月/年\ntime-delim = \"T\" / %x20 ; T,t,或空格\ntime-hour = 2DIGIT ; 00-23\ntime-minute = 2DIGIT ; 00-59\ntime-second = 2DIGIT ; 00-58,00-59,00-60 基于闰秒规则\ntime-secfrac = \".\" 1*DIGIT\ntime-numoffset = ( \"+\" / \"-\" ) time-hour \":\" time-minute\ntime-offset = \"Z\" / time-numoffset\n\npartial-time = time-hour \":\" time-minute \":\" time-second [ time-secfrac ]\nfull-date = date-fullyear \"-\" date-month \"-\" date-mday\nfull-time = partial-time time-offset\n\n;; 坐标日期时刻\n\noffset-date-time = full-date time-delim full-time\n\n;; 各地日期时刻\n\nlocal-date-time = full-date time-delim partial-time\n\n;; 各地日期\n\nlocal-date = full-date\n\n;; 各地时刻\n\nlocal-time = partial-time\n\n;; 数组\n\narray = array-open [ array-values ] ws-comment-newline array-close\n\narray-open = %x5B ; [\narray-close = %x5D ; ]\n\narray-values = ws-comment-newline val ws-comment-newline array-sep array-values\narray-values =/ ws-comment-newline val ws-comment-newline [ array-sep ]\n\narray-sep = %x2C ; , 逗号\n\nws-comment-newline = *( wschar / [ comment ] newline )\n\n;; 表\n\ntable = std-table / array-table\n\n;; 标准表\n\nstd-table = std-table-open key std-table-close\n\nstd-table-open = %x5B ws ; [ 左方括号\nstd-table-close = ws %x5D ; ] 右方括号\n\n;; 行内表\n\ninline-table = inline-table-open [ inline-table-keyvals ] inline-table-close\n\ninline-table-open = %x7B ws ; {\ninline-table-close = ws %x7D ; }\ninline-table-sep = ws %x2C ws ; , 逗号\n\ninline-table-keyvals = keyval [ inline-table-sep inline-table-keyvals ]\n\n;; 数组表\n\narray-table = array-table-open key array-table-close\n\narray-table-open = %x5B.5B ws ; [[ 双左方括号\narray-table-close = ws %x5D.5D ; ]] 双右方括号\n\n;; ABNF 的内置术语,为清楚起见重新陈列于此\n\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n" }
UTF-8
ABNF
6,964
cppden
b35921477a7dde13c5dad1c6a4bc29ae55ee1262
119f04133b1a0acf8c37c21d3ea391fe5d25776c
/medasn/grammar/asn1.abnf
2c0a2413f4698115d0c3b96ce493b2115bb0a4e1
cppden/medasn
{ "content": "; X.680-201508\n\n; 11 The ASN.1 character set\nuppercase = %x41-5A ;A to Z (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z)\nlowercase = %x61-7A ;a to z (LATIN SMALL LETTER A to LATIN SMALL LETTER Z)\nletter = uppercase / lowercase\n;digit = 0 to 9 (DIGIT ZERO to DIGIT 9)\ndquote = %x22 ; \" (double quote, QUOTATION MARK)\nsquote = \"'\" ; ' (single quote, APOSTROPHE)\n; 11.8 The NON-BREAKING HYPHEN and the HYPHEN-MINUS should be treated as identical in all names.\nminus = sp \"-\" sp\nplus = sp \"+\" sp\n\n; 12.1.6 white-space\nws = %x09 /;HORIZONTAL TABULATION (9)\n %x0A /;LINE FEED (10)\n %x0B /;VERTICAL TABULATION (11)\n %x0C /;FORM FEED (12)\n %x0D /;CARRIAGE RETURN (13)\n %x20 ;SPACE (32)\n ;NO-BREAK SPACE ({0,0,0,160})\n;newline:\nnewline = %x0A /; LINE FEED (10)\n %x0B /; VERTICAL TABULATION (11)\n %x0C /; FORM FEED (12)\n %x0D ; CARRIAGE RETURN (13)\n\nsp = *ws ; zero, one or more space characters\nmsp = 1*ws ; one or more space characters\ncomma = sp \",\" sp\ndot = sp \".\" sp\nlparen = sp \"(\" sp\nrparen = sp \")\" sp\nlbrace = sp \"{\" sp\nrbrace = sp \"}\" sp\nlbracket = sp \"[\" sp\nrbracket = sp \"]\" sp\nsemicolon = sp \";\" sp\ncolon = sp \":\" sp\nasn1ment = sp \"::=\" sp\n\n\n;12.2 Type references (typereference)\n; 12.2.1 A \"typereference\" shall consist of 1+ of letters, digits, and hyphens. The initial\n; character shall be an upper-case letter. A hyphen shall not be the last character. A hyphen shall not be immediately\n; followed by another hyphen.\ntypereference = uppercase *( alnum / minus)\n\n;12.3 Identifiers [identifier]\n; An \"identifier\" shall consist of 1+ of letters, digits, and hyphens. The initial character\n; shall be a lower-case letter. A hyphen shall not be the last character. A hyphen shall not be immediately followed by\n; another hyphen.\nidentifier = lowercase *alnum *(minus 1*alnum)\n\n;12.4 Value references [valuereference]\n; A \"valuereference\" shall consist of the sequence of characters specified for an \"identifier\" in 12.3. In analyzing an\n; instance of use of this notation, a \"valuereference\" is distinguished from an \"identifier\" by the context in which it\n; appears.\nvaluereference = identifier\n\n;12.5 Module references [modulereference]\n; A \"modulereference\" shall consist of the sequence of characters specified for a \"typereference\" in 12.2. In analyzing an\n; instance of use of this notation, a \"modulereference\" is distinguished from a \"typereference\" by the context in which it\n; appears.\nmodulereference = typereference\n\n;12.6 Comments [comment]\n; 12.6.2 The lexical item \"comment\" can have two forms:\n; a) One-line comments which begin with \" -- \" as defined in 12.6.3;\n; b) Multiple-line comments which begin with \" /* \" as defined in 12.6.4.\n; 12.6.3 Whenever a \"comment\" begins with a pair of adjacent hyphens, it shall end with the next pair of adjacent\n; hyphens or at the end of the line, whichever occurs first. A comment shall not contain a pair of adjacent hyphens other\n; than the pair which starts it and the pair, if any, which ends it. If a comment beginning with \" -- \" includes the adjacent\n; characters \" /* \" or \" */ \", these have no special meaning and are considered part of the comment. The comment may\n; include graphic symbols which are not in the character set specified in 11.1 (see 11.3).\n; 12.6.4 Whenever a \"comment\" begins with \" /* \", it shall end with a corresponding \" */ \", whether this \" */ \" is on the\n; same line or not. If another \" /* \" is found before a \" */ \", then the comment terminates when a matching \" */ \" has been\n; found for each \" /* \". If a comment beginning with \" /* \" includes two adjacent hyphens \" -- \", these hyphens have no\n; special meaning and are considered part of the comment. The comment may include graphic symbols which are not in\n; the character set specified in 11.1 (see 11.3).\n; --([^\\n\\r-]|-[^\\n\\r-])*(--|-?[\\n\\r])\n\n;12.8 Numbers [number]\n; A \"number\" shall consist of one or more digits. The first digit shall not be zero unless the \"number\" is a single digit.\n; NOTE: The \"number\" lexical item is always mapped to an integer value by interpreting it as decimal notation.\nnon-zero-digit = %x31-39 ; \"1\" to \"9\"\npositive-number = non-zero-digit *DIGIT\nnumber = \"0\" / positive-number\n\n;12.9 Real numbers [realnumber]\n; A \"realnumber\" shall consist of an integer part that is a series of one or more digits, and optionally a decimal point (.).\n; The decimal point can optionally be followed by a fractional part which is one or more digits. The integer part, decimal\n; point or fractional part (whichever is last present) can optionally be followed by an e or E and an optionally-signed\n; exponent which is one or more digits. The leading digit of the exponent shall not be zero unless the exponent is a single\n; digit.\nrealnumber = mantissa exponent\nmantissa = (positive-number [\".\" *DIGIT]) / ( \"0.\" *(\"0\") positive-number )\nexponent = \"E\" ( \"0\" / ([\"-\"] positive-number))\n\n;12.10 Binary strings [bstring]\n; A \"bstring\" shall consist of an arbitrary number (possibly zero) of the characters: 0 1\n; possibly intermixed with white-space, preceded by an APOSTROPHE (39) character ( ' ) and followed by the pair of\n; characters: 'B\n; EXAMPLE: '01101100'B\n; Occurrences of white-space within a binary string lexical item have no significance.\nbstring = squote *(%s\"BIT\" / ws) squote %x42 ; '...'B\n\n;12.12 Hexadecimal strings [hstring]\n; 12.12.1 An \"hstring\" shall consist of an arbitrary number (possibly zero) of the characters: A B C D E F 0 1 2 3 4 5 6 7 8 9\n; possibly intermixed with white-space, preceded by an APOSTROPHE (39) character ( ' ) and followed by the pair of\n; characters: 'H\n; EXAMPLE: 'AB0196'H\n; Occurrences of white-space within a hexadecimal string lexical item have no significance.\nhstring = squote *(HEXDIG / ws) squote %x48 ; '...'H\n\n;12.16 The simple character string lexical item [simplestring]\n; A \"simplestring\" shall consist of one or more ISO/IEC 10646 characters whose character code is in the range 32 to 126,\n; preceded and followed by a QUOTATION MARK (34) character (\"). It shall not contain a QUOTATION MARK (34)\n; character (\"). The \"simplestring\" may span more than one line of text, in which case any characters representing end-of-\n; line shall be treated as spacing characters. In analyzing an instance of use of this notation, a \"simplestring\" is\n; distinguished from a \"cstring\" by the context in which it appears.\n; NOTE: The \"simplestring\" lexical item is only used in the subtype notation of the time type.\nsimplestring = dquote 1*(%x20-21 / %x23-7E) dquote\n\n;12.17 Time value character strings [tstring]\n; A \"tstring\" shall consist of one or more of the characters: 0 1 2 3 4 5 6 7 8 9 + - : . , / C D H M R P S T W Y Z\n; preceded and followed by a QUOTATION MARK (34) character (\").\ntstring = dquote 1*(DIGIT / \"+\" / \"-\" / \":\" / \",\" / \"/\" / \"C\" / \"D\" / \"H\" / \"M\" / \"R\" / \"P\" / \"S\" / \"T\" / \"W\" / \"Y\" / \"Z\") dquote\n\n\n;12.25 Encoding references [encodingreference]\n; An \"encodingreference\" shall consist of a sequence of characters as specified for a \"typereference\" in 12.2, except that\n; no lower-case letters shall be included.\nencodingreference = uppercase *( uppercase / DIGIT / minus)\n\n;X.681 7.1 Information object class references [objectclassreference]\n; An \"objectclassreference\" shall consist of a sequence of characters as specified for a \"typereference\" in 12.2, except that\n; no lower-case letters shall be included.\nobjectclassreference = encodingreference\n\n;X.681 7.2 Information object references [objectreference]\n; An \"objectreference\" shall consist of a sequence of characters as specified for a \"valuereference\" in 12.4.\n;X.681 7.3 Information object set references [objectsetreference]\n; An \"objectsetreference\" shall consist of a sequence of characters as specified for a \"typereference\" in 12.2.\n\n; 12.38 Reserved words\n;CHARACTER = %s\"CHARACTER\"\nDEFAULT = %s\"DEFAULT\"\n;ENCODED = %s\"ENCODED\" \nOF = msp %s\"OF\" msp\nOPTIONAL = msp %s\"OPTIONAL\" msp\n;ObjectDescriptor = %s\"ObjectDescriptor\" \nSEQUENCE = %s\"SEQUENCE\"\nSET = %s\"SET\"\n;UTCTime = %s\"UTCTime\"\n;GeneralizedTime = %s\"GeneralizedTime\"\n\n;13 Module definition\n; 13.1 A \"ModuleDefinition\" is specified by the following productions:\nModuleDefinition = ModuleIdentifier \n %s\"DEFINITIONS\" \n [EncodingReferenceDefault] [TagDefault] [%s\"EXTENSIBILITY\" msp %s\"IMPLIED\"]\n asn1ment %s\"BEGIN\"\n [ModuleBody] EncodingControlSections \n %s\"END\"\n\nModuleIdentifier = modulereference [DefinitiveIdentification]\nDefinitiveIdentification = DefinitiveOID / DefinitiveOIDandIRI\nDefinitiveOID = lbrace DefinitiveObjIdComponentList rbrace\nDefinitiveOIDandIRI = DefinitiveOID msp IRIValue\nDefinitiveObjIdComponentList = DefinitiveObjIdComponent / DefinitiveObjIdComponent msp DefinitiveObjIdComponentList\nDefinitiveObjIdComponent = NameForm / DefinitiveNumberForm / DefinitiveNameAndNumberForm\nDefinitiveNumberForm = number\nDefinitiveNameAndNumberForm = identifier lparen DefinitiveNumberForm rparen\n;13.5 The \"EncodingReferenceDefault\" specifies that the \"encodingreference\" is the default encoding reference for\n; the module. If the \"EncodingReferenceDefault\" is \"empty\", then the default encoding reference for the module is TAG.\nEncodingReferenceDefault = encodingreference %s\"INSTRUCTIONS\"\n;13.2 The \"TagDefault\" is taken as EXPLICIT TAGS if it is \"empty\".\nTagDefault = (%s\"EXPLICIT\" / %s\"IMPLICIT\" / %s\"AUTOMATIC\") msp %s\"TAGS\"\n;13.4 The EXTENSIBILITY IMPLIED option is equivalent to the textual insertion of an extension marker (\" ... \") in\n; the definition of each type in the module for which it is permitted. The location of the implied extension marker is the\n; last position in the type where an explicitly specified extension marker is allowed.\n; NOTE: EXTENSIBILITY IMPLIED affects only types. It has no effect on object sets and subtype constraints.\n\nModuleBody = [Exports] msp [Imports] msp AssignmentList\n\nExports = %s\"EXPORTS\" ( %s\"ALL\" / [SymbolsExported] ) semicolon\nSymbolsExported = SymbolList\nImports = %s\"IMPORTS\" [SymbolsImported] semicolon\nSymbolsImported = SymbolsFromModuleList\nSymbolsFromModuleList = SymbolsFromModule / SymbolsFromModuleList SymbolsFromModule\nSymbolsFromModule = SymbolList %s\"FROM\" msp GlobalModuleReference\nGlobalModuleReference = modulereference [AssignedIdentifier]\nAssignedIdentifier = ObjectIdentifierValue / DefinedValue\nSymbolList = Symbol / SymbolList comma Symbol\nSymbol = Reference / ParameterizedReference\nReference = typereference / \n valuereference / \n objectclassreference\nAssignmentList = 1*(sp Assignment)\nAssignment = TypeAssignment ;16.1\n / ValueAssignment ;16.2\n / ValueSetTypeAssignment ;16.6\n / ObjectClassAssignment ;X.681 9.1\n / ObjectAssignment ;X.681 11.1\n / ObjectSetAssignment ;X.681 12.1\n / ParameterizedAssignment ;X.683 8.1\n\n;14 Referencing type and value definitions\nDefinedType = ExternalTypeReference \n / typereference \n / ParameterizedType ;X.683\n / ParameterizedValueSetType ;X.683\n\nDefinedValue = ExternalValueReference\n / valuereference\n; / ParameterizedValue ;X.683\n\n;14.6 An external reference shall be used in a module only to refer to a reference name which is defined in a\n; different module, and is specified by the following productions:\nExternalTypeReference = modulereference dot typereference\nExternalValueReference = modulereference dot valuereference\n\n;15.3 Any part of any ASN.1 type definition can be referenced by use of the \"AbsoluteReference\" syntactic construct:\nAbsoluteReference = \"@\" ModuleIdentifier dot ItemSpec\nItemSpec = typereference / ItemId dot ComponentId\nItemId = ItemSpec\nComponentId = identifier / number / \"*\"\n\n;16 Assigning types and values\n;16.1 A \"typereference\" shall be assigned a type by the notation specified by the \"TypeAssignment\" production:\nTypeAssignment = typereference asn1ment Type\n; The \"typereference\" shall not be an ASN.1 reserved word (see 12.38).\n;16.2 A \"valuereference\" shall be assigned a value by the notation specified by either the \"ValueAssignment\" or\n; \"XMLValueAssignment\" productions:\nValueAssignment = valuereference msp Type asn1ment Value\n\n;16.6 A \"typereference\" can be assigned a value set by the notation specified by the \"ValueSetTypeAssignment\" production:\nValueSetTypeAssignment = typereference msp Type asn1ment ValueSet\nValueSet = lbrace ElementSetSpecs rbrace\n\n;17 Definition of types and values\n;17.1 A type shall be specified by the notation \"Type\":\nType = BuiltinType / ReferencedType / ConstrainedType\n\n;17.2 The built-in types of ASN.1 are specified by the notation \"BuiltinType\", defined as follows:\nBuiltinType = BitStringType\n / BooleanType\n / CharacterStringType\n / ChoiceType\n / DateType\n / DateTimeType\n / DurationType\n / EmbeddedPDVType\n / EnumeratedType\n / ExternalType\n / InstanceOfType ;X.681\n / IntegerType\n / IRIType\n / NullType\n / ObjectClassFieldType ;X.681\n / ObjectIdentifierType\n / OctetStringType\n / RealType\n / RelativeIRIType\n / RelativeOIDType\n / SequenceType\n / SequenceOfType\n / SetType\n / SetOfType\n / PrefixedType\n / TimeType\n / TimeOfDayType\n\nReferencedType = DefinedType\n / UsefulType\n / SelectionType\n / TypeFromObject ;X.681\n / ValueSetFromObjects ;X.681\n\nNamedType = identifier msp Type\n\nValue = BuiltinValue\n / ReferencedValue\n / ObjectClassFieldValue\n\nBuiltinValue = BitStringValue\n / BooleanValue\n / CharacterStringValue\n / ChoiceValue\n / EmbeddedPDVValue\n / EnumeratedValue\n / ExternalValue\n / InstanceOfValue\n / IntegerValue\n / IRIValue\n / NullValue\n / ObjectIdentifierValue\n / OctetStringValue\n / RealValue\n / RelativeIRIValue\n / RelativeOIDValue\n / SequenceValue\n / SequenceOfValue\n / SetValue\n / SetOfValue\n / PrefixedValue\n / TimeValue\n\nReferencedValue = DefinedValue / ValueFromObject\nNamedValue = identifier msp Value\n\n;18 Notation for the boolean type\nBooleanType = %s\"BOOLEAN\"\nBooleanValue = %s\"TRUE\" / %s\"FALSE\"\n\n;19 Notation for the integer type\nIntegerType = %s\"INTEGER\" [lbrace NamedNumberList rbrace]\nNamedNumberList = NamedNumber / NamedNumberList comma NamedNumber\nNamedNumber = identifier lparen SignedNumber rparen\n / identifier lparen DefinedValue rparen\nSignedNumber = [\"-\"] number\nIntegerValue = SignedNumber / identifier\n\n;20 Notation for the enumerated type\nEnumeratedType = %s\"ENUMERATED\" lbrace Enumerations rbrace\nEnumerations = RootEnumeration\n / RootEnumeration comma ellipsis ExceptionSpec\n / RootEnumeration comma ellipsis ExceptionSpec comma AdditionalEnumeration\nRootEnumeration = Enumeration\nAdditionalEnumeration = Enumeration\nEnumeration = EnumerationItem / EnumerationItem comma Enumeration\nEnumerationItem = identifier / NamedNumber\nEnumeratedValue = identifier\n\n;21 Notation for the real type\nRealType = %s\"REAL\"\nRealValue = NumericRealValue / SpecialRealValue\nNumericRealValue = \"0\" / realnumber / (\"-\" realnumber) / RealSequenceValue\nSpecialRealValue = %s\"PLUS-INFINITY\" / %s\"MINUS-INFINITY\" / %s\"NOT-A-NUMBER\"\nRealSequenceValue = lbrace\n %s\"mantissa\" msp IntegerValue comma\n %s\"base\" msp (\"2\" / \"10\") comma\n %s\"exponent\" msp IntegerValue rbrace\n\n;22 Notation for the bitstring type\nBitStringType = %s\"BIT\" msp %s\"STRING\" [lbrace NamedBitList rbrace]\nNamedBitList = NamedBit / NamedBitList comma NamedBit\nNamedBit = identifier lparen number rparen / identifier lparen DefinedValue rparen\nBitStringValue = bstring / hstring / lbrace [IdentifierList] rbrace / %s\"CONTAINING\" msp Value\nIdentifierList = identifier / IdentifierList comma identifier\n\n;23 Notation for the octetstring type\nOctetStringType = %s\"OCTET\" msp %s\"STRING\"\nOctetStringValue = bstring / hstring / %s\"CONTAINING\" msp Value\n\n;24 Notation for the null type\nNullType = %s\"NULL\"\nNullValue = %s\"NULL\"\n\n;25 Notation for sequence types\nSequenceType = SEQUENCE lbrace [ExtensionAndException [OptionalExtensionMarker]] / [ComponentTypeLists] rbrace\nExtensionAndException = ellipsis msp [ExceptionSpec]\nOptionalExtensionMarker = comma ellipsis\nComponentTypeLists = RootComponentTypeList\n / RootComponentTypeList comma ExtensionAndException [msp ExtensionAdditions] [OptionalExtensionMarker]\n / RootComponentTypeList comma ExtensionAndException [msp ExtensionAdditions] msp ExtensionEndMarker comma RootComponentTypeList\n / ExtensionAndException [msp ExtensionAdditions] msp ExtensionEndMarker comma RootComponentTypeList \n / ExtensionAndException [msp ExtensionAdditions] [OptionalExtensionMarker]\nRootComponentTypeList = ComponentTypeList\nExtensionEndMarker = comma ellipsis\nExtensionAdditions = comma ExtensionAdditionList\nExtensionAdditionList = ExtensionAddition\n / ExtensionAdditionList comma ExtensionAddition\nExtensionAddition = ComponentType\n / ExtensionAdditionGroup\nExtensionAdditionGroup = \"[[\" sp [VersionNumber] msp ComponentTypeList sp \"]]\"\nVersionNumber = number colon\nComponentTypeList = ComponentType *(comma ComponentType)\nComponentType = NamedType\n / NamedType msp OPTIONAL\n / NamedType msp DEFAULT msp Value\n / %s\"COMPONENTS\" msp OF msp Type\n\nSequenceValue = lbrace [ComponentValueList] rbrace\nComponentValueList = NamedValue *(comma NamedValue)\n\n;26 Notation for sequence-of types\nSequenceOfType = SEQUENCE OF Type \n / SEQUENCE OF NamedType\nSequenceOfValue = lbrace [ValueList / NamedValueList] rbrace\nValueList = Value *(comma Value)\nNamedValueList = NamedValue *(comma NamedValue)\n\n;27 Notation for set types\nSetType = SET lbrace [ExtensionAndException [OptionalExtensionMarker] / ComponentTypeLists] rbrace\nSetValue = lbrace [ComponentValueList] rbrace\n\n;28 Notation for set-of types\nSetOfType = SET msp OF msp (Type / NamedType)\nSetOfValue = lbrace [ValueList / NamedValueList] rbrace\n\n;29 Notation for choice types\nChoiceType = %s\"CHOICE\" lbrace AlternativeTypeLists rbrace\nAlternativeTypeLists = AlternativeTypeList\n / AlternativeTypeList comma ExtensionAndException \n [comma ExtensionAdditionAlternativesList] [OptionalExtensionMarker]\nExtensionAdditionAlternativesList = ExtensionAdditionAlternative *(comma ExtensionAdditionAlternative)\nExtensionAdditionAlternative = ExtensionAdditionAlternativesGroup / NamedType\nExtensionAdditionAlternativesGroup = \"[[\" sp VersionNumber AlternativeTypeList sp \"]]\"\nAlternativeTypeList = NamedType *(comma NamedType)\n / TaggedType *(comma TaggedType)\n;29.5 The automatic tagging transformation impacts each \"NamedType\" of the \"AlternativeTypeLists\" by replacing\n;the \"Type\" originally in the \"NamedType\" production with a replacement \"TaggedType\". The replacement\n;\"TaggedType\" is specified as follows:\n; a) the replacement \"TaggedType\" notation uses the \"Tag Type\" alternative;\n; b) the \"Class\" of the replacement \"TaggedType\" is empty (i.e., tagging is context-specific);\n; c) the \"ClassNumber\" in the replacement \"TaggedType\" is tag value zero for the first \"NamedType\" in the\n; \"RootAlternativeTypeList\", one for the second, and so on, proceeding with increasing tag numbers;\n; d) the \"ClassNumber\" in the replacement \"TaggedType\" of the first \"NamedType\" in the\n; \"ExtensionAdditionAlternativesList\" is one greater than the largest \"ClassNumber\" in the\n; \"RootAlternativeTypeList\", with the next \"NamedType\" in the \"ExtensionAdditionAlternativesList\"\n; having a \"ClassNumber\" one greater than the first, and so on, proceeding with increasing tag numbers;\n; e) the \"Type\" in the replacement \"TaggedType\" is the original \"Type\" being replaced.\nChoiceValue = identifier colon Value\n\n;30 Notation for selection types\nSelectionType = identifier sp \"<\" sp Type\n\n;31 Notation for prefixed types\nPrefixedType = TaggedType / EncodingPrefixedType\nPrefixedValue = Value\n\n;31.2 The tagged type\nTaggedType = Tag [%s\"IMPLICIT\" / %s\"EXPLICIT\"] msp Type\nTag = lbracket [encodingreference colon] [Class] ClassNumber rbracket\nClassNumber = number / DefinedValue\nClass = sp [%s\"UNIVERSAL\" / %s\"APPLICATION\" / %s\"PRIVATE\"] sp ; optional -> empty\n\n;31.3 The encoding prefixed type\nEncodingPrefixedType = EncodingPrefix Type\nEncodingPrefix = lbracket [encodingreference colon] EncodingInstruction rbracket\n\n;32 Notation for the object identifier type\nObjectIdentifierType = %s\"OBJECT\" msp %s\"IDENTIFIER\"\nObjectIdentifierValue = lbrace [DefinedValue msp] ObjIdComponentsList rbrace\nObjIdComponentsList = 1*(sp ObjIdComponents)\nObjIdComponents = NameForm / NumberForm / NameAndNumberForm / DefinedValue\nNameForm = identifier\nNumberForm = number / DefinedValue\nNameAndNumberForm = identifier lparen NumberForm rparen\n\n;33 Notation for the relative object identifier type\nRelativeOIDType = %s\"RELATIVE-OID\"\nRelativeOIDValue = lbrace RelativeOIDComponentsList rbrace\nRelativeOIDComponentsList = 1*(sp RelativeOIDComponents)\nRelativeOIDComponents = NumberForm / NameAndNumberForm / DefinedValue\n\n;34 Notation for the OID internationalized resource identifier type\nIRIType = %s\"OID-IRI\"\nIRIValue = dquote 1*(\"/\" ArcIdentifier) dquote\nArcIdentifier = integerUnicodeLabel / non-integerUnicodeLabel\n\n;35 Notation for the relative OID internationalized resource identifier type\nRelativeIRIType = %s\"RELATIVE-OID-IRI\"\nRelativeIRIValue = dquote ArcIdentifier *(\"/\" ArcIdentifier) dquote\n\n;36 Notation for the embedded-pdv type\nEmbeddedPDVType = %s\"EMBEDDED\" msp %s\"PDV\"\nEmbeddedPDVValue = SequenceValue\n\n;37 Notation for the external type\nExternalType = %s\"EXTERNAL\"\nExternalValue = SequenceValue\n\n;38 The time type\nTimeType = %s\"TIME\"\nTimeValue = tstring\n;38.4 Useful time types\nDateType = %s\"DATE\" ;[UNIVERSAL 31] IMPLICIT TIME (SETTINGS \"Basic=Date Date=YMD Year=Basic\")\nTimeOfDayType = %s\"TIME-OF-DAY\" ;[UNIVERSAL 32] IMPLICIT TIME (SETTINGS \"Basic=Time Time=HMS Local-or-UTC=L\")\nDateTimeType = %s\"DATE-TIME\" ;[UNIVERSAL 33] IMPLICIT TIME (SETTINGS \"Basic=Date-Time Date=YMD Year=Basic Time=HMS Local-or-UTC=L\")\nDurationType = %s\"DURATION\" ;[UNIVERSAL 34] IMPLICIT TIME (SETTINGS \"Basic=Interval Interval-type=D\")\n;DURATION-EQUIVALENT ::= SEQUENCE {\n; years INTEGER (0..MAX) OPTIONAL,\n; months INTEGER (0..MAX) OPTIONAL,\n; weeks INTEGER (0..MAX) OPTIONAL,\n; days INTEGER (0..MAX) OPTIONAL,\n; hours INTEGER (0..MAX) OPTIONAL,\n; minutes INTEGER (0..MAX) OPTIONAL,\n; seconds INTEGER (0..MAX) OPTIONAL,\n; fractional-part SEQUENCE {\n; number-of-digits INTEGER(1..MAX),\n; fractional-value INTEGER(0..MAX) \n; } OPTIONAL \n;}\n\n;40 Notation for character string types\nCharacterStringType = RestrictedCharacterStringType / UnrestrictedCharacterStringType\nCharacterStringValue = RestrictedCharacterStringValue / UnrestrictedCharacterStringValue\n\n;41 Definition of restricted character string types\nRestrictedCharacterStringType = %s\"BMPString\"\n / %s\"GeneralString\"\n / %s\"GraphicString\"\n / %s\"IA5String\"\n / %s\"ISO646String\"\n / %s\"NumericString\"\n / %s\"PrintableString\"\n / %s\"TeletexString\"\n / %s\"T61String\"\n / %s\"UniversalString\"\n / %s\"UTF8String\"\n / %s\"VideotexString\"\n / %s\"VisibleString\"\n\nNumericString = dquote *(DIGIT / space) dquote\nPrintableString = dquote *PrintableCharacter dquote\nPrintableCharacter = DIGIT / space\n / %x41-5A ; A to Z\n / %x61-7A ; a to z\n / %x27-29 ; ' ( )\n / %x2B-2F ; + , - . /\n / %x3A ; :\n / %x3D ; =\n / %x3F ; ?\n\nISO646String = VisibleString\nVisibleString = dquote *SafeVisibleCharacter dquote\nSafeVisibleCharacter = %x20-21\n / %x23-7E ; printable ASCII minus dquote\n / dquote dquote ; escaped double quote\n\nIA5String = dquote *SafeIA5Character dquote\nSafeIA5Character = %x00-21 / %x23-7F ; ASCII minus dquote\n / dquote dquote ; escaped double quote\n\nRestrictedCharacterStringValue = cstring\n / CharacterStringList\n / Quadruple\n / Tuple\nCharacterStringList = lbrace CharSyms rbrace\nCharSyms = CharsDefn *(comma CharsDefn)\nCharsDefn = cstring\n / Quadruple\n / Tuple\n / DefinedValue\nQuadruple = lbrace Group comma Plane comma Row comma Cell rbrace\nGroup = number\nPlane = number\nRow = number\nCell = number\nTuple = lbrace TableColumn comma TableRow rbrace\nTableColumn = number\nTableRow = number\n\nUTF8String = StringValue\nStringValue = dquote *SafeUTF8Character dquote\nSafeUTF8Character = %x00-21 / %x23-7F ; ASCII minus dquote\n / dquote dquote ; escaped double quote\n / %xC0-DF %x80-BF ; 2 byte UTF-8 character\n / %xE0-EF 2(%x80-BF) ; 3 byte UTF-8 character\n / %xF0-F7 3(%x80-BF) ; 4 byte UTF-8 character\n\nBMPString = StringValue\nUniversalString = StringValue\nTeletexString = StringValue\nT61String = StringValue\nVideotexString = StringValue\nGraphicString = StringValue\nGeneralString = StringValue\n\n;49 Constrained types\nConstrainedType = Type Constraint / TypeWithConstraint\nTypeWithConstraint = SET Constraint OF Type\n / SET msp SizeConstraint OF Type\n / SEQUENCE msp Constraint OF Type\n / SEQUENCE msp SizeConstraint OF Type\n / SET Constraint OF NamedType\n / SET SizeConstraint OF NamedType\n / SEQUENCE Constraint OF NamedType\n / SEQUENCE SizeConstraint OF NamedType\n\nConstraint = lparen ConstraintSpec ExceptionSpec rparen\nConstraintSpec = SubtypeConstraint / GeneralConstraint\nSubtypeConstraint = ElementSetSpecs\n\n; 50 Element set specification\nElementSetSpecs = RootElementSetSpec\n / RootElementSetSpec \",\" \" ... \"\n / RootElementSetSpec \",\" \" ... \" \",\" AdditionalElementSetSpec\nRootElementSetSpec = ElementSetSpec\nAdditionalElementSetSpec = ElementSetSpec\nElementSetSpec = Unions / %s\"ALL\" Exclusions\nUnions = Intersections / Unions UnionMark Intersections\nIntersections = IntersectionElements\n / Intersections IntersectionMark IntersectionElements\nIntersectionElements = Elements [Exclusions]\nExclusions = %s\"EXCEPT\" Elements\nUnionMark = \"|\" / %s\"UNION\"\nIntersectionMark = \"^\" / %s\"INTERSECTION\"\nElements = SubtypeElements \n / ObjectSetElements \n / lparen ElementSetSpec rparen\n\n; 51 Subtype elements\nSubtypeElements = SingleValue\n / ContainedSubtype\n / ValueRange\n / PermittedAlphabet\n / SizeConstraint\n / TypeConstraint\n / InnerTypeConstraints\n / PatternConstraint\n / PropertySettings\n / DurationRange\n / TimePointRange\n / RecurrenceRange\n\nSingleValue = Value\nContainedSubtype = [%s\"INCLUDES\" msp] Type\nValueRange = LowerEndpoint \"..\" UpperEndpoint\nLowerEndpoint = LowerEndValue / LowerEndValue \"<\"\nUpperEndpoint = UpperEndValue / \"<\" UpperEndValue\nLowerEndValue = Value / %s\"MIN\"\nUpperEndValue = Value / %s\"MAX\"\nSizeConstraint = %s\"SIZE\" msp Constraint\nTypeConstraint = Type\nPermittedAlphabet = %s\"FROM\" msp Constraint\nInnerTypeConstraints = %s\"WITH\" msp %s\"COMPONENT\" msp SingleTypeConstraint\n / %s\"WITH\" msp %s\"COMPONENTS\" MultipleTypeConstraints\nSingleTypeConstraint = Constraint\nMultipleTypeConstraints = FullSpecification\n / PartialSpecification\nFullSpecification = lbrace TypeConstraints rbrace\nPartialSpecification = lbrace \"...\" comma TypeConstraints rbrace\nTypeConstraints = NamedConstraint / NamedConstraint comma TypeConstraints\nNamedConstraint = identifier ComponentConstraint\nComponentConstraint = ValueConstraint PresenceConstraint\nValueConstraint = [Constraint]\nPresenceConstraint = [%s\"PRESENT\" / %s\"ABSENT\" / OPTIONAL]\nPatternConstraint = %s\"PATTERN\" Value\nPropertySettings = %s\"SETTINGS\" simplestring\nPropertySettingsList = PropertyAndSettingPair\n / PropertySettingsList PropertyAndSettingPair\nPropertyAndSettingPair = PropertyName \"=\" SettingName\nPropertyName = psname\nSettingName = psname\nDurationRange = ValueRange\nTimePointRange = ValueRange\nRecurrenceRange = ValueRange\n\n; 52 The extension marker\n; 53 The exception identifier\nExceptionSpec = [ \"!\" ExceptionIdentification ]\nExceptionIdentification = SignedNumber\n / DefinedValue\n / Type colon Value\n\n; 54 Encoding control sections\nEncodingControlSections = *EncodingControlSection\nEncodingControlSection = %s\"ENCODING-CONTROL\" encodingreference EncodingInstructionAssignmentList\n\n; Rec. ITU-T X.681 (08/2015)\n; 8 Referencing definitions\nDefinedObjectClass = ExternalObjectClassReference\n / objectclassreference\n / UsefulObjectClassReference\nDefinedObject = ExternalObjectReference\n / objectreference\nDefinedObjectSet = ExternalObjectSetReference\n / objectsetreference\nExternalObjectClassReference = modulereference dot objectclassreference\nExternalObjectReference = modulereference dot objectreference\nExternalObjectSetReference = modulereference dot objectsetreference\n\nUsefulObjectClassReference = %s\"TYPE-IDENTIFIER\" / %s\"ABSTRACT-SYNTAX\"\n\n; 9 Information object class definition and assignment\nObjectClassAssignment = objectclassreference asn1ment ObjectClass\nObjectClass = DefinedObjectClass\n / ObjectClassDefn\n / ParameterizedObjectClass\n\nObjectClassDefn = %s\"CLASS\" lbrace FieldSpec *(comma FieldSpec) rbrace [WithSyntaxSpec]\nWithSyntaxSpec = %s\"WITH\" msp %s\"SYNTAX\" msp SyntaxList\nFieldSpec = TypeFieldSpec\n / FixedTypeValueFieldSpec\n / VariableTypeValueFieldSpec\n / FixedTypeValueSetFieldSpec\n / VariableTypeValueSetFieldSpec\n / ObjectFieldSpec\n / ObjectSetFieldSpec\n\nTypeFieldSpec = typefieldreference [TypeOptionalitySpec]\nTypeOptionalitySpec = OPTIONAL / DEFAULT Type\nFixedTypeValueFieldSpec = valuefieldreference Type [%s\"UNIQUE\"] sp [ValueOptionalitySpec]\nValueOptionalitySpec = OPTIONAL / DEFAULT Value\nVariableTypeValueFieldSpec = valuefieldreference FieldName [ValueOptionalitySpec]\nFixedTypeValueSetFieldSpec = valuesetfieldreference Type [ValueSetOptionalitySpec]\nValueSetOptionalitySpec = OPTIONAL / DEFAULT ValueSet\nVariableTypeValueSetFieldSpec = valuesetfieldreference FieldName [ValueSetOptionalitySpec]\nObjectFieldSpec = objectfieldreference DefinedObjectClass [ObjectOptionalitySpec]\nObjectOptionalitySpec = OPTIONAL / DEFAULT Object\nObjectSetFieldSpec = objectsetfieldreference DefinedObjectClass [ObjectSetOptionalitySpec]\nObjectSetOptionalitySpec = OPTIONAL / DEFAULT ObjectSet\n\nPrimitiveFieldName = typefieldreference\n / valuefieldreference\n / valuesetfieldreference\n / objectfieldreference\n / objectsetfieldreference\n\nFieldName = PrimitiveFieldName *(dot PrimitiveFieldName)\n\n; 10 Syntax List\nSyntaxList = lbrace *(TokenOrGroupSpec) rbrace\nTokenOrGroupSpec = RequiredToken / OptionalGroup\nOptionalGroup = lbracket *(TokenOrGroupSpec) rbracket\nRequiredToken = Literal / PrimitiveFieldName\nLiteral = word / \",\"\n\n; 11 Information object definition and assignment\nObjectAssignment = objectreference DefinedObjectClass asn1ment Object\nObject = DefinedObject\n / ObjectDefn\n / ObjectFromObject\n / ParameterizedObject\n\nObjectDefn = DefaultSyntax / DefinedSyntax\nDefaultSyntax = lbrace FieldSetting *(comma FieldSetting) rbrace\nFieldSetting = PrimitiveFieldName Setting\nDefinedSyntax = lbrace *DefinedSyntaxToken rbrace\nDefinedSyntaxToken = Literal / Setting\nSetting = Type\n / Value\n / ValueSet\n / Object\n / ObjectSet\n\n; 12 Information object set definition and assignment\nObjectSetAssignment = objectsetreference DefinedObjectClass asn1ment ObjectSet\nObjectSet = lbrace ObjectSetSpec rbrace\nObjectSetSpec = RootElementSetSpec\n / [RootElementSetSpec comma] \"...\" [comma AdditionalElementSetSpec]\nObjectSetElements = Object\n / DefinedObjectSet\n / ObjectSetFromObjects\n / ParameterizedObjectSet\n\n; 14 Notation for the object class field type\nObjectClassFieldType = DefinedObjectClass dot FieldName\nObjectClassFieldValue = OpenTypeFieldVal / FixedTypeFieldVal\nOpenTypeFieldVal = Type colon Value\nFixedTypeFieldVal = BuiltinValue / ReferencedValue\n\n; 15 Information from objects\nInformationFromObjects = ValueFromObject\n / ValueSetFromObjects\n / TypeFromObject\n / ObjectFromObject\n / ObjectSetFromObjects\nValueFromObject = ReferencedObjects dot FieldName\nValueSetFromObjects = ReferencedObjects dot FieldName\nTypeFromObject = ReferencedObjects dot FieldName\nObjectFromObject = ReferencedObjects dot FieldName\nObjectSetFromObjects = ReferencedObjects dot FieldName\nReferencedObjects = DefinedObject\n / ParameterizedObject\n / DefinedObjectSet\n / ParameterizedObjectSet\n\nInstanceOfType = %s\"INSTANCE\" OF DefinedObjectClass\nInstanceOfValue = Value\n\n; Rec. ITU-T X.682 (08/2015)\nGeneralConstraint = UserDefinedConstraint / TableConstraint / ContentsConstraint\nUserDefinedConstraint = %s\"CONSTRAINED\" msp %s\"BY\" lbrace [UserDefinedConstraintParameter] *(comma UserDefinedConstraintParameter) rbrace\nUserDefinedConstraintParameter = Governor colon Value\n / Governor colon Object\n / DefinedObjectSet\n / Type\n / DefinedObjectClass\nTableConstraint = SimpleTableConstraint / ComponentRelationConstraint\nSimpleTableConstraint = ObjectSet \nComponentRelationConstraint = lbrace DefinedObjectSet rbrace lbrace AtNotation *(comma AtNotation) rbrace\nAtNotation = \"@\" sp ComponentIdList / \"@.\" *(\".\") sp ComponentIdList\nComponentIdList = identifier *(dot identifier)\n\n; Rec. ITU-T X.683 (08/2015)\nParameterizedAssignment = ParameterizedTypeAssignment\n / ParameterizedValueAssignment\n / ParameterizedValueSetTypeAssignment\n / ParameterizedObjectClassAssignment\n / ParameterizedObjectAssignment\n / ParameterizedObjectSetAssignment\n\nParameterizedTypeAssignment = typereference ParameterList asn1ment Type\nParameterizedValueAssignment = valuereference ParameterList Type asn1ment Value\nParameterizedValueSetTypeAssignment = typereference ParameterList Type asn1ment ValueSet\nParameterizedObjectClassAssignment = objectclassreference ParameterList asn1ment ObjectClass\nParameterizedObjectAssignment = objectreference ParameterList DefinedObjectClass asn1ment Object\nParameterizedObjectSetAssignment = objectsetreference ParameterList DefinedObjectClass asn1ment ObjectSet\nParameterList = lbrace Parameter *(comma Parameter) rbrace\nParameter = ParamGovernor colon DummyReference / DummyReference\nParamGovernor = Governor / DummyGovernor\nGovernor = Type / DefinedObjectClass\nDummyGovernor = DummyReference\nDummyReference = Reference\nParameterizedReference = Reference [lbrace rbrace]\nSimpleDefinedType = ExternalTypeReference / typereference\nSimpleDefinedValue = ExternalValueReference / valuereference\nParameterizedType = SimpleDefinedType ActualParameterList\nParameterizedValue = SimpleDefinedValue ActualParameterList\nParameterizedValueSetType = SimpleDefinedType ActualParameterList\nParameterizedObjectClass = DefinedObjectClass ActualParameterList\nParameterizedObjectSet = DefinedObjectSet ActualParameterList\nParameterizedObject = DefinedObject ActualParameterList\nActualParameterList = lbrace ActualParameter *(comma ActualParameter) rbrace\nActualParameter = Type / Value / ValueSet / DefinedObjectClass / Object / ObjectSet\n" }
UTF-8
ABNF
35,693
Fabusuyi012
9db7d2cd6162f910655efa66ad9add7eaa806f0b
34686c3a01efce57c2164db49f3bea588108ce58
/Docs/AstroGrammar.abnf
782adb6f0b5a81ffa1644a39f0f5c56aee8caaed
Fabusuyi012/Astro
{ "content": "// 19/06/17 //\r\nlanguage astro\r\n\r\n// PROGRAM\r\nmodule =\r\n | \r\n\r\n\r\n// DECLARATIONS\r\ndeclaration =\r\n | type | abst | glob_fun | scop_fun | scop_fun \r\n | glob_obj | scop_obj | inln_obj \r\n | glob_subj | scop_subj | glob_lazy_subj | scop_lazy_subj\r\n\r\nscop_declaration = \r\n | glob_fun | scop_fun | scop_fun \r\n | glob_obj | scop_obj | inln_obj \r\n | glob_subj | scop_subj | glob_lazy_subj | scop_lazy_subj\r\n\r\ntype =\r\n | 'type' type_head\r\n | 'type' IND type_head (NL type_head)* DED\r\n\r\nabst =\r\n | 'abst' abst_head\r\n | 'abst' IND abst_head (NL abst_head)* DED\r\n\r\nglob_fun =\r\n | 'fun' glob_fun_head\r\n | 'fun' IND glob_fun_head (NL glob_fun_head)* DED\r\n\r\nscop_fun =\r\n | 'fun' scop_fun_head\r\n | 'fun' IND scop_fun_head (NL scop_fun_head)* DED\r\n\r\nglob_obj =\r\n | 'obj' glob_obj_head\r\n | 'obj' IND glob_obj_head (NL glob_obj_head)* DED\r\n\r\nscop_obj =\r\n | 'obj' scop_obj_head\r\n | 'obj' IND scop_obj_head (NL scop_obj_head)* DED\r\n\r\ninln_obj = \r\n | 'obj' inln_obj_head\r\n\r\nglob_subj = \r\n | ('var' | 'let') glob_subj_head\r\n | ('var' | 'let') IND glob_subj_head (NL glob_subj_head)* DED\r\n\r\nscop_subj = \r\n | ('var' | 'let') scop_subj_head\r\n | ('var' | 'let') IND scop_subj_head (NL scop_subj_head)* DED\r\n\r\nglob_lazy_subj = \r\n | ('var' | 'let') glob_subj_head\r\n | ('var' | 'let') IND glob_subj_head (NL glob_subj_head)* DED\r\n\r\nscop_lazy_subj = \r\n | ('var' | 'let') scop_lazy_subj_head\r\n | ('var' | 'let') IND scop_lazy_subj_head (NL scop_subj_head)* DED\r\n\r\nabst_element =\r\n | glob_name ('(' type_params? ')')?\r\n\r\n\r\n\r\n\r\n// DECLARATION HEADS\r\ntype_head = \r\n | glob_name ('<' NS ':' name (',' name)*)? ':' type_expr_or_block\r\n | glob_name '(' type_params? ')' ('<' NS ':' name (',' name)*)?\r\n | glob_name ('=' name)? (',' glob_name ('=' name)?)*\r\n\r\nabst_head =\r\n | glob_name ('<' NS ':' name (',' name)*)? ':' abst_expr_or_block\r\n | glob_name '(' type_params? ')' ('<' NS ':' name (',' name)*)? ':' abst_el_expr_or_block\r\n | glob_name ('=' name)? (',' glob_name ('=' name)?)*\r\n\r\nglob_fun_head =\r\n | glob_name '(' fun_params? ')' (':' expr_or_block)?\r\n | glob_name ('=' name)? (',' glob_name ('=' name)?)*\r\n\r\nscop_fun_head =\r\n | name '(' fun_params? ')' (':' expr_or_block)?\r\n | name ('=' name)? (',' name ('=' name)?)*\r\n\r\nglob_obj_head =\r\n | glob_name ('<' NS ':' name (',' name)*)? ':' type_expr_or_block\r\n | glob_name '(' type_params? ')' ('<' NS ':' name (',' name)*)? \r\n\r\nscop_obj_head =\r\n | name ('<' NS ':' name (',' name)*)? ':' type_expr_or_block\r\n | name '(' fun_params? ')' ('<' NS ':' name (',' name)*)?\r\n\r\ninln_obj_head = \r\n | name ('<' NS ':' name (',' name)*)? ':' inln_obj_expr_or_block\r\n | name '(' fun_params? ')' ('<' NS ':' name (',' name)*)?\r\n\r\nglob_subj_head = \r\n | name (',' name)*\r\n | glob_assign_pattern '=' subj_expr_or_block\r\n\r\nscop_subj_head = \r\n | name (',' name)*\r\n | assign_pattern '=' subj_expr_or_block\r\n\r\nglob_lazy_subj_head = \r\n | glob_name (',' glob_name)*\r\n | glob_assign_pattern ':' NS '=' subj_expr_or_block\r\n\r\nscop_lazy_subj_head = \r\n | glob_name (',' glob_name)*\r\n | assign_pattern ':' NS '=' subj_expr_or_block\r\n\r\n\r\n\r\n\r\n// ARGUMENTS\r\nfun_param_name =\r\n | name ('.' name?)? (':' expr)?\r\n\r\ntype_param_name = \r\n | name ('.' name?)? '`'? (':' expr)? \r\n\r\nparams =\r\n | fun_param_name (',' fun_param_name)*\r\n\r\nfun_params =\r\n | params ('<' fun_param_name (',' fun_param_name)* '>')?\r\n | '<' fun_param_name (',' fun_param_name)* '>' (params)?\r\n \r\ntype_params =\r\n | type_param_name (',' type_param_name)* ('<' fun_param_name (',' fun_param_name)* '>')?\r\n | '<' fun_param_name (',' fun_param_name)* '>' (type_param_name (',' type_param_name)*)?\r\n\r\n\r\n\r\n\r\n// EXPRESSION-OR-BLOCK\r\nexpr_or_block = \r\n | expr NL\r\n | IND block DED\r\n\r\ninln_obj_expr_or_block =\r\n | glob_subj (NL glob_subj)* (scop_fun (NL scop_fun)*)?\r\n | scop_fun (NL scop_fun)*\r\n\r\nabst_el_expr_or_block = \r\n | glob_subj (NL glob_subj)* (NL abst_element (CNL? abst_element)*)?\r\n | abst_element (CNL? abst_element)* (glob_subj (NL glob_subj)*)?\r\n\r\ntype_expr_or_block = \r\n | glob_subj (NL glob_subj)*\r\n\r\nvar_expr_or_block = \r\n | expr_or_block | get_set\r\n\r\n\r\n\r\n\r\n// NAMES\r\nname = \r\n | NAME\r\n\r\nunnamed_arg =\r\n | '$' NS INTNUM\r\n\r\nglob_name = \r\n | name '`'?\r\n\r\nname_or_ph =\r\n | name | PH\r\n\r\nglob_name_or_ph =\r\n | glob_name | PH\r\n\r\nname_or_outter =\r\n | ('$' NS)? name\r\n\r\nnamed_expr = \r\n | name ':' parens_expr\r\n\r\npattern_name =\r\n | '.' NS '.' NS '.' NS name? | name | ph\r\n\r\nglob_pattern_name =\r\n | '.' NS '.' NS '.' NS glob_name? | glob_name | ph\r\n\r\nif_name =\r\n | ('$' | '!') NS)? name\r\n\r\nif_pattern_name = \r\n | '.' NS '.' NS '.' NS if_name? | if_name | ph\r\n\r\nif_name_or_ph = \r\n | if_name | ph\r\n\r\n\r\n\r\n\r\n// PATTERNS \r\nassign_pattern =\r\n | pattern_name (',' pattern_name)*\r\n | '[' pattern_name (',' pattern_name)* ']'\r\n | '(' pattern_name (',' pattern_name)* ')'\r\n | '{' pattern_name (',' pattern_name)* '}'\r\n | '[' name_or_ph '|' name_or_ph ']'\r\n | '(' name_or_ph '|' name_or_ph ')'\r\n | '{' name_or_ph '|' name_or_ph '}'\r\n | '{' name_or_ph ':' name_or_ph '}'\r\n\r\nglob_assign_pattern = \r\n | glob_pattern_name (',' glob_pattern_name)*\r\n | '[' glob_pattern_name (',' glob_pattern_name)* ']'\r\n | '(' glob_pattern_name (',' glob_pattern_name)* ')'\r\n | '{' glob_pattern_name (',' glob_pattern_name)* '}'\r\n | '[' glob_name_or_ph '|' glob_name_or_ph ']'\r\n | '(' glob_name_or_ph '|' glob_name_or_ph ')'\r\n | '{' glob_name_or_ph '|' glob_name_or_ph '}'\r\n | '{' glob_name_or_ph ':' glob_name_or_ph '}'\r\n\r\nif_assign_pattern =\r\n | if_pattern_name (',' if_pattern_name)*\r\n | '[' if_pattern_name (',' if_pattern_name)* ']'\r\n | '(' if_pattern_name (',' if_pattern_name)* ')'\r\n | '{' if_pattern_name (',' if_pattern_name)* '}'\r\n | '[' if_name_or_ph '|' if_name_or_ph ']'\r\n | '(' if_name_or_ph '|' if_name_or_ph ')'\r\n | '{' if_name_or_ph '|' if_name_or_ph '}'\r\n | '{' if_name_or_ph ':' if_name_or_ph '}'\r\n\r\nlist_comp_yield_pattern = // TO BE REMOVED \r\n | parens_expr\r\n | '[' parens_expr ']'\r\n | '{' parens_expr ':' parens_expr '}'\r\n | '{' parens_expr '}'\r\n | fun_call\r\n\r\nmatch_pattern = // TODO\r\n | \r\n\r\n\r\n\r\n\r\n// LAMBDAS\r\nlambda = \r\n | ('|' params '|')? '-' NS '>' expr_or_block\r\n | '|' assign_pattern (',' assign_pattern)* '|' '-' NS '>' expr_or_block\r\n\r\niife =\r\n | '(' parens_expr (':' assign_pattern)? (',' parens_expr (':' assign_pattern)? )* ')' '-' NS '>' expr_or_block\r\n\r\n\r\n\r\n// CONDITIONAL STRUCTURES\r\ncond_structure = \r\n | if | if_for | if_while | if_try \r\n | for | for_for | for_while | for_try\r\n | while | while_if | while_for | while_while | while_try \r\n | try | try_if | try_for | try_while \r\n | defer\r\n\r\nctrl_primitive =\r\n | break | spill | continue | yield | delegate | await | return | raise\r\n\r\nmatch = \r\n | '|' match_pattern '-' NS '>' expr_or_block\r\n\r\ndo_match = \r\n | parens_expr 'if' parens_expr NL (match)*\r\n\r\nlist_comp =\r\n | list_comp_yield_pattern ('<' NS '<' for_head_content (',' if_head_content)*)+\r\n\r\nif_head =\r\n | 'if' if_head_content\r\n\r\nif_head_content =\r\n | (if_assign_pattern '<' NL '<')? parens_expr\r\n\r\nwhile_head =\r\n | 'while' if_head_content\r\n\r\nfor_head =\r\n | 'for' for_head_content\r\n\r\nfor_head_content =\r\n | if_assign_pattern ('<' NS '<') parens_expr\r\n\r\ntry_head = \r\n | 'try' (if_head)?\r\n\r\nelif =\r\n | 'elif' if_head_content ':' expr_or_block\r\n\r\nelse =\r\n | 'else' ':' expr_or_block\r\n\r\nend =\r\n | 'end' ':' expr_or_block\r\n\r\ncatch =\r\n | 'catch' '(' name ')' ':' expr_or_block\r\n\r\nensure =\r\n | 'ensure' ':' expr_or_block\r\n\r\nif =\r\n | if_head ':' expr_or_block (elif* else)?\r\n\r\nif_for =\r\n | if_head CNL? for_head ':' expr_or_block (end (elif* else)?)?\r\n \r\nif_while =\r\n | if_head CNL? while_head ':' expr_or_block (end (elif* else)?)?\r\n \r\nif_try =\r\n | if_head CNL? try_head ':' expr_or_block (catch ensure? (elif* else)?)?\r\n\r\nfor =\r\n | for_head ':' expr_or_block end?\r\n \r\nfor_for =\r\n | for_head CNL? for_head ':' expr_or_block (end end?)?\r\n \r\nfor_while =\r\n | for_head CNL? while_head ':' expr_or_block (end end?)?\r\n \r\nfor_try =\r\n | for_head CNL? try_head ':' expr_or_block (catch ensure? end?)?\r\n\r\nwhile =\r\n | while_head ':' expr_or_block end?\r\n \r\nwhile_if =\r\n | while_head CNL? if_head ':' expr_or_block ((elif* else)? end)?\r\n \r\nwhile_for =\r\n | while_head CNL? for_head ':' expr_or_block (end end?)?\r\n \r\nwhile_while =\r\n | while_head CNL? while_head ':' expr_or_block (end end?)? \r\n \r\nwhile_try =\r\n | while_head CNL? try_head ':' expr_or_block (catch ensure? end?)?\r\n \r\ntry =\r\n | try_head ':' expr_or_block (catch ensure?)?\r\n \r\ntry_if =\r\n | try_head CNL? if_head ':' expr_or_block ((elif* else)? catch ensure?)?\r\n \r\ntry_for =\r\n | try_head CNL? for_head ':' expr_or_block (end? catch ensure?)?\r\n \r\ntry_while =\r\n | try_head CNL? while_head ':' expr_or_block (end? catch ensure?)?\r\n\r\ndefer =\r\n | 'defer' ':' expr_or_block\r\n\r\nbreak =\r\n | 'break' (()? 'at' name)?\r\n\r\nspill =\r\n | 'spill'\r\n\r\ncontinue = \r\n | 'continue' (()? 'at' name)?\r\n\r\nyield = \r\n | 'yield' (()? 'at' name)?\r\n\r\nreturn =\r\n | 'return' (()? 'at' name)?\r\n\r\nraise =\r\n | 'raise' parens_expr\r\n\r\ndelegate =\r\n | 'delegate' parens_expr\r\n\r\nawait =\r\n | 'await' parens_expr\r\n\r\n\r\n\r\n \r\n // CONDITIONAL EXPRESSIONS\r\ncond_expr =\r\n | if_expr | for_expr | while_expr\r\n\r\nif_expr =\r\n | parens_expr if_head ('else' parens_expr)?\r\n\r\nfor_expr =\r\n | parens_expr for_head (end parens_expr)?\r\n\r\nwhile_expr =\r\n | parens_expr 'while' if_head_content\r\n\r\n\r\n\r\n\r\n\r\n// ANNOTATIONS // TODO \r\n\r\n\r\n\r\n\r\n\r\n// EXPRESSIONS\r\nexpr =\r\n | scop_declaration\r\n | cond_structure\r\n | simple_expr (';' simple_expr)*\r\n | expr ';'\r\n \r\nparens_expr = \r\n | '(' scop_declaration ')'\r\n | '(' cond_structure ')'\r\n | '(' simple_expr (';' simple_expr)+ ')'\r\n | simple_expr\r\n\r\nsimple_expr = \r\n | ('ref' | 'val' | 'iso' | 'acq' | 'const') expr\r\n | atom\r\n | cond_expr\r\n | fix_expr \r\n | lambda\r\n | iife\r\n | ctrl_primitive\r\n | ...\r\n\r\natom =\r\n | literals \r\n | '(' expr ')' \r\n | dot_or_arrow\r\n | subj_or_fun_call\r\n | indexer\r\n | not \r\n | PH\r\n | PASS\r\n | ... \r\n\r\nfix_expr = \r\n | prefix_expr \r\n | infix_expr\r\n | postfix_expr\r\n\r\ninfix_expr =\r\n | assign_pattern '=' expr_or_block\r\n | parens_expr dot_op? infix_op parens_expr\r\n\r\nprefix_expr =\r\n | prefix_op atom\r\n\r\npostfix_expr =\r\n | parens_expr postfix_op\r\n | atom postfix_op\r\n\r\nsubj_or_fun_call = \r\n | name | fun_call \r\n\r\nfun_call = \r\n | name ('[' name (',' name)* ']')? fun_arg // values in generics not supported yet\r\n\r\nindexer =\r\n | name index\r\n\r\ndot_or_arrow =\r\n | dot | arrow | cascade_dot\r\n\r\ncascade_dot = \r\n | '.' NS '|' (cascade_arg (',' cascade_arg)* '|' NS dot\r\n | '|' cascade_arg (',' cascade_arg)* '|' NS dot\r\n\r\ncascade_arg = \r\n | cascade_infix_expr | cascade_postfix_expr | cascade_single_arg\r\n\r\ncascade_infix_expr = \r\n | cascade_single_arg infix_op cascade_single_arg\r\n\r\ncascade_postfix_expr = \r\n | cascade_single_arg postfix_op\r\n\r\ncascade_single_arg = \r\n | subj_or_fun_call (dot_or_arrow)*\r\n\r\ndot = \r\n | NL? '.' (NS dot_op)? NS subj_or_fun_call \r\n | NL? '.' NS (index | arg_tuple)\r\n\r\narrow =\r\n | NL? '=' NS '>' (NS dot_op)? NS subj_or_fun_call \r\n | NL? '=' NS '>' NS (index | arg_tuple) \r\n\r\nindex =\r\n | '[' parens_expr ']'\r\n | range_literal\r\n\r\nfun_arg =\r\n | arg_tuple\r\n | [^NS] (subj_or_fun_call | regex_literal | num_literal | lambda )\r\n\r\narg_tuple = \r\n | '(' ((parens_expr | named_expr) (',' (parens_expr | named_expr))*)? ')'\r\n\r\nnot =\r\n | '!' subj_or_fun_call \r\n | '!' '(' expr ')'\r\n\r\nget_set =\r\n | '(' expr ')' '>' NS '>' '(' expr ')'\r\n \r\n\r\n\r\n// LITERALS\r\nliterals =\r\n | ns_string_literal | STRING\r\n | ns_int_literal | INT\r\n | ns_float_literal | FLOAT\r\n | ns_regex_literal | regex_literal\r\n | ns_list_literal | list_literal \r\n | ns_tuple_literal | tuple_literal | open_tuple_literal\r\n | ns_set_literal | set_literal\r\n | ns_dict_literal | dict_literal\r\n\r\nns_string_literal = \r\n | name NS '_' NS STRING \r\n\r\nlist_literal = \r\n | ((INT (('x' | '×') INT)*)? '[' name ']')? '[' ']'\r\n | ((INT (('x' | '×') INT)*)? '[' name ']')? '[' parens_expr (',' parens_expr)* ']'\r\n | ((INT (('x' | '×') INT)*)? '[' name ']')? '[' nested_list ']'\r\n\r\nrange_literal =\r\n | '[' parens_expr ':' parens_expr? (':' parens_expr)? ']'\r\n | '[' parens_expr? ':' parens_expr (':' parens_expr)? ']'\r\n\r\nnested_list = \r\n | list_literal (CNL? list_literal)+\r\n\r\nns_list_literal = \r\n | name NS '_' NS list_literal\r\n\r\nopen_tuple_literal =\r\n | parens_expr (',' parens_expr)+ \r\n\r\ntuple_literal = \r\n | '(' ')'\r\n | '(' parens_expr ',' ')'\r\n | '(' parens_expr (',' parens_expr)+ ')'\r\n\r\nns_tuple_literal = \r\n | name NS '_' NS tuple_literal\r\n\r\nnamed_tuple_literal = // tuple key should be statically determinable\r\n | '(' name ':' parens_expr (',' name ':' parens_expr)* ')'\r\n\r\nns_named_tuple_literal = \r\n | name NS '_' NS tuple_literal\r\n\r\nset_literal =\r\n | '{' '}'\r\n | '{' parens_expr (',' parens_expr)* '}'\r\n | '{' nested_set '}'\r\n\r\nnested_set = \r\n | set_literal (CNL? set_literal)+\r\n\r\nns_set_literal = \r\n | name NS '_' NS set_literal\r\n\r\ndict_key = \r\n | '$' NS name | parens_expr\r\n\r\ndict_literal = \r\n | '{' ':' '}'\r\n | '{' dict_key ':' parens_expr (',' dict_key ':' parens_expr)* '}'\r\n | '{' nested_dict '}'\r\n\r\nnested_dict = \r\n | dict_key ':' dict_literal (CNL? dict_key ':' dict_literal)+\r\n\r\nns_dict_literal = \r\n | name NS '_' NS dict_literal\r\n\r\nregex_literal = \r\n | '/' POSSIBLEREGEX '/'\r\n\r\nns_regex_literal = \r\n | name NS '_' NS regex_literal\r\n\r\nns_int_literal =\r\n | INT NS '_'? name \r\n\r\nns_float_literal =\r\n | FLOAT NS '_'? name \r\n\r\n\r\n// OPERATORS\r\ninfix_op = // IRRELEVANT. These will be categorized under names eventually\r\n | '+' | '-' | '*' | '/' | '&' | '|' \r\n | 'in' \r\n | ... // REGISTERED NAMES\r\n\r\nprefix_op = // IRRELEVANT. These will be categorized under names eventually\r\n | '+' | '-' | '+' NS '+'\r\n | ... // REGISTERED NAMES\r\n\r\npostfix_op = // IRRELEVANT. These will be categorized under names eventually\r\n | ... // REGISTERED NAMES\r\n\r\ndot_op =\r\n | '!' | '@' | '.'\r\n\r\n\r\n\r\n// SPECIAL PUNCTUATORS\r\nCNL = // Comma or Newline\r\n | ',' NL?\r\n | NL\r\n\r\nNL = \r\n | NEWLINE \r\n | ';'\r\n\r\nIND =\r\n | INDENT \r\n\r\nDED = \r\n | DEDENT \r\n | '\\\\' NS '\\\\'\r\n | EOI\r\n // | NL '..' NL\r\n\r\nPH = \r\n | '_'\r\n\r\nPASS = \r\n | 'pass'\r\n\r\n\r\n\r\n\r\n\r\n// LEXED UNITS \r\nNAME = |\r\n\r\nNEWLINE = |\r\n\r\nIND = |\r\n\r\nDEDENT = |\r\n\r\nEOL = |\r\n\r\nINT = |\r\n\r\nFLOAT = |\r\n\r\nSTRING = |\r\n\r\n\r\n\r\n\r\n\r\n// SPECIAL VALUES \r\nNS = |\r\n\r\nPOSSIBLEREGEX = |" }
UTF-8
ABNF
14,844
soramitsu
01cbd843a4bd68e4d12a16e7d9238e3fd899dd1f
f6872c3ae9b368ecf4c847ec64a6b083af01abf7
/src/main/java/jp/co/soramitsu/sora/sdk/did/parser/primitive.abnf
d7060a9d518cc569cf31b4de96b24ac3c4d63aed
soramitsu/sora-sdk
{ "content": "ALPHA = %x41-5A / %x61-7A;\nHEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\";\nDIGIT = %x30-39;\nCHAR = %x01-7F;\n" }
UTF-8
ABNF
116
wangjianjun0707
8e75579f917d4e36b6745ee7bff2af1ca9a23ffd
5aeabf572a0c5a3831ad10a714c532c19f577b02
/demo/calc.abnf
4b2f871cfc9e51e1d9e2d601c0b713eeedd220a0
wangjianjun0707/abnf-parser-generator
{ "content": "E = E \"+\" T / T\nT = T \"*\" F / F\nF = \"(\" E \")\" / 1*%x30-39\n" }
UTF-8
ABNF
58
bver
ac1b534d5557e2afe0678e4a5b3ad67be2315180
6d0832b3aae9e1efe02476217a3b391990ddd0fb
/sample/pid/grammar_complex.abnf
e7fefd3b78f6915a8b629c125355d538caf01df3
bver/GERET
{ "content": "\nexpr = expr op expr / \n \"(\" expr op expr \")\" /\n func \"(\" expr \")\" /\n var\n\nop = \"+\" / \"-\" / \"/\" / \"*\"\n\nfunc = \"sin\" / \"cos\" / \"tan\" / \"exp\" / \"log\" / \"sqrt\" / \"sinh\" / \"cosh\" / \"tanh\"\n\nvar = constant / \"x[1]\" / \"x[2]\" / \"x[3]\" / \"x[4]\" / \"x[5]\" / \"x[6]\" / \"x[7]\"\n \nconstant = decimal / scientific / neg-decimal / neg-scientific\n\ndecimal = 1*3DIGIT \".\" 1*3DIGIT\n\nscientific = DIGIT \".\" 1*3DIGIT \"e\" [ \"-\" ] 1*2DIGIT\n\nneg-decimal = \"(-\" decimal \")\"\n\nneg-scientific = \"(-\" scientific \")\"\n\n" }
UTF-8
ABNF
507
phluid61
4e4cfd6b0454b53b98822ae93c04ef475e56e8e8
a002c5379d4f6770a748ecc554a6314e13015f3c
/header-structure.abnf
8cf999faad00b2e729e32553770c9c8ae4a71f41
phluid61/abnf-tool
{ "content": "dictionary = dictionary-member 0*1023( OWS \",\" OWS dictionary-member )\ndictionary-member = identifier \"=\" item\nlist = list-member 0*1023( OWS \",\" OWS list-member )\nlist-member = item\nparam-list = param-id 0*255( OWS \",\" OWS param-id )\nparam-id = identifier 0*256( OWS \";\" OWS identifier [ \"=\" item ] )\nitem = integer / float / string / identifier / binary\ninteger = [\"-\"] 1*19DIGIT\nfloat = [\"-\"] (\n DIGIT \".\" 1*14DIGIT /\n 2DIGIT \".\" 1*13DIGIT /\n 3DIGIT \".\" 1*12DIGIT /\n 4DIGIT \".\" 1*11DIGIT /\n 5DIGIT \".\" 1*10DIGIT /\n 6DIGIT \".\" 1*9DIGIT /\n 7DIGIT \".\" 1*8DIGIT /\n 8DIGIT \".\" 1*7DIGIT /\n 9DIGIT \".\" 1*6DIGIT /\n 10DIGIT \".\" 1*5DIGIT /\n 11DIGIT \".\" 1*4DIGIT /\n 12DIGIT \".\" 1*3DIGIT /\n 13DIGIT \".\" 1*2DIGIT /\n 14DIGIT \".\" 1DIGIT )\nstring = DQUOTE 0*1024(char) DQUOTE\nchar = unescaped / escape ( DQUOTE / \"\\\" )\nunescaped = %x20-21 / %x23-5B / %x5D-7E\nescape = \"\\\"\nidentifier = lcalpha 0*255( lcalpha / DIGIT / \"_\" / \"-\"/ \"*\" / \"/\" )\nlcalpha = %x61-7A ; a-z\nbinary = \"*\" 0*21846(base64) \"*\"\nbase64 = ALPHA / DIGIT / \"+\" / \"/\" / \"=\"\n\n" }
UTF-8
ABNF
1,205
Nzen
d3b6415c8d033a8be4365a102c1cec935e4c27f6
df6109bdbe24bf5984380226e91b698010b57bfe
/eno.abnf
c735defe43c231cb25a0c2906dca49e267626dc6
Nzen/eno
{ "content": ";; *************************************\n;; * *\n;; * WORK IN PROGRESS *\n;; * *\n;; *************************************\n\n\ndocument = instruction *( newline instruction )\n\n\n;; Whitespace\n\nignored-whitespace = whitespace\nretained-whitespace = whitespace\n\nwhitespace = *( SP / HTAB )\n\nSP = U+0020 ; \" \" (Space)\nHTAB = U+0009 ; \" \" (Horizontal tab)\n\n\n;; Newline\n\nnewline = LF / CR LF\n\nLF = U+000A ; \"\\n\" (Line feed)\nCR = U+000D ; \"\\r\" (Carriage return)\n\n\n;; Comment\n\ncomment = comment-operator ignored-whitespace optional-token ignored-whitespace\n\ncomment-operator = GREATER-THAN-SIGN\n\nGREATER-THAN-SIGN = U+003E ; \">\"\n\n\n;; Fieldset entry\n\nfieldset-entry = unescaped-name fieldset-entry-operator value\n\nfieldset-entry-operator = EQUALS-SIGN\n\nEQUALS-SIGN = U+003D ; \"=\"\n\n\n;; Name\n\nname-instruction = name name-operator\n\nname = escaped-name / unescaped-name\n\nescaped-name = ignored-whitespace 1*BACKTICK ignored-whitespace required-token ignored-whitespace 1*BACKTICK ignored-whitespace ; Note: The number of backticks at the start and end must be the same\nunescaped-name = ignored-whitespace required-token ignored-whitespace\n\nname-operator = COLON\n\nBACKTICK = U+0060 ; \"`\"\nCOLON = U+003A ; \":\"\n\n\n;; Line continuation\n\nline-continuation = ( line-continuation-operator / newline-continuation-operator ) value\n\nnewline-continuation-operator = VERTICAL-BAR\nline-continuation-operator = BACKSLASH\n\nVERTICAL-BAR = U+007C ; \"|\"\nBACKSLASH = U+005C ; \"\\\"\n\n\n;; List item\n\nlist-item = list-item-operator value\n\nlist-item-operator = DASH\n\nDASH = U+002D ; \"-\"\n\n\n;; Section\n\nsection = section-operator TODO\n\nsection-operator = 1*HASH\n\nHASH = U+0023\n\n\n;; Token\n\noptional-token = *non-eol\nrequired-token = 1*non-eol\n\nnon-eol = %x09\nnon-eol =/ %x20-10FFFF\n\n\n;; Value\n\nvalue = ignored-whitespace optional-token ignored-whitespace\n" }
UTF-8
ABNF
1,915
web-projects
247d1e9f27617d54edd30867a79fedd946305f84
ea416f4242506d6aeeaace5c60756d7b17d77a10
/AccuStudioExecutables/RuleLib/TELib/Template2.abnf
b55f4b8d69b8725237508a18f857a2a4ff9b692c
web-projects/AccuStudio
{ "content": "// Handle a Screen with a single field of digits that selects an option.\n// The <Home> key snaps to the field, and the field need not be scoped.\n// Dialog Grammar: |DialogName|\n//\n\n#include \"|AppName|_res.h\"\n#include \"vkeys.h\"\n\n#start <|DialogName|\n\n<|DialogName|> = \n\n <selection> => DEPRESS(VK_HOME)+SETFIELD(0, <selection>)+DEPRESS(VK_ENTER);\n\n\n<selection> = #(\t\n\t\t\toption 1 \t\t\t\t= 1,\t\t// List of options and their returned codes\n\t\t\toption 2\t\t\t\t= 2,\n\t\t\tsign off \t\t\t\t= 90,\n\t\t\tlog off \t\t\t\t= 90\t\t\t\n\t\t );\n\n" }
UTF-8
ABNF
505
hibari
ac3c45e5472ee60152a628607e71795b872d74ec
f01696c73fc0e6858a8fa5bf585bf1c0ea107ab8
/src/hibari/tutorial/misc-codes/ubf_c.abnf
d1f48679a21b3de49881a329ab04adfe626df838
hibari/hibari-doc
{ "content": "ubf-c = ubf-c-rpc-req\n / ubf-c-rpc-res\n / ubf-c-event-in\n / ubf-c-event-out\n\nubf-c-rpc-req = ubf-msg \"$\"\n\nubf-c-rpc-res = \"{\" (ubf-msg / ubf-error) \",\" ubf-nextstate \"}\" \"$\"\n\nubf-c-event-in = \"{\" 'event_in' \",\" ubf-msg \"}\" \"$\"\n\nubf-c-event-out = \"{\" 'event_out' \",\" ubf-msg \"}\" \"$\"\n\nubf-msg = ubf-a-term\n\nubf-nextstate = ubf-a-atom\n\nubf-error = ubf-client-error\n / ubf-server-error\n\nubf-client-error = \"{\" 'clientBrokeContract' \",\" ubf-msg \",\" ubf-expects-in \"}\" \"$\"\n\nubf-server-error = \"{\" 'serverBrokeContract' \",\" ubf-msg \",\" ubf-expects-out \"}\" \"$\"\n\nubf-expects-in = ubf-a-term ;; list of acceptable input types (for debugging purposes)\n\nubf-expects-out = ubf-a-term ;; list of acceptable output types (for debugging purposes)\n" }
UTF-8
ABNF
827
HaiFengZhiNeng
831a8e8dd9907ef06fb09c2fcc1bfc801fb0f6bb
b2619de33f6cb49bb4d49e0f9aa3d13a5d1e9159
/app/src/main/assets/abnf.abnf
ccbbf3a2a0d1d6836cb8ba1d7058e2c01909845d
HaiFengZhiNeng/FanFan
{ "content": "#ABNF 1.0 UTF-8;\nlanguage zh-CN; \nmode voice;\n\nroot $main;\n$main = $place1 去 $place2;\n$place1 = 北京|武汉|南京|天津|东京;\n$place2 = 上海|合肥;" }
UTF-8
ABNF
158
triflicacid
f739799ff0f76d54c5e5a8c9713a239831540780
5ac907275f3fdac9f9c9ff1857cdb84f37c9823c
/ABNF/tests/lexer/optional.abnf
39e36c0f8f9f095f7cf84ac63e0763cb9cbcf1c8
triflicacid/cpp-abnf
{ "content": "name = \"R\"[e]\"uben\"" }
UTF-8
ABNF
19
jmitchell
c7fff688f66d725a57a6649b9767bf025ea88fab
02a4a8ea98638ff0962c804a18f0643a56a8ca0a
/examples/abnf/repetitions.abnf
785af063cecb4a33836351a1c081e7899b29f6b4
jmitchell/abnf-to-tree-sitter
{ "content": "start = 5DIGIT / 1*ALPHA / *SP / *10CRLF\r\n" }
UTF-8
ABNF
42
sarubi
f4f7e9ca9d47fcd3b5a03537e1a8a4e1273670b7
7783b02083fe884518af0aaa7583eae38f91b773
/src/scim/scimfilter.bnf
874cdc563ac0b1ab9afa47f66c02784278671727
sarubi/scim-filter-apg-parser
{ "content": "PATH = attrPath / valuePath [subAttr];\n\nattrPath = [URI \":\"] ATTRNAME *1subAttr;\n\nvaluePath = attrPath \"[\" valFilter \"]\";\n\nvalFilter = attrExp / ( filter SP (\"and\" / \"or\") SP filter ) / *1\"not\" \"(\" valFilter \")\";\n\nattrExp = (attrPath SP \"pr\") / (attrPath SP compareOp SP compValue);\n\nfilter = ( attrExp filterDash ) / (valuePath filterDash) / ( *1\"not\" \"(\" filter \")\" filterDash );\n\nfilterDash = SP (\"and\" / \"or\") SP filter filterDash / \"\";\n\ncompValue = false / null / true / number / string;\n\ncompareOp = \"eq\" / \"ne\" / \"co\" / \"sw\" / \"ew\" / \"gt\" / \"lt\" / \"ge\" / \"le\";\n\nATTRNAME = ALPHA *(nameChar);\n\nnameChar = \"-\" / \"_\" / DIGIT / ALPHA;\n\nsubAttr = \".\" ATTRNAME;\n\nSP = %x20;\n\nALPHA = %x41-5A / %x61-7A ;\n\nDIGIT = %x30-39;\n\nstring = quotation-mark *char quotation-mark;\n\nchar = unescaped / escape ( %x22 / %x5C / %x2F / %x62 / %x66 / %x6E / %x72 / %x74 / %x75 4HEXDIG );\n\nescape = %x5C;\n\nquotation-mark = %x22;\n\nunescaped = %x20-21 / %x23-5B / %x5D-10FFFF;\n\nHEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\";\n\nfalse = %x66.61.6c.73.65;\n\nnull = %x6e.75.6c.6c;\n\ntrue = %x74.72.75.65;\n\nnumber = [ minus ] int [ frac ] [ exp ];\n\nexp = e [ minus / plus ] 1*DIGIT;\n\nfrac = decimal-point 1*DIGIT;\n\nint = zero / ( digit1-9 *DIGIT );\n\ndecimal-point = %x2E;\n\ndigit1-9 = %x31-39;\n\ne = %x65 / %x45;\n\nminus = %x2D;\n\nplus = %x2B;\n\nzero = %x30;\n\nURI = scheme \":\" hier-part [ \"?\" query ] [ \"#\" fragment ];\n\nhier-part = \"//\" authority path-abempty / path-absolute / path-rootless / path-empty;\n\nscheme = ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" );\n\nauthority = [ userinfo \"@\" ] host [ \":\" port ];\nuserinfo = *( unreserved / pct-encoded / sub-delims / \":\" );\nhost = IP-literal / IPv4address / reg-name;\nport = *DIGIT;\n\nIP-literal = \"[\" ( IPv6address / IPvFuture ) \"]\";\n\nIPvFuture = \"v\" 1*HEXDIG \".\" 1*( unreserved / sub-delims / \":\" );\n\nIPv6address = 6( h16 \":\" ) ls32\n / \"::\" 5( h16 \":\" ) ls32\n / [ h16 ] \"::\" 4( h16 \":\" ) ls32\n / [ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n / [ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n / [ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n / [ *4( h16 \":\" ) h16 ] \"::\" ls32\n / [ *5( h16 \":\" ) h16 ] \"::\" h16\n / [ *6( h16 \":\" ) h16 ] \"::\";\n\n\nh16 = 1*4HEXDIG;\nls32 = ( h16 \":\" h16 ) / IPv4address;\nIPv4address = dec-octet \".\" dec-octet \".\" dec-octet \".\" dec-octet;\n\ndec-octet = DIGIT / %x31-39 DIGIT / \"1\" 2DIGIT / \"2\" %x30-34 DIGIT / \"25\" %x30-35;\n\nreg-name = *( unreserved / pct-encoded / sub-delims );\n\npath-abempty = *( \"/\" segment );\npath-absolute = \"/\" [ segment-nz *( \"/\" segment ) ];\npath-rootless = segment-nz *( \"/\" segment );\npath-empty = *0pchar;\n\nsegment = *pchar;\nsegment-nz = 1*pchar;\n\npchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\";\n\nquery = *( pchar / \"/\" / \"?\" );\n\nfragment = *( pchar / \"/\" / \"?\" );\n\npct-encoded = \"%\" HEXDIG HEXDIG;\n\nunreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\";\n\nsub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\" / \"*\" / \"+\" / \",\" / \";\" / \"=\";\n" }
UTF-8
ABNF
3,286
douxiao
822765f95aa888ddb891616d2a5483a0398ca16f
d0f4e3fc799cb334c609d40d74b664adbc47c5ed
/app/src/main/assets/wake_grammar_sample.abnf
998108b0e0a55c5933fbecdac82b77a485b94f39
douxiao/AKJ_UAV_APP
{ "content": "<span style=\"font-size:14px;\">#ABNF 1.0 UTF-8; \r\nlanguage zh-CN; \r\nmode voice; \r\nroot $main; \r\n$main = $command; \r\n$command = 起飞|着陆|向前飞|向后飞|向左飞|向右飞|紧急着陆|悬停;</span> " }
UTF-8
ABNF
215
xbw12138
4f1c7d1fb96789cf85b4681795f05f18ae9cb945
8bf9afe6780b721483b1910fe6d069af3fd801d8
/app/src/main/assets/grammar_sample.abnf
0868c798ca64791726a97685b1b530da2af9f908
xbw12138/shadowsocks_android
{ "content": "#ABNF 1.0 UTF-8;\r\nlanguage zh-CN; \r\nmode voice;\r\n\r\nroot $main;\r\n$main = $place1 到 $place2;\r\n$place1 = 北京|武汉|南京|天津|东京;\r\n$place2 = 上海|合肥;" }
UTF-8
ABNF
165
okomeki
e3b9dd7c3c46d909d9217b1aec4a8638d16759a9
f418466a107ae03fa5af63bd765a9d80490f7903
/src/main/resources/net/siisise/abnf/rfc/HTTP7230.abnf
4974c7f51b7cd961a9b7763eab32cbec0dd9c830
okomeki/SoftLibRFC
{ "content": "uri-host = IP-literal / IPv4address / reg-name\nOWS = *( SP / HTAB )\nRWS = 1*( SP / HTAB )\nBWS = OWS\nConnection = *( \",\" OWS ) connection-option *( OWS \",\" [ OWS\n connection-option ] )\nContent-Length = 1*DIGIT\nHTTP-message = start-line *( header-field CRLF ) CRLF [ message-body ]\nHTTP-name = %x48.54.54.50 ; HTTP\nHTTP-version = HTTP-name \"/\" DIGIT \".\" DIGIT\nHost = uri-host [ \":\" port ]\nTE = [ ( \",\" / t-codings ) *( OWS \",\" [ OWS t-codings ] ) ]\nTrailer = *( \",\" OWS ) field-name *( OWS \",\" [ OWS field-name ] )\nTransfer-Encoding = *( \",\" OWS ) transfer-coding *( OWS \",\" [ OWS\n transfer-coding ] )\nUpgrade = *( \",\" OWS ) protocol *( OWS \",\" [ OWS protocol ] )\nVia = *( \",\" OWS ) ( received-protocol RWS received-by [ RWS comment\n ] ) *( OWS \",\" [ OWS ( received-protocol RWS received-by [ RWS\n comment ] ) ] )\nabsolute-form = absolute-URI\nabsolute-path = 1*( \"/\" segment )\nasterisk-form = \"*\"\nauthority-form = authority\nchunk = chunk-size [ chunk-ext ] CRLF chunk-data CRLF\nchunk-data = 1*OCTET\nchunk-ext = *( \";\" chunk-ext-name [ \"=\" chunk-ext-val ] )\nchunk-ext-name = token\nchunk-ext-val = token / quoted-string\nchunk-size = 1*HEXDIG\nchunked-body = *chunk last-chunk trailer-part CRLF\ncomment = \"(\" *( ctext / quoted-pair / comment ) \")\"\nconnection-option = token\nctext = HTAB / SP / %x21-27 ; '!'-'''\n / %x2A-5B ; '*'-'['\n / %x5D-7E ; ']'-'~'\n / obs-text\nfield-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\nfield-name = token\nfield-value = *( field-content / obs-fold )\nfield-vchar = VCHAR / obs-text\nheader-field = field-name \":\" OWS field-value OWS\nhttp-URI = \"http://\" authority path-abempty [ \"?\" query ] [ \"#\"\n fragment ]\nhttps-URI = \"https://\" authority path-abempty [ \"?\" query ] [ \"#\"\n fragment ]\nlast-chunk = 1*\"0\" [ chunk-ext ] CRLF\nmessage-body = *OCTET\nmethod = token\nobs-fold = CRLF 1*( SP / HTAB )\nobs-text = %x80-FF\norigin-form = absolute-path [ \"?\" query ]\npartial-URI = relative-part [ \"?\" query ]\nprotocol = protocol-name [ \"/\" protocol-version ]\nprotocol-name = token\nprotocol-version = token\npseudonym = token\nqdtext = HTAB / SP / \"!\" / %x23-5B ; '#'-'['\n / %x5D-7E ; ']'-'~'\n / obs-text\nquoted-pair = \"\\\" ( HTAB / SP / VCHAR / obs-text )\nquoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE\nrank = ( \"0\" [ \".\" *3DIGIT ] ) / ( \"1\" [ \".\" *3\"0\" ] )\nreason-phrase = *( HTAB / SP / VCHAR / obs-text )\nreceived-by = ( uri-host [ \":\" port ] ) / pseudonym\nreceived-protocol = [ protocol-name \"/\" ] protocol-version\nrequest-line = method SP request-target SP HTTP-version CRLF\nrequest-target = origin-form / absolute-form / authority-form /\n asterisk-form\nstart-line = request-line / status-line\nstatus-code = 3DIGIT\nstatus-line = HTTP-version SP status-code SP reason-phrase CRLF\nt-codings = \"trailers\" / ( transfer-coding [ t-ranking ] )\nt-ranking = OWS \";\" OWS \"q=\" rank\ntchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" / \"*\" / \"+\" / \"-\" / \".\" /\n \"^\" / \"_\" / \"`\" / \"|\" / \"~\" / DIGIT / ALPHA\ntoken = 1*tchar\ntrailer-part = *( header-field CRLF )\ntransfer-coding = \"chunked\" / \"compress\" / \"deflate\" / \"gzip\" /\n transfer-extension\ntransfer-extension = token *( OWS \";\" OWS transfer-parameter )\ntransfer-parameter = token BWS \"=\" BWS ( token / quoted-string )\n" }
UTF-8
ABNF
3,228
BuildBuilder
6558e39b8ced6efea957dc9f71d61a0cbf683a06
1eb8854e3c3874bbf0e69815218b07ab2beb90cd
/examples/ABNF.abnf
11e0ceb9437d305971cbf8d75969faf75d3fbc50
BuildBuilder/metalanguage
{ "content": "; Augmented Backus-Naur Form (RFC 5234, 7405)\n; white spaces on the right side means concatenation\n\nrulelist = 1*( rule / (*c-wsp c-nl) )\n ; a rule starts at the beginning of the line\n\nrule = rulename defined-as elements c-nl\n ; continues in following lines starting with white space\n\nrulename = ALPHA *(ALPHA / DIGIT / \"-\")\n\ndefined-as = *c-wsp (\"=\" / \"=/\") *c-wsp\n ; basic rules definition or incremental alternative\n\nelements = alternation *c-wsp\n\nc-wsp = WSP / (c-nl WSP)\n\nc-nl = comment / CRLF\n\ncomment = \";\" *(WSP / VCHAR) CRLF\n\nalternation = concatenation *(*c-wsp \"/\" *c-wsp concatenation)\n\nconcatenation = repetition *(1*c-wsp repetition)\n\nrepetition = [repeat] element\n\nrepeat = 1*DIGIT / (*DIGIT \"*\" *DIGIT)\n ; default lower limit is ZERO\n ; default upper limit is INFINITY\n\nelement = rulename / group / option / char-val / num-val / prose-val\n\ngroup = \"(\" *c-wsp alternation *c-wsp \")\"\n\noption = \"[\" *c-wsp alternation *c-wsp \"]\"\n\nchar-val = case-insensitive-string / case-sensitive-string\n\ncase-insensitive-string = [ \"%i\" ] quoted-string\n\ncase-sensitive-string = \"%s\" quoted-string\n\nquoted-string = DQUOTE *(%x20-21 / %x23-7E) DQUOTE\n ; quoted string of SP and VCHAR without DQUOTE\n\nnum-val = \"%\" (bin-val / dec-val / hex-val)\n\nbin-val = \"b\" 1*BIT [ 1*(\".\" 1*BIT) / (\"-\" 1*BIT) ]\n ; series of concatenated bit values\n\t\t\t\t\t\t\t\t\t\t\t\t; or single ONEOF range\n\ndec-val = \"d\" 1*DIGIT [ 1*(\".\" 1*DIGIT) / (\"-\" 1*DIGIT) ]\n\nhex-val = \"x\" 1*HEXDIG [ 1*(\".\" 1*HEXDIG) / (\"-\" 1*HEXDIG) ]\n\nprose-val = \"<\" *(%x20-3D / %x3F-7E) \">\"\n ; bracketed string of SP and VCHAR without angles\n ; prose description, to be used as last resort\n\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n\nBIT = \"0\" / \"1\"\n\nCHAR = %x01-7F ; any 7-bit US-ASCII character, excluding NUL\n\nCR = %x0D ; carriage return\n\nCRLF = CR LF ; Internet standard newline\n\nCTL = %x00-1F / %x7F ; controls\n\nDIGIT = %x30-39 ; 0-9\n\nDQUOTE = %x22 ; \" (Double Quote)\n\nHEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n\nHTAB = %x09 ; horizontal tab\n\nLF = %x0A ; linefeed\n\nLWSP = *(WSP / CRLF WSP)\n ; Use of this linear-white-space rule permits lines\n ; containing only white space that are no longer legal\n ; in mail headers and have caused interoperability\n ; problems in other contexts.\n ; Do not use when defining mail headers\n ; and use with caution in other contexts.\n\nOCTET = %x00-FF ; 8 bits of data\n\nSP = %x20\n\nVCHAR = %x21-7E ; visible (printing) characters\n\nWSP = SP / HTAB ; white space\n" }
UTF-8
ABNF
3,452
asmwarrior
ea826eb959ca2ea067b47e117f31bc468b611298
ae97ae80061f2cef8bc626f038a0d8c19f3ced21
/tests/abnf/rfc4647.abnf
ef36a113a0103c4b4bbea16b8b7d54392cdbbd7f
asmwarrior/PeppaPEG
{ "content": "; Collected rules from RFC 4647\n; https://tools.ietf.org/html/rfc4647\n\nlanguage-range = (1*8ALPHA *(\"-\" 1*8alphanum)) / \"*\"\n\nalphanum = ALPHA / DIGIT\n\nextended-language-range = (1*8ALPHA / \"*\")\n *(\"-\" (1*8alphanum / \"*\"))\n" }
UTF-8
ABNF
271
jbenner-radham
197b9fdec011df3347df58f665009cffbc8de8c7
1ce623e501a9ca87afb4166aa58b0fa9e1ca745e
/data/abnf/title.abnf
07d7eeb84ff020fb958e28a712856198b3ad7350
jbenner-radham/jcard-to-vcard
{ "content": "TITLE-param = \"VALUE=text\" / language-param / pid-param\n / pref-param / altid-param / type-param / any-param\nTITLE-value = text\n" }
UTF-8
ABNF
139
web-projects
f48e83c7f48644d75d9a16e42bd4c33ab7333cbf
ea416f4242506d6aeeaace5c60756d7b17d77a10
/AccuStudioExecutables/RuleLib/Option.abnf
df7ec2a562fa286f79ee1072b8892cf4a8935111
web-projects/AccuStudio
{ "content": "\n// Exported Rules\n<OptionList> = #(Yes,No,NA);\n\n" }
UTF-8
ABNF
49
antlr
7b67b765a6cd5ff39c9a8145fd556e649970d66f
3b87eaa7f1b8290d1a74ac2bec9573f81aab831d
/abnf/examples/postal.abnf
eb5e5a56fac872eb89eca26b0eecf54668747241
antlr/grammars-v4
{ "content": "postal-address = name-part street zip-part\n\nname-part = *(personal-part SP) last-name [SP suffix] CRLF\nname-part =/ personal-part CRLF\n\npersonal-part = first-name / (initial \".\")\nfirst-name = *ALPHA\ninitial = ALPHA\nlast-name = *ALPHA\nsuffix = (\"Jr.\" / \"Sr.\" / 1*(\"I\" / \"V\" / \"X\"))\n\nstreet = [apt SP] house-num SP street-name CRLF\napt = 1*4DIGIT\nhouse-num = 1*8(DIGIT / ALPHA)\nstreet-name = 1*VCHAR\n\nzip-part = town-name \",\" SP state 1*2SP zip-code CRLF\ntown-name = 1*(ALPHA / SP)\nstate = 2ALPHA\nzip-code = 5DIGIT [\"-\" 4DIGIT]\n\n" }
UTF-8
ABNF
647
Peter2221
86fe5d5373b5850f06bf8f42840bf58ef8890f0c
0f52e6f5d7fd5fdc6cf97e3cc69e95a71005c8a2
/grammars/menu.abnf
4c6ddef9a49f9bd964cf5f3f85be9a7c4a8ec194
Peter2221/Diet-Out-Loud
{ "content": "#ABNF 1.0;\nlanguage pl-pl;\nmode voice;\nroot $root;\ntag-format <semantics/1.0-literals>;\n\n$root = [$zyczenie] [$czasownik] $rzeczownik1 {1} | [$zyczenie] [$czasownik] $rzeczownik2 {2} | [$zaimek3] [$zyczenie] [$czasownik] $rzeczownik3 {3} | [$zaimek4] [$przyslowek] [$kiedy] [$juz] $czasownik4 {4} | [$zyczenie] $czasownik5 [$spójnik5] [$rzeczownik5] {5};\n\n$zyczenie = chciałbym | chciałabym | chcę;\n$czasownik = policzyć | obliczyć | liczenie | oblicz;\n\n$rzeczownik1 = kalorii | kalorie;\n$rzeczownik2 = bmi | beemi | bijemaj;\n$rzeczownik3 = [dzienne] zapotrzebowanie [kaloryczne];\n\n$zaimek4 = ile | jak;\n$przysłowek = dużo;\n$kiedy = dzisiaj;\n$juz = już;\n$czasownik4 = zjadłem | zjadłam | skonsumowałem | spożyłem | spożyłam | jadłem | jadłam;\n\n$czasownik5 = wyjście | wyjść | wychodzić | egzit | opuścić | wyjdź;\n$rzeczownik5 = program | programu;\n$spójnik5 = z;\n\n$zaimek3 = moje | twoje;" }
UTF-8
ABNF
914
zhangweihust
73e75a6bd87954fd94f7979cce1db785603c61c3
0d183f64948b847e5fc04bc5d14745b2cbeb3afa
/JTree/aparse/commands.abnf
43683e6d8f13bdc759612690d91b88e7577e5126
zhangweihust/JTree
{ "content": "#####SMALI COMMANDS RULES#####\ncmdAny = cmdAddFloat;\ncmdAny =/ cmdAddFloat2addr;\ncmdAny =/ cmdAddDouble;\ncmdAny =/ cmdAddDouble2addr;\ncmdAny =/ cmdAddInt;\ncmdAny =/ cmdAddInt2addr;\ncmdAny =/ cmdAddIntLit16;\ncmdAny =/ cmdAddIntLit8;\ncmdAny =/ cmdAddLong;\ncmdAny =/ cmdAddLong2addr;\ncmdAny =/ cmdAndInt;\ncmdAny =/ cmdAndInt2addr;\ncmdAny =/ cmdAndIntLit16;\ncmdAny =/ cmdAndIntLit8;\ncmdAny =/ cmdAndLong;\ncmdAny =/ cmdAndLong2addr;\ncmdAny =/ cmdAget;\ncmdAny =/ cmdAgetBoolean;\ncmdAny =/ cmdAgetByte;\ncmdAny =/ cmdAgetChar;\ncmdAny =/ cmdAgetObject;\ncmdAny =/ cmdAgetShort;\ncmdAny =/ cmdAgetWide;\ncmdAny =/ cmdAput;\ncmdAny =/ cmdAputBoolean;\ncmdAny =/ cmdAputByte;\ncmdAny =/ cmdAputChar;\ncmdAny =/ cmdAputObject;\ncmdAny =/ cmdAputShort;\ncmdAny =/ cmdAputWide;\ncmdAny =/ cmdArrayLength;\ncmdAny =/ cmdCheckCast;\ncmdAny =/ cmdCmpgDouble;\ncmdAny =/ cmdCmpgFloat;\ncmdAny =/ cmdCmplDouble;\ncmdAny =/ cmdCmplFloat;\ncmdAny =/ cmdCmpLong;\ncmdAny =/ cmdConst;\ncmdAny =/ cmdConst16;\ncmdAny =/ cmdConst4;\ncmdAny =/ cmdConstClass;\ncmdAny =/ cmdConstHigh16;\ncmdAny =/ cmdConstString;\ncmdAny =/ cmdConstStringJumbo;\ncmdAny =/ cmdConstWide;\ncmdAny =/ cmdConstWide16;\ncmdAny =/ cmdConstWide32;\ncmdAny =/ cmdConstWideHigh16;\ncmdAny =/ cmdDivFloat;\ncmdAny =/ cmdDivFloat2addr;\ncmdAny =/ cmdDivDouble;\ncmdAny =/ cmdDivDouble2addr;\ncmdAny =/ cmdDivInt;\ncmdAny =/ cmdDivInt2addr;\ncmdAny =/ cmdDivIntLit16;\ncmdAny =/ cmdDivIntLit8;\ncmdAny =/ cmdDivLong;\ncmdAny =/ cmdDivLong2addr;\ncmdAny =/ cmdDoubleToFloat;\ncmdAny =/ cmdDoubleToInt;\ncmdAny =/ cmdDoubleToLong;\ncmdAny =/ cmdFillArrayData;\ncmdAny =/ cmdFilledNewArray;\ncmdAny =/ cmdFilledNewArrayRange;\ncmdAny =/ cmdFloatToDouble;\ncmdAny =/ cmdFloatToInt;\ncmdAny =/ cmdFloatToLong;\ncmdAny =/ cmdGoto;\ncmdAny =/ cmdGoto16;\ncmdAny =/ cmdGoto32;\ncmdAny =/ cmdIfEq;\ncmdAny =/ cmdIfEqz;\ncmdAny =/ cmdIfGe;\ncmdAny =/ cmdIfGez;\ncmdAny =/ cmdIfGt;\ncmdAny =/ cmdIfGtz;\ncmdAny =/ cmdIfLe;\ncmdAny =/ cmdIfLez;\ncmdAny =/ cmdIfLt;\ncmdAny =/ cmdIfLtz;\ncmdAny =/ cmdIfNe;\ncmdAny =/ cmdIfNez;\ncmdAny =/ cmdIget;\ncmdAny =/ cmdIgetBoolean;\ncmdAny =/ cmdIgetByte;\ncmdAny =/ cmdIgetChar;\ncmdAny =/ cmdIgetObject;\ncmdAny =/ cmdIgetShort;\ncmdAny =/ cmdIgetWide;\ncmdAny =/ cmdInstanceOf;\ncmdAny =/ cmdIntToByte;\ncmdAny =/ cmdIntToChar;\ncmdAny =/ cmdIntToDouble;\ncmdAny =/ cmdIntToFloat;\ncmdAny =/ cmdIntToLong;\ncmdAny =/ cmdIntToShort;\ncmdAny =/ cmdInvokeDirect;\ncmdAny =/ cmdInvokeDirectRange;\ncmdAny =/ cmdInvokeInterface;\ncmdAny =/ cmdInvokeInterfaceRange;\ncmdAny =/ cmdInvokeStatic;\ncmdAny =/ cmdInvokeStaticRange;\ncmdAny =/ cmdInvokeSuper;\ncmdAny =/ cmdInvokeSuperRange;\ncmdAny =/ cmdInvokeVirtual;\ncmdAny =/ cmdInvokeVirtualRange;\ncmdAny =/ cmdIput;\ncmdAny =/ cmdIputBoolean;\ncmdAny =/ cmdIputByte;\ncmdAny =/ cmdIputChar;\ncmdAny =/ cmdIputObject;\ncmdAny =/ cmdIputShort;\ncmdAny =/ cmdIputWide;\ncmdAny =/ cmdLongToDouble;\ncmdAny =/ cmdLongToFloat;\ncmdAny =/ cmdLongToInt;\ncmdAny =/ cmdMonitorEnter;\ncmdAny =/ cmdMonitorExit;\ncmdAny =/ cmdMove;\ncmdAny =/ cmdMove16;\ncmdAny =/ cmdMoveFrom16;\ncmdAny =/ cmdMoveObject;\ncmdAny =/ cmdMoveObject16;\ncmdAny =/ cmdMoveObjectFrom16;\ncmdAny =/ cmdMoveResult;\ncmdAny =/ cmdMoveResultObject;\ncmdAny =/ cmdMoveResultWide;\ncmdAny =/ cmdMoveWide;\ncmdAny =/ cmdMoveWide16;\ncmdAny =/ cmdMoveWideFrom16;\ncmdAny =/ cmdMulFloat;\ncmdAny =/ cmdMulFloat2addr;\ncmdAny =/ cmdMulDouble;\ncmdAny =/ cmdMulDouble2addr;\ncmdAny =/ cmdMulInt;\ncmdAny =/ cmdMulInt2addr;\ncmdAny =/ cmdMulIntLit16;\ncmdAny =/ cmdMulIntLit8;\ncmdAny =/ cmdMulLong;\ncmdAny =/ cmdMulLong2addr;\ncmdAny =/ cmdNegDouble;\ncmdAny =/ cmdNegFloat;\ncmdAny =/ cmdNegInt;\ncmdAny =/ cmdNegLong;\ncmdAny =/ cmdNewArray;\ncmdAny =/ cmdNewInstance;\ncmdAny =/ cmdNop;\ncmdAny =/ cmdNotInt;\ncmdAny =/ cmdNotLong;\ncmdAny =/ cmdOrInt;\ncmdAny =/ cmdOrInt2addr;\ncmdAny =/ cmdOrIntLit16;\ncmdAny =/ cmdOrIntLit8;\ncmdAny =/ cmdOrLong;\ncmdAny =/ cmdOrLong2addr;\ncmdAny =/ cmdPackedSwitch;\ncmdAny =/ cmdRemFloat;\ncmdAny =/ cmdRemFloat2addr;\ncmdAny =/ cmdRemDouble;\ncmdAny =/ cmdRemDouble2addr;\ncmdAny =/ cmdRemInt;\ncmdAny =/ cmdRemInt2addr;\ncmdAny =/ cmdRemIntLit16;\ncmdAny =/ cmdRemIntLit8;\ncmdAny =/ cmdRemLong;\ncmdAny =/ cmdRemLong2addr;\ncmdAny =/ cmdReturn;\ncmdAny =/ cmdReturnObject;\ncmdAny =/ cmdReturnVoid;\ncmdAny =/ cmdReturnWide;\ncmdAny =/ cmdRsubInt;\ncmdAny =/ cmdRsubIntLit8;\ncmdAny =/ cmdSget;\ncmdAny =/ cmdSgetBoolean;\ncmdAny =/ cmdSgetByte;\ncmdAny =/ cmdSgetChar;\ncmdAny =/ cmdSgetObject;\ncmdAny =/ cmdSgetShort;\ncmdAny =/ cmdSgetWide;\ncmdAny =/ cmdShlInt;\ncmdAny =/ cmdShlInt2addr;\ncmdAny =/ cmdShlIntLit8;\ncmdAny =/ cmdShlLong;\ncmdAny =/ cmdShlLong2addr;\ncmdAny =/ cmdShrInt;\ncmdAny =/ cmdShrInt2addr;\ncmdAny =/ cmdShrIntLit8;\ncmdAny =/ cmdShrLong;\ncmdAny =/ cmdShrLong2addr;\ncmdAny =/ cmdSparseSwitch;\ncmdAny =/ cmdSput;\ncmdAny =/ cmdSputBoolean;\ncmdAny =/ cmdSputByte;\ncmdAny =/ cmdSputChar;\ncmdAny =/ cmdSputObject;\ncmdAny =/ cmdSputShort;\ncmdAny =/ cmdSputWide;\ncmdAny =/ cmdSubFloat;\ncmdAny =/ cmdSubFloat2addr;\ncmdAny =/ cmdSubDouble;\ncmdAny =/ cmdSubDouble2addr;\ncmdAny =/ cmdSubInt;\ncmdAny =/ cmdSubInt2addr;\ncmdAny =/ cmdSubLong;\ncmdAny =/ cmdSubLong2addr;\ncmdAny =/ cmdThrow;\ncmdAny =/ cmdUshrInt;\ncmdAny =/ cmdUshrInt2addr;\ncmdAny =/ cmdUshrIntLit8;\ncmdAny =/ cmdUshrLong;\ncmdAny =/ cmdUshrLong2addr;\ncmdAny =/ cmdXorInt;\ncmdAny =/ cmdXorInt2addr;\ncmdAny =/ cmdXorIntLit16;\ncmdAny =/ cmdXorIntLit8;\ncmdAny =/ cmdXorLong;\ncmdAny =/ cmdXorLong2addr;\n\ncmdAny =/ cmdAddIntLit16_2;\ncmdAny =/ cmdAddIntLit8_2;\n\ncmdAny =/ cmdCommon;\n\ncmdAddFloat = optPadding \"add-float\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAddFloat2addr = optPadding \"add-float/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAddDouble = optPadding \"add-double\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdAddDouble2addr = optPadding \"add-double/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdAddInt = optPadding \"add-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAddInt2addr = optPadding \"add-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAddIntLit16 = optPadding \"add-int/lit16\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdAddIntLit8 = optPadding \"add-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\n\n#zhw\ncmdAddIntLit16_2 = optPadding \"add-int/lit16\" padding codeRegister listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdAddIntLit8_2 = optPadding \"add-int/lit8\" padding codeRegister listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\n\ncmdAddLong = optPadding \"add-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdAddLong2addr = optPadding \"add-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdAndInt = optPadding \"and-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAndInt2addr = optPadding \"and-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAndIntLit16 = optPadding \"and-int/lit16\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdAndIntLit8 = optPadding \"and-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdAndLong = optPadding \"and-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdAndLong2addr = optPadding \"and-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdAget = optPadding \"aget\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAgetBoolean = optPadding \"aget-boolean\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAgetByte = optPadding \"aget-byte\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAgetChar = optPadding \"aget-char\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAgetObject = optPadding \"aget-object\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAgetShort = optPadding \"aget-short\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAgetWide = optPadding \"aget-wide\" padding codeRegisterV64Dst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAput = optPadding \"aput\" padding codeRegisterV listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAputBoolean = optPadding \"aput-boolean\" padding codeRegisterV listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAputByte = optPadding \"aput-byte\" padding codeRegisterV listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAputChar = optPadding \"aput-char\" padding codeRegisterV listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAputObject = optPadding \"aput-object\" padding codeRegisterV listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAputShort = optPadding \"aput-short\" padding codeRegisterV listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdAputWide = optPadding \"aput-wide\" padding codeRegisterV64 listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdArrayLength = optPadding \"array-length\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdCheckCast = optPadding \"check-cast\" padding codeRegister listSeparator smaliClassRef optPadding [padding commentSequence] CRLF;\ncmdCmpgDouble = optPadding \"cmpg-double\" padding codeRegisterVDst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdCmpgFloat = optPadding \"cmpg-float\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdCmplDouble = optPadding \"cmpl-double\" padding codeRegisterVDst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdCmplFloat = optPadding \"cmpl-float\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdCmpLong = optPadding \"cmp-long\" padding codeRegisterVDst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdConst = optPadding \"const\" padding codeRegisterVDst listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdConst16 = optPadding \"const/16\" padding codeRegisterVDst listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdConst4 = optPadding \"const/4\" padding codeRegisterVDst listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdConstClass = optPadding \"const-class\" padding codeRegisterVDst listSeparator smaliClassRef optPadding [padding commentSequence] CRLF;\ncmdConstHigh16 = optPadding \"const/high16\" padding codeRegisterVDst listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdConstString = optPadding \"const-string\" padding codeRegisterVDst listSeparator strValue optPadding [padding commentSequence] CRLF;\ncmdConstStringJumbo = optPadding \"const-string/jumbo\" padding codeRegisterVDst listSeparator strValue optPadding [padding commentSequence] CRLF;\ncmdConstWide = optPadding \"const-wide\" padding codeRegisterV64Dst listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdConstWide16 = optPadding \"const-wide/16\" padding codeRegisterV64Dst listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdConstWide32 = optPadding \"const-wide/32\" padding codeRegisterV64Dst listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdConstWideHigh16 = optPadding \"const-wide/high16\" padding codeRegisterV64Dst listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdDivFloat = optPadding \"div-float\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdDivFloat2addr = optPadding \"div-float/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdDivDouble = optPadding \"div-double\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdDivDouble2addr = optPadding \"div-double/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdDivInt = optPadding \"div-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdDivInt2addr = optPadding \"div-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdDivIntLit16 = optPadding \"div-int/lit16\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdDivIntLit8 = optPadding \"div-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdDivLong = optPadding \"div-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdDivLong2addr = optPadding \"div-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdDoubleToFloat = optPadding \"double-to-float\" padding codeRegisterVDst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdDoubleToInt = optPadding \"double-to-int\" padding codeRegisterVDst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdDoubleToLong = optPadding \"double-to-long\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdFillArrayData = optPadding \"fill-array-data\" padding todoStubLine optPadding [padding commentSequence] CRLF;\ncmdFilledNewArray = optPadding \"filled-new-array\" padding todoStubLine optPadding [padding commentSequence] CRLF;\ncmdFilledNewArrayRange = optPadding \"filled-new-array/range\" padding todoStubLine optPadding [padding commentSequence] CRLF;\ncmdFloatToDouble = optPadding \"float-to-double\" padding codeRegisterV64Dst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdFloatToInt = optPadding \"float-to-int\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdFloatToLong = optPadding \"float-to-long\" padding codeRegisterV64Dst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdGoto = optPadding \"goto\" padding codeLabel optPadding [padding commentSequence] CRLF;\ncmdGoto16 = optPadding \"goto/16\" padding codeLabel optPadding [padding commentSequence] CRLF;\ncmdGoto32 = optPadding \"goto/32\" padding codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfEq = optPadding \"if-eq\" padding codeRegister listSeparator codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfEqz = optPadding \"if-eqz\" padding codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfGe = optPadding \"if-ge\" padding codeRegister listSeparator codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfGez = optPadding \"if-gez\" padding codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfGt = optPadding \"if-gt\" padding codeRegister listSeparator codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfGtz = optPadding \"if-gtz\" padding codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfLe = optPadding \"if-le\" padding codeRegister listSeparator codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfLez = optPadding \"if-lez\" padding codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfLt = optPadding \"if-lt\" padding codeRegister listSeparator codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfLtz = optPadding \"if-ltz\" padding codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfNe = optPadding \"if-ne\" padding codeRegister listSeparator codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIfNez = optPadding \"if-nez\" padding codeRegister listSeparator codeLabel optPadding [padding commentSequence] CRLF;\ncmdIget = optPadding \"iget\" padding codeRegisterVDst listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIgetBoolean = optPadding \"iget-boolean\" padding codeRegisterVDst listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIgetByte = optPadding \"iget-byte\" padding codeRegisterVDst listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIgetChar = optPadding \"iget-char\" padding codeRegisterVDst listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIgetObject = optPadding \"iget-object\" padding codeRegisterVDst listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIgetShort = optPadding \"iget-short\" padding codeRegisterVDst listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIgetWide = optPadding \"iget-wide\" padding codeRegisterV64Dst listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdInstanceOf = optPadding \"instance-of\" padding codeRegisterVDst listSeparator codeRegister listSeparator smaliClassRef optPadding [padding commentSequence] CRLF;\ncmdIntToByte = optPadding \"int-to-byte\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdIntToChar = optPadding \"int-to-char\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdIntToDouble = optPadding \"int-to-double\" padding codeRegisterV64Dst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdIntToFloat = optPadding \"int-to-float\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdIntToLong = optPadding \"int-to-long\" padding codeRegisterV64Dst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdIntToShort = optPadding \"int-to-short\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdInvokeDirect = optPadding \"invoke-direct\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdInvokeDirectRange = optPadding \"invoke-direct/range\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdInvokeInterface = optPadding \"invoke-interface\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdInvokeInterfaceRange = optPadding \"invoke-interface/range\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdInvokeStatic = optPadding \"invoke-static\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdInvokeStaticRange = optPadding \"invoke-static/range\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdInvokeSuper = optPadding \"invoke-super\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdInvokeSuperRange = optPadding \"invoke-super/range\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdInvokeVirtual = optPadding \"invoke-virtual\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdInvokeVirtualRange = optPadding \"invoke-virtual/range\" padding codeRegisterGroup listSeparator smaliMethodRef optPadding [padding commentSequence] CRLF;\ncmdIput = optPadding \"iput\" padding codeRegister listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIputBoolean = optPadding \"iput-boolean\" padding codeRegister listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIputByte = optPadding \"iput-byte\" padding codeRegister listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIputChar = optPadding \"iput-char\" padding codeRegister listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIputObject = optPadding \"iput-object\" padding codeRegister listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIputShort = optPadding \"iput-short\" padding codeRegister listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdIputWide = optPadding \"iput-wide\" padding codeRegister64 listSeparator codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdLongToDouble = optPadding \"long-to-double\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdLongToFloat = optPadding \"long-to-float\" padding codeRegisterVDst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdLongToInt = optPadding \"long-to-int\" padding codeRegisterVDst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdMonitorEnter = optPadding \"monitor-enter\" padding codeRegister optPadding [padding commentSequence] CRLF;\ncmdMonitorExit = optPadding \"monitor-exit\" padding codeRegister optPadding [padding commentSequence] CRLF;\ncmdMove = optPadding \"move\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMove16 = optPadding \"move/16\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMoveException = optPadding \"move-exception\" padding codeRegisterVDst optPadding [padding commentSequence] CRLF;\ncmdMoveFrom16 = optPadding \"move/from16\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMoveObject = optPadding \"move-object\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMoveObject16 = optPadding \"move-object/16\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMoveObjectFrom16 = optPadding \"move-object/from16\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMoveResult = optPadding \"move-result\" padding codeRegisterVDst optPadding [padding commentSequence] CRLF;\ncmdMoveResultObject = optPadding \"move-result-object\" padding codeRegisterVDst optPadding [padding commentSequence] CRLF;\ncmdMoveResultWide = optPadding \"move-result-wide\" padding codeRegisterV64Dst optPadding [padding commentSequence] CRLF;\ncmdMoveWide = optPadding \"move-wide\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdMoveWide16 = optPadding \"move-wide/16\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdMoveWideFrom16 = optPadding \"move-wide/from16\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdMulFloat = optPadding \"mul-float\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMulFloat2addr = optPadding \"mul-float/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMulDouble = optPadding \"mul-double\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdMulDouble2addr = optPadding \"mul-double/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdMulInt = optPadding \"mul-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMulInt2addr = optPadding \"mul-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdMulIntLit16 = optPadding \"mul-int/lit16\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdMulIntLit8 = optPadding \"mul-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdMulLong = optPadding \"mul-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdMulLong2addr = optPadding \"mul-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdNegDouble = optPadding \"neg-double\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdNegFloat = optPadding \"neg-float\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdNegInt = optPadding \"neg-int\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdNegLong = optPadding \"neg-long\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdNewArray = optPadding \"new-array\" padding codeRegisterVDst listSeparator codeRegister listSeparator smaliClassRef optPadding [padding commentSequence] CRLF;\ncmdNewInstance = optPadding \"new-instance\" padding codeRegisterVDst listSeparator smaliClassRef optPadding [padding commentSequence] CRLF;\ncmdNop = optPadding \"nop\" optPadding [padding commentSequence] CRLF;\ncmdNotInt = optPadding \"not-int\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdNotLong = optPadding \"not-long\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdOrInt = optPadding \"or-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdOrInt2addr = optPadding \"or-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdOrIntLit16 = optPadding \"or-int/lit16\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdOrIntLit8 = optPadding \"or-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdOrLong = optPadding \"or-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdOrLong2addr = optPadding \"or-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdPackedSwitch = optPadding \"packed-switch\" padding todoStubLine optPadding [padding commentSequence] CRLF;\ncmdRemFloat = optPadding \"rem-float\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdRemFloat2addr = optPadding \"rem-float/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdRemDouble = optPadding \"rem-double\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdRemDouble2addr = optPadding \"rem-double/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdRemInt = optPadding \"rem-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdRemInt2addr = optPadding \"rem-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdRemIntLit16 = optPadding \"rem-int/lit16\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdRemIntLit8 = optPadding \"rem-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdRemLong = optPadding \"rem-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdRemLong2addr = optPadding \"rem-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdReturn = optPadding \"return\" padding codeRegisterRet optPadding [padding commentSequence] CRLF;\ncmdReturnObject = optPadding \"return-object\" padding codeRegisterRet optPadding [padding commentSequence] CRLF;\ncmdReturnVoid = optPadding \"return-void\" optPadding [padding commentSequence] CRLF;\ncmdReturnWide = optPadding \"return-wide\" padding codeRegisterRet64 optPadding [padding commentSequence] CRLF;\ncmdRsubInt = optPadding \"rsub-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdRsubIntLit8 = optPadding \"rsub-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdSget = optPadding \"sget\" padding codeRegisterVDst listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSgetBoolean = optPadding \"sget-boolean\" padding codeRegisterVDst listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSgetByte = optPadding \"sget-byte\" padding codeRegisterVDst listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSgetChar = optPadding \"sget-char\" padding codeRegisterVDst listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSgetObject = optPadding \"sget-object\" padding codeRegisterVDst listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSgetShort = optPadding \"sget-short\" padding codeRegisterVDst listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSgetWide = optPadding \"sget-wide\" padding codeRegisterV64Dst listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdShlInt = optPadding \"shl-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdShlInt2addr = optPadding \"shl-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdShlIntLit8 = optPadding \"shl-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdShlLong = optPadding \"shl-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdShlLong2addr = optPadding \"shl-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdShrInt = optPadding \"shr-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdShrInt2addr = optPadding \"shr-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdShrIntLit8 = optPadding \"shr-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdShrLong = optPadding \"shr-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdShrLong2addr = optPadding \"shr-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdSparseSwitch = optPadding \"sparse-switch\" padding todoStubLine optPadding [padding commentSequence] CRLF;\ncmdSput = optPadding \"sput\" padding codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSputBoolean = optPadding \"sput-boolean\" padding codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSputByte = optPadding \"sput-byte\" padding codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSputChar = optPadding \"sput-char\" padding codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSputObject = optPadding \"sput-object\" padding codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSputShort = optPadding \"sput-short\" padding codeRegister listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSputWide = optPadding \"sput-wide\" padding codeRegister64 listSeparator smaliFieldRef optPadding [padding commentSequence] CRLF;\ncmdSubFloat = optPadding \"sub-float\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdSubFloat2addr = optPadding \"sub-float/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdSubDouble = optPadding \"sub-double\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdSubDouble2addr = optPadding \"sub-double/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdSubInt = optPadding \"sub-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdSubInt2addr = optPadding \"sub-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdSubLong = optPadding \"sub-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdSubLong2addr = optPadding \"sub-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdThrow = optPadding \"throw\" padding codeRegister optPadding [padding commentSequence] CRLF;\ncmdUshrInt = optPadding \"ushr-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdUshrInt2addr = optPadding \"ushr-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdUshrIntLit8 = optPadding \"ushr-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdUshrLong = optPadding \"ushr-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdUshrLong2addr = optPadding \"ushr-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdXorInt = optPadding \"xor-int\" padding codeRegisterVDst listSeparator codeRegister listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdXorInt2addr = optPadding \"xor-int/2addr\" padding codeRegisterVDst listSeparator codeRegister optPadding [padding commentSequence] CRLF;\ncmdXorIntLit16 = optPadding \"xor-int/lit16\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdXorIntLit8 = optPadding \"xor-int/lit8\" padding codeRegisterVDst listSeparator codeRegister listSeparator intValue optPadding [padding commentSequence] CRLF;\ncmdXorLong = optPadding \"xor-long\" padding codeRegisterV64Dst listSeparator codeRegister64 listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\ncmdXorLong2addr = optPadding \"xor-long/2addr\" padding codeRegisterV64Dst listSeparator codeRegister64 optPadding [padding commentSequence] CRLF;\n\n\n#zhw\ncmdPrefixAny = \"add-double\";\ncmdPrefixAny =/ \"add-double/2addr\";\ncmdPrefixAny =/ \"add-float\";\ncmdPrefixAny =/ \"add-float/2addr\";\ncmdPrefixAny =/ \"add-int\";\ncmdPrefixAny =/ \"add-int/2addr\";\ncmdPrefixAny =/ \"add-int/lit16\";\ncmdPrefixAny =/ \"add-int/lit8\";\ncmdPrefixAny =/ \"add-long\";\ncmdPrefixAny =/ \"add-long/2addr\";\ncmdPrefixAny =/ \"aget\";\ncmdPrefixAny =/ \"aget-boolean\";\ncmdPrefixAny =/ \"aget-byte\";\ncmdPrefixAny =/ \"aget-char\";\ncmdPrefixAny =/ \"aget-object\";\ncmdPrefixAny =/ \"aget-short\";\ncmdPrefixAny =/ \"aget-wide\";\ncmdPrefixAny =/ \"and-int\";\ncmdPrefixAny =/ \"and-int/2addr\";\ncmdPrefixAny =/ \"and-int/lit16\";\ncmdPrefixAny =/ \"and-int/lit8\";\ncmdPrefixAny =/ \"and-long\";\ncmdPrefixAny =/ \"and-long/2addr\";\ncmdPrefixAny =/ \"aput\";\ncmdPrefixAny =/ \"aput-boolean\";\ncmdPrefixAny =/ \"aput-byte\";\ncmdPrefixAny =/ \"aput-char\";\ncmdPrefixAny =/ \"aput-object\";\ncmdPrefixAny =/ \"aput-short\";\ncmdPrefixAny =/ \"aput-wide\";\ncmdPrefixAny =/ \"array-length\";\ncmdPrefixAny =/ \"check-cast\";\ncmdPrefixAny =/ \"cmpg-double\";\ncmdPrefixAny =/ \"cmpg-float\";\ncmdPrefixAny =/ \"cmpl-double\";\ncmdPrefixAny =/ \"cmpl-float\";\ncmdPrefixAny =/ \"cmp-long\";\ncmdPrefixAny =/ \"const\";\ncmdPrefixAny =/ \"const/16\";\ncmdPrefixAny =/ \"const/4\";\ncmdPrefixAny =/ \"const/high16\";\ncmdPrefixAny =/ \"const-class\";\ncmdPrefixAny =/ \"const-string\";\ncmdPrefixAny =/ \"const-string/jumbo\";\ncmdPrefixAny =/ \"const-wide\";\ncmdPrefixAny =/ \"const-wide/16\";\ncmdPrefixAny =/ \"const-wide/32\";\ncmdPrefixAny =/ \"const-wide/high16\";\ncmdPrefixAny =/ \"div-double\";\ncmdPrefixAny =/ \"div-double/2addr\";\ncmdPrefixAny =/ \"div-float\";\ncmdPrefixAny =/ \"div-float/2addr\";\ncmdPrefixAny =/ \"div-int\";\ncmdPrefixAny =/ \"div-int/2addr\";\ncmdPrefixAny =/ \"div-int/lit16\";\ncmdPrefixAny =/ \"div-int/lit8\";\ncmdPrefixAny =/ \"div-long\";\ncmdPrefixAny =/ \"div-long/2addr\";\ncmdPrefixAny =/ \"double-to-float\";\ncmdPrefixAny =/ \"double-to-int\";\ncmdPrefixAny =/ \"double-to-long\";\ncmdPrefixAny =/ \"fill-array-data\";\ncmdPrefixAny =/ \"filled-new-array\";\ncmdPrefixAny =/ \"filled-new-array/range\";\ncmdPrefixAny =/ \"float-to-double\";\ncmdPrefixAny =/ \"float-to-int\";\ncmdPrefixAny =/ \"float-to-long\";\ncmdPrefixAny =/ \"goto\";\ncmdPrefixAny =/ \"goto/16\";\ncmdPrefixAny =/ \"goto/32\";\ncmdPrefixAny =/ \"if-eq\";\ncmdPrefixAny =/ \"if-eqz\";\ncmdPrefixAny =/ \"if-ge\";\ncmdPrefixAny =/ \"if-gez\";\ncmdPrefixAny =/ \"if-gt\";\ncmdPrefixAny =/ \"if-gtz\";\ncmdPrefixAny =/ \"if-le\";\ncmdPrefixAny =/ \"if-lez\";\ncmdPrefixAny =/ \"if-lt\";\ncmdPrefixAny =/ \"if-ltz\";\ncmdPrefixAny =/ \"if-ne\";\ncmdPrefixAny =/ \"if-nez\";\ncmdPrefixAny =/ \"iget\";\ncmdPrefixAny =/ \"iget-boolean\";\ncmdPrefixAny =/ \"iget-byte\";\ncmdPrefixAny =/ \"iget-char\";\ncmdPrefixAny =/ \"iget-object\";\ncmdPrefixAny =/ \"iget-short\";\ncmdPrefixAny =/ \"iget-wide\";\ncmdPrefixAny =/ \"instance-of\";\ncmdPrefixAny =/ \"int-to-byte\";\ncmdPrefixAny =/ \"int-to-char\";\ncmdPrefixAny =/ \"int-to-double\";\ncmdPrefixAny =/ \"int-to-float\";\ncmdPrefixAny =/ \"int-to-long\";\ncmdPrefixAny =/ \"int-to-short\";\ncmdPrefixAny =/ \"invoke-direct\";\ncmdPrefixAny =/ \"invoke-direct/range\";\ncmdPrefixAny =/ \"invoke-interface\";\ncmdPrefixAny =/ \"invoke-interface/range\";\ncmdPrefixAny =/ \"invoke-static\";\ncmdPrefixAny =/ \"invoke-static/range\";\ncmdPrefixAny =/ \"invoke-super\";\ncmdPrefixAny =/ \"invoke-super/range\";\ncmdPrefixAny =/ \"invoke-virtual\";\ncmdPrefixAny =/ \"invoke-virtual/range\";\ncmdPrefixAny =/ \"iput\";\ncmdPrefixAny =/ \"iput-boolean\";\ncmdPrefixAny =/ \"iput-byte\";\ncmdPrefixAny =/ \"iput-char\";\ncmdPrefixAny =/ \"iput-object\";\ncmdPrefixAny =/ \"iput-short\";\ncmdPrefixAny =/ \"iput-wide\";\ncmdPrefixAny =/ \"long-to-double\";\ncmdPrefixAny =/ \"long-to-float\";\ncmdPrefixAny =/ \"long-to-int\";\ncmdPrefixAny =/ \"monitor-enter\";\ncmdPrefixAny =/ \"monitor-exit\";\ncmdPrefixAny =/ \"move\";\ncmdPrefixAny =/ \"move/16\";\ncmdPrefixAny =/ \"move/from16\";\ncmdPrefixAny =/ \"move-exception\";\ncmdPrefixAny =/ \"move-object\";\ncmdPrefixAny =/ \"move-object/16\";\ncmdPrefixAny =/ \"move-object/from16\";\ncmdPrefixAny =/ \"move-result\";\ncmdPrefixAny =/ \"move-result-object\";\ncmdPrefixAny =/ \"move-result-wide\";\ncmdPrefixAny =/ \"move-wide\";\ncmdPrefixAny =/ \"move-wide/16\";\ncmdPrefixAny =/ \"move-wide/from16\";\ncmdPrefixAny =/ \"mul-double\";\ncmdPrefixAny =/ \"mul-double/2addr\";\ncmdPrefixAny =/ \"mul-float\";\ncmdPrefixAny =/ \"mul-float/2addr\";\ncmdPrefixAny =/ \"mul-int\";\ncmdPrefixAny =/ \"mul-int/2addr\";\ncmdPrefixAny =/ \"mul-int/lit16\";\ncmdPrefixAny =/ \"mul-int/lit8\";\ncmdPrefixAny =/ \"mul-long\";\ncmdPrefixAny =/ \"mul-long/2addr\";\ncmdPrefixAny =/ \"neg-double\";\ncmdPrefixAny =/ \"neg-float\";\ncmdPrefixAny =/ \"neg-int\";\ncmdPrefixAny =/ \"neg-long\";\ncmdPrefixAny =/ \"new-array\";\ncmdPrefixAny =/ \"new-instance\";\ncmdPrefixAny =/ \"nop\";\ncmdPrefixAny =/ \"not-int\";\ncmdPrefixAny =/ \"not-long\";\ncmdPrefixAny =/ \"or-int\";\ncmdPrefixAny =/ \"or-int/2addr\";\ncmdPrefixAny =/ \"or-int/lit16\";\ncmdPrefixAny =/ \"or-int/lit8\";\ncmdPrefixAny =/ \"or-long\";\ncmdPrefixAny =/ \"or-long/2addr\";\ncmdPrefixAny =/ \"packed-switch\";\ncmdPrefixAny =/ \"rem-double\";\ncmdPrefixAny =/ \"rem-double/2addr\";\ncmdPrefixAny =/ \"rem-float\";\ncmdPrefixAny =/ \"rem-float/2addr\";\ncmdPrefixAny =/ \"rem-int\";\ncmdPrefixAny =/ \"rem-int/2addr\";\ncmdPrefixAny =/ \"rem-int/lit16\";\ncmdPrefixAny =/ \"rem-int/lit8\";\ncmdPrefixAny =/ \"rem-long\";\ncmdPrefixAny =/ \"rem-long/2addr\";\ncmdPrefixAny =/ \"return\";\ncmdPrefixAny =/ \"return-object\";\ncmdPrefixAny =/ \"return-void\";\ncmdPrefixAny =/ \"return-wide\";\ncmdPrefixAny =/ \"rsub-int\";\ncmdPrefixAny =/ \"rsub-int/lit8\";\ncmdPrefixAny =/ \"sget\";\ncmdPrefixAny =/ \"sget-boolean\";\ncmdPrefixAny =/ \"sget-byte\";\ncmdPrefixAny =/ \"sget-char\";\ncmdPrefixAny =/ \"sget-object\";\ncmdPrefixAny =/ \"sget-short\";\ncmdPrefixAny =/ \"sget-wide\";\ncmdPrefixAny =/ \"shl-int\";\ncmdPrefixAny =/ \"shl-int/2addr\";\ncmdPrefixAny =/ \"shl-int/lit8\";\ncmdPrefixAny =/ \"shl-long\";\ncmdPrefixAny =/ \"shl-long/2addr\";\ncmdPrefixAny =/ \"shr-int\";\ncmdPrefixAny =/ \"shr-int/2addr\";\ncmdPrefixAny =/ \"shr-int/lit8\";\ncmdPrefixAny =/ \"shr-long\";\ncmdPrefixAny =/ \"shr-long/2addr\";\ncmdPrefixAny =/ \"sparse-switch\";\ncmdPrefixAny =/ \"sput\";\ncmdPrefixAny =/ \"sput-boolean\";\ncmdPrefixAny =/ \"sput-byte\";\ncmdPrefixAny =/ \"sput-char\";\ncmdPrefixAny =/ \"sput-object\";\ncmdPrefixAny =/ \"sput-short\";\ncmdPrefixAny =/ \"sput-wide\";\ncmdPrefixAny =/ \"sub-double\";\ncmdPrefixAny =/ \"sub-double/2addr\";\ncmdPrefixAny =/ \"sub-float\";\ncmdPrefixAny =/ \"sub-float/2addr\";\ncmdPrefixAny =/ \"sub-int\";\ncmdPrefixAny =/ \"sub-int/2addr\";\ncmdPrefixAny =/ \"sub-long\";\ncmdPrefixAny =/ \"sub-long/2addr\";\ncmdPrefixAny =/ \"throw\";\ncmdPrefixAny =/ \"ushr-int\";\ncmdPrefixAny =/ \"ushr-int/2addr\";\ncmdPrefixAny =/ \"ushr-int/lit8\";\ncmdPrefixAny =/ \"ushr-long\";\ncmdPrefixAny =/ \"ushr-long/2addr\";\ncmdPrefixAny =/ \"xor-int\";\ncmdPrefixAny =/ \"xor-int/2addr\";\ncmdPrefixAny =/ \"xor-int/lit16\";\ncmdPrefixAny =/ \"xor-int/lit8\";\ncmdPrefixAny =/ \"xor-long\";\ncmdPrefixAny =/ \"xor-long/2addr\";\n\n\ncmdCommon = optPadding cmdPrefixAny *(padding / VCHAR) CRLF;" }
UTF-8
ABNF
46,209
ckristo
688b297144e91b62d51742c47e30aeaf9876d171
7e0b7bf4a74dd458b8ae5bf6bc4560245e493827
/demo/command.abnf
54ed40ff751aff83cb1a2728510eefbeb338e267
ckristo/testabnf
{ "content": "\nCommand = \"!\" ( Login / Logout / List / Create / Bid / End ) ;\n\n\n\nLogin = \"login\" \" \" Username ;\n\nLogout = \"logout\" ;\n\nList = \"list\" ;\n\nCreate = \"create\" \" \" Duration \" \" Description ;\n\nBid = \"bid\" \" \" AuctionId \" \" Amount ;\n\nEnd = \"end\" ;\n\n\n\nUsername = 1*(Printable) ;\n\nDuration = Integer ;\n\nDescription = *( \" \" / Printable ) ;\n\nAuctionId = Integer ;\n\nAmount = Integer [ \".\" *2(Digit) ] ;\n\n\n\nPrintable = %x21-7e ;\n\nInteger = ( %x31-39 1*(Digit) ) / ( Digit ) ;\n\nDigit = %x30-39 ;\n\n" }
UTF-8
ABNF
486
jbenner-radham
ee5d4b24887be4c7161c592b84042b16f2e47318
1ce623e501a9ca87afb4166aa58b0fa9e1ca745e
/data/abnf/bday.abnf
1a054d31c83344599b79760257a43e451ab590cd
jbenner-radham/jcard-to-vcard
{ "content": "BDAY-param = BDAY-param-date / BDAY-param-text\nBDAY-value = date-and-or-time / text\n ; Value and parameter MUST match.\n\nBDAY-param-date = \"VALUE=date-and-or-time\"\nBDAY-param-text = \"VALUE=text\" / language-param\n\nBDAY-param =/ altid-param / calscale-param / any-param\n ; calscale-param can only be present when BDAY-value is\n ; date-and-or-time and actually contains a date or date-time.\n" }
UTF-8
ABNF
390
sainteos
8917e3c7904b01a4ec0cd0b329990f1c5bd03552
2d6428cca481f832b816bfe97db650bbaa4e04c0
/test/resources/ipv6.abnf
12d99c953d049ddb7952a99cd7e0c3bcbe233a2c
sainteos/ex_abnf
{ "content": "IPv6address = 6( h16 \":\" ) ls32\r\n / \"::\" 5( h16 \":\" ) ls32\r\n / [ h16 ] \"::\" 4( h16 \":\" ) ls32\r\n / [ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\r\n / [ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\r\n / [ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\r\n / [ *4( h16 \":\" ) h16 ] \"::\" ls32\r\n / [ *5( h16 \":\" ) h16 ] \"::\" h16\r\n / [ *6( h16 \":\" ) h16 ] \"::\"\r\n\r\nh16 = 1*4HEXDIG\r\nls32 = ( h16 \":\" h16 ) / IPv4address\r\nIPv4address =\r\n dec-octet \".\"\r\n dec-octet \".\"\r\n dec-octet \".\"\r\n dec-octet\r\n\r\ndec-octet = DIGIT ; 0-9\r\n / %x31-39 DIGIT ; 10-99\r\n / \"1\" 2DIGIT ; 100-199\r\n / \"2\" %x30-34 DIGIT ; 200-249\r\n / \"25\" %x30-35 ; 250-255\r\n\r\nDIGIT = %x30-39\r\nHEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\r\n" }
UTF-8
ABNF
947
jaynlive
ffa2ab5e6da6ff6cfbfbcae8b79a4e4cc246fdbb
cf8640fbfb6c39af349bcbd5003b6d94f161d77e
/xunfei/bin/gm_continuous_digit.abnf
3a76e05d0121bc0d711f80fd67fe88cfcd026b6f
jaynlive/selenium-mozello
{ "content": "#ABNF 1.0 UTF-8;\r\nlanguage en-us;\r\nmode voice;\r\nroot $main;\r\n$main = $number;\r\n$number = one|two|three|four|five|six|seven|eight|nine|zero;\r\n" }
UTF-8
ABNF
141
jiaminfu
2749f4c917c928bd3fb9e6ceb750d36cee8a60df
732c59a7ee39073c06c570558e92f1c8c0b0b00a
/LCaseSmartLights/app/src/main/assets/grammar_sample.abnf
c1f33f43c05d682b6f42792e084df0758f1f392c
jiaminfu/LCaseSmartLights
{ "content": "#ABNF 1.0 UTF-8;\nlanguage zh-CN;\nmode voice;\nroot $main;\n$main = $motionpre $device;\n$motionpre = 调到|转到|换到|打开|开|关闭|关|关掉|开了;\n$device = 电视|中央一台|央视一套|中央二台|央视二套|中央三台|央视三套|中央四台|央视四套|中央五台|央视五套|中央六台|央视六套|中央七台|央视七套|中央八台|央视八套|中央九台|央视九套|中央十台|央视十套|中央十二台|央视十二套|央视少儿台|体育赛事频道|北京卫视台|天津卫视台|东方卫视台|湖南卫视台|浙江卫视台|江苏卫视台|山东卫视台|广东卫视台|深圳卫视台|湖北卫视台|河北卫视台|福建东南卫视台|福建海峡卫视台|黑龙江卫视台|辽宁卫视台|江西卫视台|陕西卫视台|重庆卫视台|中国交通|中央十一台|央视十一套|央视新闻|央视音乐|国防军事|女性时尚|央视精品|央视台球|电视指南|第一剧场|怀旧剧场|高尔夫网球|风云音乐|风云足球|世界地理|风云剧场|证券资讯|发现之旅|央视四套(欧)|央视四套(美)|央视新科动漫|央视西语频道|央视法语频道|央视俄语频道|央视阿语频道|央视中学生|广西卫视台|内蒙古卫视台|海南旅游卫视台|云南卫视台|贵州卫视台|青海卫视台|宁夏卫视台|甘肃卫视台|吉林卫视台|西藏卫视台|新疆卫视台|新疆兵团卫视台|福建厦门卫视台|福建海峡卫视台|广东南方卫视台|广东珠江卫视台|陕西农林卫视台|海南三沙卫视台|健康卫视台|北京文艺频道|北京科教频道|北京影视频道|北京财经频道|北京体育频道|北京生活频道|北京青年频道|北京新闻频道|北京纪实频道|上海新闻综合|上海电视剧|东方电影频道|上海五星体育|上海艺术人文|上海娱乐频道|上海纪实频道|上海星尚频道|上海外语频道|上海教育频道|广东国际频道|广东新闻频道|广东公共频道|广东体育频道|广东经济科教台|广东综艺频道|广东影视频道|广东少儿频道|广东现代教育|广东房产频道|广东会展频道|深圳都市频道|深圳电视剧频道|深圳体育健康台|深圳财经生活台|深圳娱乐频道|深圳公共频道|深圳少儿频道|深圳法治频道|广州综合频道|广州新闻频道|广州影视频道|广州竞赛频道|广州经济频道|广州少儿频道|广州生活频道|吊灯|射灯|床头灯|书桌灯|客厅灯|餐厅灯|主卧灯|次卧灯|浴室灯|壁灯|厨房灯|廊灯|阳台灯|吊灯一|射灯一|床头灯一|书桌灯一|客厅灯一|餐厅灯一|主卧灯一|次卧灯一|浴室灯一|壁灯一|厨房灯一|廊灯一|阳台灯一|吊灯二|射灯二|床头灯二|书桌灯二|客厅灯二|餐厅灯二|主卧灯二|次卧灯二|浴室灯二|壁灯二|厨房灯二|廊灯二|阳台灯二|吊灯三|射灯三|床头灯三|书桌灯三|客厅灯三|餐厅灯三|主卧灯三|次卧灯三|浴室灯三|壁灯三|厨房灯三|廊灯三|阳台灯三|吊灯四|射灯四|床头灯四|书桌灯四|客厅灯四|餐厅灯四|主卧灯四|次卧灯四|浴室灯四|壁灯四|厨房灯四|廊灯四|阳台灯四|回家|睡觉|离家|我起来了|起夜|见客人|看电影|就餐|回房|离房|全部灯|所有灯|风扇|排气扇|去吃饭|我的灯|我的台灯|我的床头灯|我的浴室灯|我的风扇|我的排气扇|我的书桌灯|我的壁灯|我的吊灯;" }
UTF-8
ABNF
3,426
dhh1128
e1d082553c0a66678362c801cfb41849433bbfb2
537eb58d242bc58d27cb07cf3b17db0efcd0b961
/intent/lang/intent.abnf
c442c85861b25350f7390c4abf9b182a5e1f52bf
dhh1128/intent
{ "content": "document = *line\nline = *indent (paragraph / term / instruction) eol\nterm = \"-\" name [\":\" *mark [categorizer] [\"=\" expr] ]\nname = 1*(ALPHA / \" \")\nparagraph = begin-paragraph *text\nbegin-paragraph = %x21-2c / %x2e-ff ; everything except \" \" and \"-\"\ntext = %x20-ff\nindent = \" \"\nexpr = grouped / simple-expr\ngrouped = \"(\" expr \")\"\nsimple-expr = (number / str / function-call / name)\ninstruction = definition / if / loop" }
UTF-8
ABNF
582
kuhbaar
5ac6ec31a3817f0144814806af6c307e7f18a667
a8861ebb351e412485506001de7d5358a975dadb
/uzb.abnf
b983bbcc51fdfb19692014d103f9e8f223646c0a
kuhbaar/UZB
{ "content": "Command = \"!\"cmd *(%d13 Command);\r\nsp = \" \";\r\n\r\ncmd = \"login\" sp username / \"logout\" / \"list\" / \"create\" sp duration sp description/ \"bid\" sp id sp amount / \"end\" ;\r\n\r\nusername = *%d33-126; #all printable ascii chars without space\r\n\r\nduration = *(%d48-57);\r\n\r\ndescription = *(%d32-126); #20-255 all printable ascii with space\r\n\r\nid = *%d48-57;\r\n\r\namount = *%d48-57[\".\"2%d48-57];" }
UTF-8
ABNF
378
triflicacid
211e1e450eaa5b7fe0d4887ee3e55a2d7c0e8db1
5ac907275f3fdac9f9c9ff1857cdb84f37c9823c
/ABNF/tests/lexer/vars.abnf
8168c2da915ffe149e1878c08b25f67b7d1b1e35
triflicacid/cpp-abnf
{ "content": "letter = %d65-90 ; A-Z\npair = letter space <letter>" }
UTF-8
ABNF
51
antlr
7ed0df8bf1a04a289430fe1a7b7cde88a16c5da0
3b87eaa7f1b8290d1a74ac2bec9573f81aab831d
/abnf/examples/iri.abnf
aa10189307164a2e16f6dcbbc3f4f7361aee81be
antlr/grammars-v4
{ "content": "IRI\t=\tscheme \":\" ihier-part [ \"?\" iquery ] [ \"#\" ifragment ]\nihier-part\t=\t\"//\" iauthority ipath-abempty /\nipath-absolute /\nipath-rootless /\nipath-empty\nIRI-reference\t=\tIRI / irelative-ref\nabsolute-IRI\t=\tscheme \":\" ihier-part [ \"?\" iquery ]\nirelative-ref\t=\tirelative-part [ \"?\" iquery ] [ \"#\" ifragment ]\nirelative-part\t=\t\"//\" iauthority ipath-abempty / ipath-absolute / ipath-noscheme / ipath-empty\niauthority\t=\t[ iuserinfo \"@\" ] ihost [ \":\" port ]\niuserinfo\t=\t*( iunreserved / pct-encoded / sub-delims / \":\" )\nihost\t=\tIP-literal / IPv4address / ireg-name\nireg-name\t=\t*( iunreserved / pct-encoded / sub-delims )\nipath\t=\tipath-abempty /\t; begins with \"/\" or is empty\nipath-absolute /\t; begins with \"/\" but not \"//\"\nipath-noscheme /\t; begins with a non-colon segment\nipath-rootless /\t; begins with a segment\nipath-empty\t; zero characters\nipath-abempty\t=\t*( \"/\" isegment )\nipath-absolute\t=\t\"/\" [ isegment-nz *( \"/\" isegment ) ]\nipath-noscheme\t=\tisegment-nz-nc *( \"/\" isegment )\nipath-rootless\t=\tisegment-nz *( \"/\" isegment )\nipath-empty\t=\t0<ipchar>\nisegment\t=\t*ipchar\nisegment-nz\t=\t1*ipchar\nisegment-nz-nc\t=\t1*( iunreserved / pct-encoded / sub-delims / \"@\" )\n; non-zero-length segment without any colon \":\"\nipchar\t=\tiunreserved / pct-encoded / sub-delims / \":\" / \"@\"\niquery\t=\t*( ipchar / iprivate / \"/\" / \"?\" )\nifragment\t=\t*( ipchar / \"/\" / \"?\" )\niunreserved\t=\tALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\" / ucschar\nucschar\t=\t%xA0-D7FF /\n%xF900-FDCF /\n%xFDF0-FFEF /\n%x10000-1FFFD /\n%x20000-2FFFD /\n%x30000-3FFFD /\n%x40000-4FFFD /\n%x50000-5FFFD /\n%x60000-6FFFD /\n%x70000-7FFFD /\n%x80000-8FFFD /\n%x90000-9FFFD /\n%xA0000-AFFFD /\n%xB0000-BFFFD /\n%xC0000-CFFFD /\n%xD0000-DFFFD /\n%xE1000-EFFFD\niprivate\t=\t%xE000-F8FF /\n%xF0000-FFFFD /\n%x100000-10FFFD\n\n\n" }
UTF-8
ABNF
1,880
lioaphy
8e3cbff74edd2c6cdc47836f294ebff4234517dd
cb09dc2c25af42bdedfbefc665e2319612227560
/grammars/indirectLeftRecursiveExample.abnf
79391b1218afbbb34f923ccd5dd4b55ed0ca7060
lioaphy/ABNF_to_PEG_translator
{ "content": "A = C\nB = C A / b\nC = A A / a\n" }
UTF-8
ABNF
30
web-projects
1e68f322f73513d9c12d1e9dc79ce24237491834
ea416f4242506d6aeeaace5c60756d7b17d77a10
/AccuStudioExecutables/RuleLib/TELib/Template1.abnf
97f204a3b0fb704a227e57992e38b27c0034162b
web-projects/AccuStudio
{ "content": "// Handle a Screen with a single field of digits that select an option.\n// Dialog Grammar: |DialogName|\n//\n\n#include \"|AppName|_res.h\"\n#include \"vkeys.h\"\n\n#start <|DialogName|>\n\n<|DialogName|> = \n\n <selection> => SETFIELD(|FieldID|, <selection>)+DEPRESS(VK_ENTER);\n\n\n<selection> = #(\t\n\t\t\toption 1 \t\t\t\t= 1,\t\t// List of options and their returned codes\n\t\t\toption 2\t\t\t\t= 2,\n\t\t\tsign off \t\t\t\t= 90,\n\t\t\tlog off \t\t\t\t= 90\t\t\t\n\t\t );\n\n" }
UTF-8
ABNF
424
Xeclipse
570430605cdaf608bcc7cb136c26c2cf1bad6773
15484a6cf4a4d0cdc73f834c5fca9cc68659e49f
/src/test/telephone.abnf
36621592d38ebafc61f1262bb2902f122261134a
Xeclipse/ABNF-Parser
{ "content": "#ABNF 1.0 UTF-8;\nbusiness telephone;\nroot main;\n#ABNF HEAD-END;\n$telephoneaction1{operation%CALL}=找 |呼叫;\n$telephoneaction2{operation%CALL}=打|打电话;\n$contact{contact}=张三;\n$main{biz:telephone}=[帮我] $telephoneaction1 $contact | [帮我] $telephoneaction2 给 $contact | 给 $contact $telephoneaction2;" }
UTF-8
ABNF
318
mwherman2000
e2770df5e28de0081fbd7fffc5b9420a971f14a7
a9e7a38b55a864f632f9c9e172fefb223a338e26
/parse2-aparse/examples/CSV.abnf
e62dfb00c285cb03b28ba48f5061352ff5d0d3df
mwherman2000/did-uri-spec
{ "content": "#---------------------------------------------------------------------------\n# CSV - RFC 4180\n#---------------------------------------------------------------------------\n\nCSV = file;\n\nfile = [header CRLF] record *(CRLF record) [CRLF];\n\nheader = name *(COMMA name);\n\nrecord = field *(COMMA field);\n\nname = field;\n\nfield = (escaped / non-escaped);\n\nescaped = DQUOTE *(TEXTDATA / COMMA / CR / LF / 2DQUOTE) DQUOTE;\n\nnon-escaped = *TEXTDATA;\n\nCOMMA = %x2C;\n\nCR = %x0D;\n\nDQUOTE = %x22;\n\nLF = %x0A;\n\nCRLF = CR LF;\n\nTEXTDATA = %x20-21 / %x23-2B / %x2D-7E;\n\n#---------------------------------------------------------------------------\n# end\n#---------------------------------------------------------------------------" }
UTF-8
ABNF
791
xiaomochn
a4138c032f8093d1f9ec9e1ae11b9283cb72481d
5fc0179817fe79baf7446f4b3b259dd7cd4976e8
/sample/MSCDemo/MSCDemo/data/bnf/grammar_sample.abnf
ae773a3a1097de90a963a0083b6ee14cff0c06c1
xiaomochn/camera
{ "content": "#ABNF 1.0 UTF-8;\nlanguage zh-CN;\nmode voice;\nroot $main;\n$main = $place2;\n$place1 = 上海|合肥;\n$place2 = 拍照|牌照|茄子|锲子|田七|天气|天齐|天启|喂|给我拍照|拍照拍照|你好|派我|拍我|哈喽;" }
UTF-8
ABNF
223
zhangweihust
9d8f3058ef03dc1739aa63384b3de688400277fb
0d183f64948b847e5fc04bc5d14745b2cbeb3afa
/JTree/aparse/basic.abnf
ebe7b19927629d83a9f59ea70d5a600ca11d7168
zhangweihust/JTree
{ "content": "#####BASIC RULES#####\nHTAB = %x09;\nCR = %x0d;\nLF = %x0a;\nSP = %x20;\nCRLF = [CR] LF;\nQUOT = %x22;\nSINGLE_QUOT = %x27;\nHASH = %x23;\nCOMMA = %x2c;\nDOT = %x2e;\nCOLON = %x3a;\nSEMICOLON = %x3b;\nEQ = %x3d;\nUNDERSCORE = \"_\";\nALPHA = %x41-5a / %x61-7a;\nDIGIT = %x30-39;\nHEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\" ;\nVCHAR = %x20-7e;\nVCHAR_WITHOUT_QUOT = %x20 / %x21 / (%x23-26) / (%x28-7e);\nSUB = %x2d;\nBRACE_PRE = %x7b;\nBRACE_POS = %x7d;" }
UTF-8
ABNF
436
leafspace
71c4b8556e5f32d4cd2ed4659dc3d64415348ece
8497928d63dcb0890b2fd1bde999b580663a00d7
/程序代码/0-基于树莓派的嵌入式语音识别系统/build-MedicalSpeechRecognition-Desktop-Debug/prammar.abnf
65d04f6565f037e489a7f3784db6a56aaeeb2dfe
leafspace/Telemetry-medical-platform
{ "content": "#ABNF 1.0 UTF-8;\n\nlanguage zh-CN;\nmode voice;\n\nroot $main;\n\n$number = 一 | 二 | 三 | 四 | 五 | 六 | 七 | 八 | 九 | 零;\n$unit = 毫克 | 毫升;\npublic $main = [$number] 号 输液 [$number] [$unit];\n" }
UTF-8
ABNF
209
EdgarShun
51d09d9dc8bc311e0ea91dc2e1b92fa4c07dfe68
a32eb7fe551d69597992fd9bb97daa92b997ff33
/app/src/main/assets/wake_grammar_sample.abnf
88cfca39ad1400147ffbe8b3e5c81aea9c095437
EdgarShun/study01working
{ "content": "#ABNF 1.0 UTF-8;\nlanguage zh-CN; \nmode voice;\n\nroot $main;\n$main = [$call] [我] [$want] 打电话给 $name;\n$want = 想|要;\n$call = 老王老王;\n$name = 张三|李四|张海洋;" }
UTF-8
ABNF
180
qualiabyte
e9d378ec6ce810b5a44f4fb6b2b953d8e08dd7c6
ee19eaca8cb5053eb0377345b6062f03f54ed4f1
/grammars/objects.abnf
6e055527af045135bd6bcc58af2cf8be8430be65
qualiabyte/2014-04-24-bnf
{ "content": "\n; PRIMITIVES\n\nsha1 = 40( hex ) ; SHA-1 hash\nutf8 = %x0000-10FFFF ; UTF-8 character\nnon-lf = %x0000-0009 / %x000b-10FFFF ; Non-linefeed\n\n; Lowercase all the things!\nhex = \"0\" / \"1\" / \"2\" / \"3\" / \"4\" / \"5\" / \"6\" / \"7\"\n / \"8\" / \"9\" / \"a\" / \"b\" / \"c\" / \"d\" / \"e\" / \"f\"\n\n; ISO-8601 Date\niso-date = 2(DIGIT) \"-\" 2(DIGIT) \"-\" 2(DIGIT) \"T\" ; YY-MM-DDT\n 2(DIGIT) \":\" 2(DIGIT) \":\" 2(DIGIT) \"Z\" ; hh:mm:ssZ\n\n; ARGUMENTA\n\nhostname = 1*255( utf8 )\nusername = 1*20( utf8 )\n\n; ARGUMENTA OBJECTS\n\nobject = argument / commit / proposition / tag\nobject-type = \"argument\" / \"commit\" / \"proposition\" / \"tag\"\n\n; ARGUMENTS\n\nargument = argument-header argument-body\nargument-header = \"argument\" LF LF\nargument-body = argument-title argument-premises argument-conclusion\nargument-title = 1*100( non-lf )\nargument-premises = *( argument-premise )\nargument-premise = \"premise\" SP sha1 LF\nargument-conclusion = \"conclusion\" SP sha1 LF\n\n; COMMITS\n\ncommit = commit-header commit-body\ncommit-header = \"commit\" LF LF\n\ncommit-body = commit-entry-target\n commit-entry-parents\n commit-entry-committer\n commit-entry-date\n [ commit-entry-host ]\n\ncommit-entry-target = object-type SP sha1 LF\ncommit-entry-parents = *( commit-entry-parent )\ncommit-entry-parent = \"parent\" SP sha1 LF\ncommit-entry-committer = \"committer\" SP username LF\ncommit-entry-date = \"commit_date\" SP iso-date LF\ncommit-entry-host = \"host\" SP hostname LF\n\n; PROPOSITIONS\n\nproposition = \"proposition\" SP proposition-text\nproposition-text = 1*240( utf8 )\n\n; TAGS\n\ntag = tag-header tag-body\ntag-header = \"tag\" LF LF\n\ntag-body = tag-body-support\n / tag-body-dispute\n / tag-body-citation\n\ntag-body-support = tag-entry-support\n tag-entry-target\n tag-entry-source\n\ntag-body-dispute = tag-entry-dispute\n tag-entry-target\n tag-entry-source\n\ntag-body-citation = tag-entry-citation\n tag-entry-target\n tag-entry-citation-text\n\ntag-type = \"support\" / \"dispute\" / \"citation\"\ntag-entry-support = \"tag_type\" SP \"support\" LF\ntag-entry-dispute = \"tag_type\" SP \"dispute\" LF\ntag-entry-citation = \"tag_type\" SP \"citation\" LF\ntag-entry-target = \"target\" SP object-type SP sha1 LF\ntag-entry-source = \"source\" SP object-type SP sha1 LF\ntag-entry-citation-text = \"citation_text\" SP citation-text LF\n\ncitation-text = 1*240( utf-8 )\n" }
UTF-8
ABNF
2,645