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
leafspace
abb026c205c3f8f957948ee473cd19475eb5ad0a
8497928d63dcb0890b2fd1bde999b580663a00d7
/程序代码/2-Linux与Web端交互操作/Linux Project/prammars/prammar3-几号输液几毫克.abnf
a06547eef8a72b713f2d51ccd285fafdf53a8871
leafspace/Telemetry-medical-platform
{ "content": "#ABNF 1.0 UTF-8;\n\nlanguage zh-CN;\nmode voice;\n\nroot $main;\n\n$number = 一 | 二 | 三 | 四 | 五 | 六 | 七 | 八 | 九 | 零;\n\npublic $main = [$number] 号 输液 [$number] 毫克;\n" }
UTF-8
ABNF
184
triflicacid
a016e1d18855160b77fd0bd1a5c562ecc6d6cdd9
5ac907275f3fdac9f9c9ff1857cdb84f37c9823c
/ABNF/tests/lexer/repetition.abnf
dc3ddc01697b981d2489ca64875cbe1384c36ee4
triflicacid/cpp-abnf
{ "content": "bit = \"0\" / \"1\"\nbitstream = *bit\nbyte = 8bit" }
UTF-8
ABNF
44
arniu
45d5baca01a5f5f63594ddad24f0c0d2da8f11f2
d40dded9d6409da220a3d6c5ea72badd73784b55
/Tests/Example.abnf
45c05c49a8e1b2a1321a50d865cba55ee394ef21
arniu/ABNF.tmbundle
{ "content": "; In ABNF comments start with a single semicolon.\n\n; An ABNF rule can contain multiple sub-rules.\nrule = WSP subrule2 DIGIT\n\n; We can also use optional angle brackets around a rule name.\n<oh-look-ma-angle-brackets> = \"[]\"; To specify a sequence of characters we use\n ; double quotes.\nrule = <angle-brackets>\n\n; By default characters between double quotes are case-insensitive. This means\n; \"abc\", \"ABC\" and \"abc\" describe the same sequence of characters. To\n; explicitly specify a case-sensitive string use the prefix `%s`.\ncase-sensitive = %s\"Case Sensitive\"\ncase-insensitive = %i\"Case Insensitive\"\nalso-case-insensitive = \"case insensitive\"\n\n; We can also specify characters directly using their ASCII/Unicode value.\nCR = %d13\nCR = %x0D\nspace = %b100000\n\n; We can combine characters using the concatenation operator `.`.\nABNF = %d65.66.78.70\n; This rule describes the exact same sequence of characters as the rule above.\nABNF = %d65 %d66 %d78 %d70\nhex = %xa.b\nbinary = %b100000.10\n\n; We separate alternatives by a forward slash.\nrule = alternative1 / alternative2 / \"Alternative\"\n\n; We specify incremental alternative via `=/`.\nrule = alternative1\nrule =/ alternative2 / \"Alternative\"\n\n; We can specify a range of values using a dash sign.\nbinary-range = %b00-11\ndecimal-range = %d30-39\nhex-range = %x30-af\n\n; We group rules using parentheses.\ngrouped = ( Turbo /\n Staat /\n ([American] Football) ) Husum\n\n; To repeat rules we use the form <min>*<max>element or <number>element, where\n;\n; - <min> specifies the minimum number of repetitions,\n; - <max> specifies the maximum number of repetitions, and\n; - <number> specifies the exact number of repetitions\n;\n; required.\nyear = 12(month) / *(%x00-0B)\nmonth = 28*31days / 2419200*2678400second / 1month\nzero-or-one-day = *1day\n\n; We can use square brackets to make rules optional.\nzero-or-one-day = [day]\nfloat = [digits [\".\"[digits]]]\n\n; -- Invalid Rules -------------------------------------------------------------\n\n<missing-angle-bracket = \"Missing `>`\"\nillegal$characters_ = \"Rule names can only contain certain characters\"\n\nincorrect-binary-digits = %b3h012901.012xf.56\n %b0123456789abcdefg-0123456789abcdefg\n\nincorrect-decimal-digits = %d3h012901.012xf.56\n %d0123456789abcdefg-0123456789abcdefg\n\nincorrect-hex-digits = %x3h012901.012xf.56\n %x0123456789abcdefg-0123456789abcdefg\n\nvariable-repetition-without-element = 12 twelve 1*2 three\n\nwrong-definition-operator /= \"`=` or `=/` would be correct\"\n\ndefinition-in-right-side = \"Uh\" = \"Huh\" /= \"Her\"\n" }
UTF-8
ABNF
2,623
flyloong
cd78edd3a3e517f00acf6771ab9226d02b1d707e
b6681d64ff83e94f863d89919f0c4e4cb553410c
/BlueSTExample/src/main/assets/grammar_sample.abnf
c051885b589bec29af7a837164c75d4a2f7f95e0
flyloong/BlueSTSDK
{ "content": "#ABNF 1.0 UTF-8;\nlanguage zh-CN; \nmode voice;\n\nroot $main;\n$main = $place1 ;\n$place1 = 开灯|关灯|拍照|茄子|关闭;\n" }
UTF-8
ABNF
123
flintlang
b39abd97d6bec5007b3a71cf095dae53cccd0635
6a94491632c05d8dfb819d972c0cfc6153a638c7
/docs/testing_dsl.abnf
a6d1ca60f3e640c0e2e28539ceb2f6aaa063348e
flintlang/flint
{ "content": "; FLINT-TEST DSL GRAMMAR \n\n; TOP LEVEL\ntestFile = contractDeclaration contractBehaviourDeclaration\n\n; CONTRACTS\ncontractDeclaration = %s\"contract\" SP identifier SP \"{\" *(WSP variableDeclaration CRLF) \"}\";\n\n; VARIABLES\nvariableDeclaration = [*(modifier SP)] WSP (%s\"var\" / %s\"let\") SP identifier typeAnnotation WSP \"=\" WSP expression;\n\n; TYPES\ntypeAnnotation = \":\" WSP type;\n\ntype = identifier \n / basicType\n\nbasicType = %s\"Bool\"\n / %s\"Int\"\n / %s\"String\"\n / %s\"Address\";\n\n; BEHAVIOUR\ncontractBehaviourDeclaration = identifier WSP \"::\" WSP (any) WSP \"{\" *(WSP contractBehaviourMember CRLF) \"}\";\n\ncontractBehaviourMember = functionDeclaration\n\n; FUNCTIONS + INITIALIZER \nfunctionSignatureDeclaration = functionHead SP identifier\"()\" \nfunctionDeclaration = functionSignatureDeclaration codeBlock;\n\nfunctionHead = [*(modifier SP)] %s\"func\";\n\nmodifier = %s\"public\"\n\n; STATEMENTS\ncodeBlock = \"{\" [CRLF] *(WSP statement CRLF) WSP \"}\";\nstatement = expression\n\n; EXPRESSIONS\nexpression = identifier\n / binaryExpression\n / functionCall\n / literal\n / variableDeclaration\n\nbinaryOp = \"=\"\n / \".\";\n\nbinaryExpression = expression WSP binaryOp WSP expression;\n\n; FUNCTION CALLS\nfunctionCall = identifier \"(\" [expression *( \",\" WSP expression )] \")\";\n\n; LITERALS\nidentifier = ( ALPHA / \"_\" ) *( ALPHA / DIGIT / \"$\" / \"_\" );\nliteral = numericLiteral\n / stringLiteral\n / booleanLiteral\n / addressLiteral;\n\nnumber = 1*DIGIT;\nnumericLiteral = decimalLiteral;\ndecimalLiteral = number\n\naddressLiteral = %s\"0x\" 40HEXDIG;\n\nbooleanLiteral = %s\"true\" / %s\"false\";\nstringLiteral = \"\"\" identifier \"\"\";\n" }
UTF-8
ABNF
1,715
loganmhb
dac20cf916c04e975b53b45c7f1549f7bf0665ac
b5d177cf8178b7f79bbe5608560c10d5c16b6cf3
/src/cc/grammar.abnf
0b465ce0db975c9c2b5bd37a87d04126163d9eee
loganmhb/cc
{ "content": "module = statement+\nstatement = ( defstmt | externstmt ) <semicol>\nsemicol = [<ws>] <\";\"> [<ws>]\n<defstmt> = def name arglist expr\n<externstmt> = extern name arglist\nextern = <\"extern\"> <ws>\ndef = <\"def\"> <ws>\n<ws> = <#\"\\s*\">\n<name> = #\"[a-zA-Z][a-zA-Z0-9_]*\" [ws]\narglist = <\"(\"> [argname [<\",\"> [ws] argname]* ] <\")\">\nargname = name\n<expr> = [<ws>] (int | binaryop | funcall | <\"(\"> expr <\")\"> | ref)\nref = name\nfuncall = name <\"(\"> [expr] [<\",\"> expr]* <\")\">\nint = #\"[0-9]+\"\nbinaryop = expr [<ws>] operator [<ws>] expr\noperator = \"+\" | \"-\" | \"*\" | \"/\"" }
UTF-8
ABNF
554
voximal
641f35c33ea949d9342bf276b6460b9555782fb6
10e81f67479a8f0b5382c544e1980a4f26ac4a48
/grammar/grammar.abnf
f830fcff24a0c9507dd2e06e43a34f7f04595d11
voximal/voicexml-examples
{ "content": " <grammar type=\"text/x-grammar-choice-dtmf\" mode=\"dtmf\" src=\"gramaticas/gramatica_dtmf.bnf\"/>\ny uso este fichero de gramática: #ABNF 1.0 ISO-8859-1;\n\n1 {1} |\n0 {0}\npuede estar así bien?" }
UTF-8
ABNF
187
yashprakash28
c16f4fb1d413f94e9f001f61b94b90b29adae018
31c7ce820bccb6c40ebcb5af056ac7cfadc7cf1e
/POC/Assets/unity-sdk-5.0.2/Tests/TestData/SpeechToTextV1/confirm.abnf
748a221d536f6a4ff270d219f10c90f5843b0d7e
yashprakash28/ISR-POC
{ "content": "#ABNF 1.0 ISO-8859-1;\r\nlanguage en-US;\r\nmode voice;\r\nroot $yesno;\r\n\r\n$yesno = affirmative | nah | no | nope | yeah | yep | yes | yup | fine\r\n| negative | OK | sure ;\r\n" }
UTF-8
ABNF
167
web-projects
504cd4a26e0296dd7d761c0d79a0fe5bde597917
ea416f4242506d6aeeaace5c60756d7b17d77a10
/AccuStudioExecutables/RuleLib/MessageBox_Grm.abnf
075194afdaa878c7088676f8bc187abe635ccd48
web-projects/AccuStudio
{ "content": "//\n// Dialog Grammar(s) for MessageBox\n//\n\n#define IDOK 1\n#define IDCANCEL 2\n#define IDABORT 3\n#define IDRETRY 4\n#define IDIGNORE 5\n#define IDYES 6\n#define IDNO 7\t\n#define IDTRYAGAIN\t\t\t\t\t10\n#define IDCONTINUE\t\t\t\t\t11\n\n\n#start <MessageBox_Grm>\n\n<MessageBox_Grm> = \n\t\tOk => DEPRESS(IDOK);\n\n#start <MessageBox_Grm_MB_OKCANCEL>\n\n<MessageBox_Grm_MB_OKCANCEL> = \n\t\tOk => DEPRESS(IDOK) | \n\t\tCancel => DEPRESS(IDCANCEL);\n\n#start <MessageBox_Grm_MB_ABORTRETRYIGNORE>\n\n<MessageBox_Grm_MB_ABORTRETRYIGNORE> = \n\t\tAbort => DEPRESS(IDABORT) |\n\t\tRetry => DEPRESS(IDRETRY) |\n\t\tIgnore => DEPRESS(IDIGNORE) ; \n\n#start <MessageBox_Grm_MB_YESNOCANCEL>\n\n<MessageBox_Grm_MB_YESNOCANCEL> = \t\n\t\tYes => DEPRESS(IDYES) |\n\t\tNo => DEPRESS(IDNO) |\n\t\tCancel => DEPRESS(IDCANCEL) ; \n\n#start <MessageBox_Grm_MB_YESNO>\n\n<MessageBox_Grm_MB_YESNO> = \n\t\tYes => DEPRESS(IDYES) |\n\t\tNo => DEPRESS(IDNO);\n\t\t\n#start <MessageBox_Grm_MB_RETRYCANCEL>\n\n<MessageBox_Grm_MB_RETRYCANCEL> = \n\t\tRetry => DEPRESS(IDRETRY) |\n\t\tCancel => DEPRESS(IDCANCEL) ;\n\t\t \n#start <MessageBox_Grm_MB_CANCELTRYCONTINUE>\n\n<MessageBox_Grm_MB_CANCELTRYCONTINUE> = \n\t\tTry Again => DEPRESS(IDTRYAGAIN) |\n\t\tContinue => DEPRESS(IDCONTINUE) | \n\t\tCancel => DEPRESS(IDCANCEL) ;\n\t\n" }
UTF-8
ABNF
1,295
zzh0123
813f2f6ee85e2e76978b597152fd02e197f4f103
465103a00d3c1b722a5f76dc3620c05582520a6c
/app/src/main/assets/wake_grammar_sample.abnf
12c0f2f01cd81c6b10470b25f6bc0ad6faaeb8d3
zzh0123/XunFeiTestWakeUp
{ "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
263
Macecaski
69aa90e783cad41851c2719557f00aabecc432dd
af04c0933e0f1976b831b9e52bf9edd04f25c158
/grammars/edytuj.abnf
32f1fc1074f0ad04ff1496d669c0b6a2326dd8d2
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\r\n$root = $zmiana | ($zmiana $zmiana) | ($zmiana $zmiana $zmiana) | ($zmiana $zmiana $zmiana $zmiana) | ($zmiana $zmiana $zmiana $zmiana $zmiana) | ($zmiana $i $zmiana) | ($zmiana $zmiana $i $zmiana) | ($zmiana $zmiana $zmiana $i $zmiana) | ($zmiana $zmiana $zmiana $zmiana $i $zmiana);\r\n\r\n$zmiana = $nazwa | $godzina | $data | $lokalizacja | $opis;\r\n\r\n\r\n$nazwa = (nazwa | nazwę | tytuł ) {nazwa};\r\n\r\n$godzina = (godzinę | godzinę | czas) {godzina};\r\n\r\n$data = (data | datę | dzień | miesiąc | rok) {data};\r\n\r\n$lokalizacja = (lokalizacja | lokalizację | miejsce | adres) {lokalizacja};\r\n\r\n$opis = (opis) {opis};\r\n\r\n$i = i {i};" }
UTF-8
ABNF
730
Zooce
c60919ea2d901a2304fbcc4446f08bc0cb02745c
86f103a2b2dcdd231c496d493ccde61e53183637
/zomb.abnf
8331e9937a2316b88c53dd51842402d1e5eb83f3
Zooce/zomb-file
{ "content": ";; The ZOMB file format grammar in ABNF format.\n;;\n;; This ABNF definition of ZOMB is heavily influenced by the TOML ABNF found at:\n;; https://github.com/toml-lang/toml/blob/master/toml.abnf\n;;\n;; Credit to http://instaparse.mojombo.com/ as it was used for testing.\n\n;; Top-Level Rules\n\nzomb-file = decl *( separator decl ) [ separator ]\n\ndecl = kv-pair / macro-def / comment\n\n;; Key-Value Pair Rules\n\nkv-pair = string [ padding ] equals [ padding ] value\n\nmacro-kv-pair = string [ padding ] equals [ padding ] macro-value\n\n;; Object Rules\n\nobject = object-begin [ padding ] [ kv-pair-list ] object-end\n\nmacro-object = object-begin [ padding ] [ macro-kv-pair-list ] object-end\n\n;; Array Rules\n\narray = array-begin [ padding ] [ value-list ] array-end\n\narray-req = array-begin [ padding ] value-list array-end\n\nmacro-array = array-begin [ padding ] [ macro-value-list ] array-end\n\nmacro-array-req = array-begin [ padding ] macro-value-list array-end\n\nbatch-macro-arg-array = array-begin [ padding ] array-req-list array-end\n\nbatch-macro-macro-arg-array = array-begin [ padding ] macro-array-req-list array-end\n\n;; Macro Expression Rules\n\nmacro-expr = macro-key [ macro-expr-params ] *( macro-accessor )\n\nmacro-macro-expr = macro-key [ macro-macro-expr-params ] *( macro-accessor )\n\nbatch-macro-expr = macro-key batch-macro-expr-params *( macro-accessor ) [ padding ] percent [ padding ] batch-macro-arg-array\n\nbatch-macro-macro-expr = macro-key batch-macro-macro-expr-params *( macro-accessor ) [ padding ] percent [ padding ] batch-macro-macro-arg-array\n\n;; Macro Expression Param Rules\n\nmacro-expr-params = [ padding ] macro-params-begin [ padding ] value-list macro-params-end\n\nmacro-macro-expr-params = [ padding ] macro-params-begin [ padding ] macro-value-list macro-params-end\n\nbatch-macro-expr-params = [ padding ] macro-params-begin [ padding ] batch-param-list macro-params-end\n\nbatch-macro-macro-expr-params = [ padding ] macro-params-begin [ padding ] batch-macro-param-list macro-params-end\n\n;; Macro Definition Rules\n\nmacro-def = macro-key [ padding ] [ macro-def-params ] [ padding ] equals [ padding ] macro-value\n\nmacro-def-params = macro-params-begin [ padding ] macro-param-list macro-params-end\n\nmacro-param-def = string [ padding ] equals [ padding ] value\n\n;; Macro Utility Rules\n\nmacro-key = dollar string\n\nmacro-param-use = percent string\n\nmacro-accessor = dot string\n\n;; Value and Concatenation Rules\n\nvalue = string-val / object-val / array-val / macro-expr-val / batch-macro-expr-val\n\nmacro-value = macro-param-val / macro-string-val / macro-object-val / macro-array-val / macro-macro-expr-val / batch-macro-macro-expr-val\n\nbatch-param-value = question / value\n\nbatch-macro-param-value = question / macro-value\n\n; NOTE: macro-expr and macro-param-use in the following rules must evaluate to the corresponding type\n\nstring-val = any-string *( plus ( any-string / macro-expr ) )\n\nobject-val = object *( plus ( object / macro-expr ) )\n\narray-val = array *( plus ( array / macro-expr / batch-macro-expr ) )\n\nmacro-expr-val = macro-expr *( plus ( any-string / object / array / macro-expr / batch-macro-expr ) )\n\nbatch-macro-expr-val = batch-macro-expr *( plus ( array / macro-expr / batch-macro-expr ) )\n\nbatch-macro-macro-expr-val = batch-macro-macro-expr *( plus ( array / macro-expr / batch-macro-macro-expr ) )\n\nmacro-string-val = any-string *( plus ( any-string / macro-macro-expr / macro-param-use ) )\n\nmacro-object-val = macro-object *( plus ( macro-object / macro-macro-expr / macro-param-use ) )\n\nmacro-array-val = macro-array *( plus ( macro-array / macro-macro-expr / macro-param-use ) )\n\nmacro-macro-expr-val = macro-macro-expr *( plus ( any-string / macro-object / macro-array / macro-macro-expr / macro-param-use ) )\n\nmacro-param-val = macro-param-use *( plus ( any-string / macro-object / macro-array / macro-macro-expr / macro-param-use ) )\n\n;; List Rules\n\nkv-pair-list = kv-pair *( separator kv-pair ) [ separator ]\n\nvalue-list = value *( separator value ) [ separator ]\n\narray-req-list = array-req *( separator array-req ) [ separator ]\n\nmacro-array-req-list = macro-array-req *( separator macro-array-req ) [ separator ]\n\nmacro-param-list = string *( separator string ) [ separator [ macro-param-def-list ] ]\n\nmacro-param-def-list = macro-param-def *( separator macro-param-def ) [ separator ]\n\nmacro-kv-pair-list = macro-kv-pair *( separator macro-kv-pair ) [ separator ]\n\nmacro-value-list = macro-value *( separator macro-value ) [ separator ]\n\nvalue-list-req-sep = value *( separator value ) separator\n\n; NOTE: implementations must require at least one `?` in this list\nbatch-param-list = batch-param-value *( separator batch-param-value ) [ separator ]\n\nbatch-macro-param-list = batch-macro-param-value *( separator batch-macro-param-value ) [ separator ]\n\n;; String Rules\n\nstring = bare-string / quoted-string\n\nany-string = string / raw-string\n\nbare-string = 1*( non-delimiter )\n\nquoted-string = DQUOTE escaped-string DQUOTE\n\nescaped-string = *( non-escaped / ( %x5C escaped ) )\n\nraw-string = raw-line *( newline [ padding ] raw-line )\n\nraw-line = %x5C.5C *any\n\nnon-delimiter = %x21 / %x23 / %x26-27 / %x2A / %x2D / %x2F-3C / %x3E / %x40-5A / %x5E-7A / %x7C / %x7E-10FFFF\n\n; \" \\ b f n r t uXXXX\nescaped = DQUOTE / %x5C / %x62 / %x66 / %x6E / %x72 / %x74 / ( %x75 4HEXDIG )\n\nnon-escaped = WSP / %x21 / %x23-5B / %x5D-10FFFF\n\n;; Comment Rule\n\ncomment = %x2F.2F *any\n\n;; Special Delimiter Rules\n\ndot = %x2E\n\ndollar = %x24\n\nequals = %x3D\n\nplus = [ padding ] %x2B [ padding ]\n\ncomma = %x2C\n\npercent = %x25\n\nquestion = %x3F\n\nobject-begin = %x7B\n\nobject-end = %x7D\n\narray-begin = %x5B\n\narray-end = %x5D\n\nmacro-params-begin = %x28\n\nmacro-params-end = %x29\n\n;; Other Rules\n\nnewline = LF / CRLF\n\npadding = 1*( WSP / newline / ( comment newline ) )\n\nseparator = padding / ( [ padding ] comma [ padding ] )\n\nany = WSP / %x21-10FFFF\n" }
UTF-8
ABNF
5,918
pydanny
2d76a4d1e8cb7dcab2b6de2890ae0db15c41acea
42ac672183d9c61794c6c07440ee0fa791296189
/tests/examplefiles/abnf_example2.abnf
8781adfb9e00b984b19237b245e9dc478d4e930f
pydanny/pygments-custom
{ "content": "crlf = %d13.10\n\ncommand = \"command string\"\n\nchar-line = %x0D.0A *(%x20-7E) %x0D.0A\n\nwithout-ws-and-ctl = %d1-8 / %d11 / %d12 / %d14-31 / %d127\n\nthree-blank-lines = %x0D.0A.0D.0A.0D.0A\n" }
UTF-8
ABNF
197
cpsuman
6da25929e5d74add462f678defd45c1269a04457
a2709eda8eb0a6c69c7eec1ef34c8b1580e42582
/toml/toml.abnf
b5034af4d3043b88ee3fa399ac5cee715d94cabd
cpsuman/TOML
{ "content": "$ANSIBLE_VAULT;1.1;AES256\n65643362653965356666666365376462373565346133616635373964386436663564646465616535\n6432396332613562636436356532343631613536323430370a616464313066643565626634366262\n33386465376531363162363563313332666434363230643065306131646535343964373732653531\n3562373439333432320a346563626464356161353533353832393363613861343863336133333939\n65333532316333616361323639663538353236343135386234343933386161303134373039613064\n61336631666236356662313365653566323934626635346566346535623964656532633366333633\n30666531363761653263636663613134626433356437343533663061663462303231343032393961\n38613638353162636564616630323833636430306563653434353164656530653736643737623264\n34316664306338646434623837303262326263343530346663653437363261313363663163343034\n32323836383761373734353265323562393137616261363466326530363161316561316135643461\n61663539663463333166616337663864383931346561306339306361626339613235613434633661\n64616532343935343138343735396139383130393561636164626236653161323934646336313539\n32383535396538313836643738626334633135303934383561363834393831616664346364363231\n65353336313465323236333362666432626362643139373866366239643265376462323965666335\n35373435353739613631363362666432316337376564636134383664383361333139316535323533\n37343838356335653734653262333332633063343332623730303164613662353635313531636432\n38373935643934346234396561306562326335646439373430316237333237396537636532326661\n39333934363239303135363439346633316366663762303662303663636439623534646336666631\n61333363366230653565643537376431626161363037636535616133626330656666663562336339\n30343136306133363662633165663332323430316231633833353835393234353837663063633830\n30626235623562373737343133343138623561616537383434363634643935336130333930613562\n65376232653935393431633265343935393963333466666132373163343137323436373964303438\n34623431363238643433316562643162643233633133393465333863363865346336336665386530\n30316465373335376333343363386166306662616232376163613131386334386336393465343832\n30633437646135613566373362313465393566356234386564306364613266353931343061323938\n62626662313765623535623932626336393031363135393331613139653739386632656435623132\n35363038376130626536363538376364636234356138663233366437373237346365336239356437\n63336133646364353136373639343131333566336336663765636461303539646137633233346536\n38666134636163323261353964326466386230383263306165313463636130656261646165663332\n37643037393533353136303935323462663230363738646538396363666533323365353161333939\n62303035333038373633643136303765303231646265646262393437653630306639666638653439\n39376338613065376264363230656266366666356632313362313833346166653639646366626263\n66663736393439643530396562623861356236373336653061383761303832333766633633653631\n62633166313462346335346164356666323235333163336332666134326535646266616338306661\n30646162643435633963616539346639303765373865666438626365666664633865663739303535\n36376239303164626461613232386431653137346163386230643538646534306164663030613437\n33653565303164393637663837386536623664363339656133636134333038613131323664383539\n37396438653766313863333932386565663162316234633064373531386339616638626232333763\n35346464613065666462383833353961366335333963383737356662633538656562663432313935\n36346431363363333930313936383962383665383163333037613830663338313830333231353531\n65663730303439613933636265613931333533623735323030396463353031343263353933353332\n37336230613232373934623063666363653065613237613661343163653262346165393432363761\n33323334326534383435653464663238306432313734316530666535623230626238366336313364\n30316265373639646137643132643161363064333962653532376561396339313963326632633931\n35333733333030373339306435623433653832373566653130326438313432663734376562633032\n66633066313839316234313464366666303135356563383935633830616562313832373933626537\n38383163386238626261646131653463303934323663623931663366336236626362626662346635\n66343036346338333663323665396530636236326431303732666430306136303035316464383838\n31303435346539623862303732363063393634313564303436353663653662333939633630663832\n65663264613663336234373161313763356130633131323237356565643663383032356565316661\n62613433653861643532646363316235353863383634613237656237653134393638626133383666\n35366466303966663134343334393561333564663361623435343964343033336463303664326137\n38316365303366323066616266323136356439356334356336376664396231653033383461653937\n62663833653437366663326132353134316434653266343832613036633238373263653363356534\n62386530313363393761393263656364353762663064393666653830313037323331306266316633\n62303939303533383039643039623366333537376339666262353864313434303761376461666666\n32393232346566653863333032303132366139666433656563303935343834323465373034313836\n65333731623432373061343232633033383035373161623962313264626536643839626432366331\n38643532613566616263643166366363353933303731646535666363636439393233383935333630\n31323435393230643137323936646239303436313130316663323963396130363762366433646438\n35643064373635333133333534356664663761363432623938323539626539333366383133353061\n61323764353136366530613033633133393661363964393135616331366138393663326534666432\n39633765643433653330656165656664373234376137656131386230376539383361626562663366\n62616265323739366162386335656464366136363461383631633531363465333435356331383432\n33376433303939616234623235623832633661393932333338313461653366333938373331646462\n38643562613638653236316336333832626333643063333937306461326161386530383062373439\n63363061386431336566616462323965663636343030326165333861633134666166613138306438\n61373864303039373230363066616438616532353233333661373262653761343137626162633630\n37653438616436303331336563643931386466343466633563376165666263383430333939336664\n34383432626466356162663634396366633931396161363531613638623233663732643066376631\n61386532346563336362336237343063653763326431353864343336623964356137363166356631\n61663731316261366561313631656663393830363332313631346639313866323939613038333935\n61643432333139393639373633353234663965303531386335353138323463653737646639313265\n35663439626139656333383264336334656264363839616566643531636563626438643536633064\n66633939326437353130383938653265666336393132613639323738383561616431626563663433\n39313638666139326166383964313535343864353132376263623838323962363833393835656330\n36343535366639626265333332633635356635363565303461366439643738363732613931636239\n31633435633835653137353266656339393234656466326437646633623137353966613636363932\n35623930353633326133366466646631376461626466373961383938303464383262663730383937\n65333035616439623130316533333161653733393138363430633864376635323037333139626436\n30643337393865616336306632316263326537633035333134366165396365386231633336633763\n34383637393535636138366330326638323664346638616466343137656536343839666262346264\n63323139653936656639633239396432323032346161386162393036393135303234313134626332\n35643439383834356161343632306132386335356138623635363365303031373966373839643135\n32623863376433366432383530373038383934316534326130353037363837393163393732613735\n34326431666361356465343035356431366261366561333630383638343061613235323465623138\n61303333626139383665656463343537313832366336376562666532623230633539663839613032\n35326462373136343633653030353737663537333963646435393631636136656566663138333032\n62653261383861343136613435333065316364393362633232613030383766323835653634613732\n31636633343966666233373536366331613233653531356230383034343639633038303935396630\n38386361643165373430303233373239386630653432306465333161663861313033313364316133\n33383237663363646263306639353162646163326661393130653036373336653039383762646530\n37323665626139646361383738333130366336666165333332616231616665303531346332646134\n65666238353439373966383265383233353138643563303463313339373361353033383161373666\n31623332636633306237373038356530376561326437363961633731653063316162346330616538\n30613232373234623836393163616334653733366239323462643665316132616164306164396335\n37633238396339303339306436393031386631623632623766313039383937386638326339333966\n31373363666235616132363831653863313238323036313464316434643239363638356530393330\n37623364646439396336396437333639326236336637313863656163626265623834383538333264\n37366566323666653066353962653533656539656366366565376230623534343863306331363237\n31633561353738333032633731633538646434336232373734343833343636396137623636353334\n61666465343736656639333932353030643334646535383161613634653366373930376238373864\n31646539643064383435313962643734656137353366616666313238366433383866623362643561\n36613165666666643037343962633830353530346664656166386437333363313531366430343765\n34373665376434653937663730633239613463363530393862323062613132613966316461366433\n35353232356137383931613835316334393734343530653264626332373465313937636639623937\n32656666326130346461376266656130333939346538313236343339623964653132356535353361\n64663732313435623339643138386433343132666339326436393330333137633038336335373266\n63643939323631343533346332313139653538356137396234353730333538666330333465393062\n35353161303330343538646230363665613732323032643630626234623437633563303962366237\n62326362333832646132643835366632383631623131396634333136623232653037383733646130\n36396563363763303935303766616166383035313130306632396532393563313064346136393039\n31333463393536303835636435366531396236373935313639366632333263366331353833396264\n37316230353162373538306565636336643932636630323534623839303566313239313262323963\n62303566316561316437366462346533653232643335373833323539333964623731663731383331\n65323062643138333239623464336535626364333064663662396439306362363435333837393432\n35663663386438623332343030653765616364643634373363306535353263326263383833376365\n66613862363733363464623337343631383966333236366665636262636439633935353662623130\n30313461333632303235393838326563616238393131393235366461636165323131616662393166\n35326538303538303665653039366537353432383961353138353632373136393533326665343664\n66363835643563383236316566336661613362393966346236343837623234316434363232393034\n64346366333434336336306665363933633661363366666530376632656232313632666434663930\n36306534343539653433303836633564316364643562343631373931396565366234366432306533\n63353731343732636133333337633161313936653263613933653165333765376363646566363536\n30306535666362393634636636343165313034346437386533323839373661363337643165303936\n30353134336439346266323462343238643338616630633937396133373336356561663235303734\n61333732353438323233613738656631633633663733396630323064396638393461666432346162\n37346432663765386463343333356164353761356530323739646534343464386563396362663565\n31303065316662616236326134303762363662333333393831346133396134626663353330346339\n66336665366433636537336138646135363539653666663763613737643466643833363461326362\n63356339333636363033376464306466366539393033323037646163343266626136376438333935\n36376336643337336362356435356261343739313565626131623833333136306265386464643234\n33313232646134656465303066386131633263393137636438303534386464313561393336343135\n31626339306333323630346663363366343664323631393830383131353231663364613837393266\n36373666646334623562623630613732666438656236383638306535366531383936333930333737\n38393731623631363963383830393733663532396165376535353439363265666561323638363737\n63373834643265613039656633643732396266386338653365383238653864396231663064396335\n38636666343361393536623766306235623630613964646163383237333430623964336330316234\n66623536656561643337386537346435376530636466383937616535326665343535303165393539\n37363934613138646239333733633966646432303865316162393536666637613036326635356363\n32646432633737353535386162646436303564336461393331666430663634393039663637616334\n38303634306161636139626535643739363537396431663961363762653838303262386530336362\n32663564643761336266326663306431303438313763356563633439323566646136393032383035\n62383538613233356334656434663061373630643834303430373332336431633663656537333935\n33623431356139353361633765333361303839366666656633343965323466623437383763656165\n63323933336638373835636330386533613631653336643863353235393839616634383535326661\n39636538346431646530643036383935373035643732393738313037303132656337353364393262\n35646136636130663239356463393330376662373530343261353733383039363463313038646665\n66326237333362363332633566653734646665373734343465323564356136353764363030663965\n37393766363739323132663939383266653132323338353461306161643164356236653837313636\n65633064373534346462613834633835363437376636663531356634303061633435316665633930\n31353865343836303737366439323133363135326562343464363563323034663538393363393831\n65303130356433613662376134336664383961633638373632356462383036643663383263343835\n36333735616432353763653965653866666334383330373031326465376661653962616135326133\n32613661373033646635656334613931633131613635396635653830353565656639303737353962\n61636663353232323833356366623133316363386538643963343136303630666139303533373265\n64323233326230366332646639303530346336346235643965643032653531643936653432343531\n39613966393637633238356633313130663534366230616332353734356264373334306236383038\n64303966303731313237643836626662343965353464353437666635386663333535303639333239\n34306339363864306632393837383530353236613561383263306432343135333962383164316332\n39376336313332326239346461343064353162643062386636633566653462613265643838306461\n33356362376163323364326635653930356664313462636366656561383039653534636665303365\n66356664633936353033356534656338376634636364653333393461386338333830353532366133\n39343931343466653266623462643865623038353434653739623430326534356138366664623332\n35663362653530316138663531346435353635363439356362353138333566623837306635393962\n62663136633765356439346361313661336436313436333731316337333239373935633638626432\n38376463633161623834613563376163366666633631306261313861623937376638663230636262\n36656663666237643961343335316165633530373261643839316161356465643135393531373136\n31343136616232366438383865313334323734303265343332633164316436376561373962643962\n33363837306265396134316363656434393566383036373466313330323633303134393864663237\n64303264386139313036663533633538633735383562633566346261343236633439313735623439\n63616338306563303932613161386464616639653236613239663438643936393439613861643039\n30386364313563633638326636303836626463616438393835393161616434383636323136343763\n65383332663966353236336262326233303661653632386131363666306365656361636539643337\n36303664343165323137393732366333393061316566633632646137343032373963353832376463\n30653266376436643332656265323336623931383931643632636234303138633839383265343165\n62343339613164383934356538656463343230326265333366353365386661303361353262613264\n66303962633836343162376533313231326463333432323930313362343365393032633866326632\n35306666633030386561623765323462663562613935383066393363356366343738373239663534\n64336233356535323661353565336239663434623361323535373865616138313061333966653036\n65636166666331386163623738383339393036636463653863643431633238326532653132336233\n32373535313366646265323462393631316465623138393931613266346231393132663664386332\n62343961653736323130663965333137613239343931313262356261646562383238323730373035\n37366262623730326433653831343636353261343162386532613238396539376535663961363365\n63633535646331613062656632663063613435306636316531633638353464346535353261633863\n35646438646361623638383230326135393635373134323939386566306331326433363566643266\n34336166623030393065336530316337646632336362626565373639616539353531653732316432\n39326438386561343135313732363562306532653932643138663430363034663737343430346232\n37666433343837346533623132653834666532313036343335393961663961653630333531343565\n33613061383132363764333934353830353433316366316634653131613264363030626136323463\n34643861653165353766623033366437636365303364346534656565623763626136363139323032\n61353132323835333232643037656332363431356564303032333763613730383464323835373436\n65666562363336653238336262636264656532313534643131376665303964353561316138333266\n63643930656463333961393963306666306139333864353065633532313535636333656131313638\n36616363633235616538656139396564323465373461306165666630623163633332376635633833\n30316133666537613031363537623035316430303838323437663136316365336434393434376632\n32626438636432353530653366396231623566656630633063306436303635656364626539336439\n65303430383563316238613233343634653061663530633934626137313866343165613635643165\n63666232666537363065633239393334633365633935616662633531643163666431363737313239\n62623464383736303138373735623830326361646332626433373062343937386262626639313161\n39646632303931613334633039316163356132616435383536323537333936373861343730363063\n35336631306465613131646630616266393332343762383262353837613031663434666265396463\n35366562356133326535653030376134656633353264643130373863393330306633653866623163\n30653536613664626164353537343064653865336166333532346463646336316237666465373738\n39313937306463666632323437613338336266356436623964656231643739303430396165663738\n32663931643739323864663861333566353730366330303739356536366238323235313966313733\n63663730376639383439316661303233313164373038656131663966343431363166346165353963\n38313338646437383732636166383937663839383734313133643466373164353233363764316165\n65343163366164303334303535393331393031633466363965376331383265623235313466366535\n36366436616237393637393838636337666539373038376562336164353033333338333261663738\n34663237646566386532313465383130303366396137623466353939373664333161626661323734\n38363835653339313134383463653662636562373837303731353135353836386535353634346336\n32303130346433643936303434656631623166373931373563316433386362376138303533386637\n62333033633763623163306435663361663666643834643536326237393230336530303632386365\n65626537376363376131653838323565326265623431376165333534353563313332666362333331\n37356233636430613631653363336662653539656563396439353330326361643931313833323965\n64633964343361363333313938396566653937313763303064623132336537633832663330343263\n38663731336661343261313736383939353565373236616336306366396232316663613262353938\n31366334623665333836316430383032363965386661636430373766633235313137353138346666\n30643338356439356566313930393366383533636539663963333038316161383831306437393062\n38646261303666333264393734313731646637643362653939383863376139346635653133636335\n35346638316530646337636134373037313163633266626634653132353163633635386430613465\n35326233376535363965376138346430346461613339653233306366343536343339393463636234\n37393566396331316238303564636666353365326130333939303162306562303762343738626534\n65393630666464303338623436343631616136323735336237653164663930386137353239613833\n33373534363962636164396461633663626533353635616339383235666331316630373766666135\n65653932366138653339616636666631396264353630363137333336616535333563653064326630\n34376636343864636633633562626162656331656564353233343765343663393763616432663936\n63636634383736656263663334633565333331373930626465313132636237333662666231653966\n37323761313035306236363139363735343935303761326239386330616263313161383963653331\n30656563623233636263666630353236646336633532656435373236623962373961616637373766\n64346463346438333963343561363461373034643336633838616564333865366665613566656432\n34616661393062393335663865646639333532633661633366373336303931326234303338376434\n35633530326338336335363536373737383238666236376237353063616232383037653332646131\n38663365653834376337643832613937383237646563306135643063613530666261366532353865\n34636635623132643433616339636662393963383066653432373730316364396366636532323033\n30663465386535306239663932626166346632316664336237623335363933376365363231613831\n31386638666166643465376336616135313465643766646533363961303565613134323636316238\n31616130326632323835326434643636663834653530313762626266653232333662366337356462\n63313339366634376565636137333664353064356662633937376434336330356261386563613639\n30373230636365653630613135356334373966333634396565356237613731346439376630633963\n38343537313434353934303465356362383937656332333334666133356262663066623237353136\n66613530626636363933613464303132376134313861366234623765653836653438376333333564\n62373362336533343838646530353034393937303964326434663662373838366139306233653834\n33653031303338343037383264306237663134663061303931373639366539666461393330346635\n66333134306664356238663862643134646463663731663666383731306438326430393236396239\n31306362666434626562316431623763323735366462306562326539333066643938366431396361\n65616334613766616238316330333262353033346335356163353635353839336530333962306438\n62383466343862653335336332383434653566633362656238343234343535386261346564626233\n62643538363732616461366136653236663063616131656334653933373139656436393261636337\n63363035366361393735656336336237303466393435323134346133333132353637666362666663\n35333066363539393938613236353032343266336661643535613462643331313838666339393063\n62336562623631313363343134663738313461666561616565653430343335636165663131366239\n33323061313161656466323561323761303063663835643331326237366238363062633036336664\n64353563636235353931663165363538616461386531313634666230316336356139316630616535\n36636563323236613135653033396334323138316439383833303938663336653230393564633536\n38383965616665393138636432373864666130326530323338333264646235343661653463376133\n32656330653838323532636365666666316266323537306131653434643931323237333738626132\n34646630663831396366356138633433653437343130306231343032663738356165623964343265\n33613737653139306235306633363063383139623764333066323265326530643738303636656565\n62386235303230373531326130306166663366366466383163396533333463396138656436303230\n30326533383835666236646336313236653935346233303733656264343766356666646234633134\n30346138393632653233336539323965313338613134616333623432613032323632313764366536\n63636462613730306131353265393131643365636663363030393163356438653035666531396430\n31316564616137656437623333623066333433643533616564376333326233336561386461386432\n36663835326564303564323863623666373939393737306430646238353031316364306561383831\n35616461366563373030326332366166343865643462396261393636643437646634643930633238\n65663335316664663233613537643561386563316166656438653264613732626130333462393737\n61636434333731313962386237393433343833353930333338663533353534356434623866646565\n62323537633062346235326238316535376535386433306539383831626238326164366466376430\n63343662376333373939356434373930306463386534386233656235333565323536366331386264\n38666264663665666535373462623735633966663839306633316630393130316261333838636539\n39396539366636376364333762623234313532653866313835323136376264306537653862303830\n30663463393639613739373339306234643265396636376464366463623637366330343763313336\n37633336366434376230623337643731316165623232316561356633323934613035643765633865\n37633665363166616130656230343162343963303130313339343364316139363965363632633338\n33643731353932316165656330616262323064663735323861376532626537303066633839623965\n33323937653539616164336635373234613833383838633136643835343733313737646236393235\n30333734306164393834633134373334323931643033653636343939376561303330303733633034\n38353763393637373031613739323064643633303462663435383536343565343532353536306638\n66636336633738623837356639363634343831393362316339343238616462643132376431653965\n32386161303861626231383261333663393466396138323238616362363935353164346335366531\n39326361613438313037333165363165393930663665623132346166663261343932316664646465\n32623338633438623134316135656264653835316265343634643337393239303566643633386230\n33383030373562363563316532323761333865626166323934343639366162663334613039363935\n65313031656130356263343461616536626364373361303330623631303563356432663831316336\n61626634653032613430333165346632333366646133643161613863393038663934373865663565\n66623530353165383532613531646265616336333436323238383930633930383362643165636337\n62373530303763633336626535666162373864653538646637616132666536343739336533373766\n30643139323166363265623134373232623830326431393962383764656331353737323939346339\n62356263623561633137373735353264393330376333336464353862343331346437313165306165\n33396634343432343161616463323961613738653834366463393664316463623036386533316166\n32343861343932346630366234396263313263373262376661393037373765383937643136623565\n33356165306166303164316162326565353836663366356238666539633938383537396362373936\n34326331396338303461386566356531653039376665376339326434333830353436323430666436\n63613333336333316639306465383732656338626634653939636633616364323937653833373435\n63363061386430396263383066343265633465373762393636373936353764316538643162663530\n37306135646333396531643038646162623137633463646138613335373162393633663031363137\n34356166396566633036316430313436646230363061643631613130373462663935656631356538\n38333266386363353437353763336365303332386131663530373637616133393465376630343165\n30346163383664613233366532383566306132376532383135626664353536313434306437636337\n64393634616237306435396139343761326331373462666166313536643261343236306162306164\n35316435396436626561353031393062376535663330633035346336376136363432373862316666\n36333138353065373263353561336166363933646532373561313334393939323338393061326165\n35326534626566626138626133303738626437646630303733653830643461633734393564623562\n39373763356165633463643138373939376363316232333361643533333662383362336233346566\n30316131626366633163326263363061616466356362306366626631643438383462646334373065\n33383830633235353334643334393435623138363466646162386336356261363761623366626330\n63393961396230326130623462343365393363356565643532623831383638363739386437383464\n37326339333133383534643766666166666462663435333636656333396435626534316536333465\n64386363393164643166346462333332393463373438663434623166633532626338616564313061\n35346565663633353565363033393838393934363234656436346536343736346430303436373735\n62616133373933663637343533663130626632643937626264333337333637333430366637663765\n39376238353634336464336264613662323234616237373462343964336561313938343661613531\n61616435613363646534626430333535313838336364636435663635396366373266303562396136\n34353436313833333033306561383466616330633566323031616334356262656263633539376262\n62303861343432383864636564663136623133383539663331356138366639653161306462336238\n30343765646365646365303761636236323964343532353035396139643465613963613838633637\n39656465626537313430653931386166613436663262366266356665643336633335383538313462\n38346161373731343064646231636563666536373063636136373931653634363131653266626433\n65316635653462323763353539316263653862653038643530323662313338363064343737363964\n34666565353236376263316465353061653232623735623239653261373339643661376431643737\n30363932656535323531363437616233636332656633356135313862633638653261626436376236\n63666664353630343136656531303036386630353033356361306361333335363434613930363434\n61393235613562626566656538316533313664303832383831343466346432656262663464303739\n62653639636232373232376638613935313137373964313165376264666534396265363363326434\n64303434383037343432353337666335383962303866376534633438326661323166623333616232\n37626434666133363038376165313131663535306532346461346261303539343063393161393239\n32613838356239383165393262363433343430636161623865623533313333633839\n" }
UTF-8
ABNF
26,663
siweisun
a249450fb716964ffbe7441f59dcfaad96c0d096
d7b1fbdb7543f22d13add18e6e09df2d53b3122a
/abnf/scadl.abnf
0d34077abaed389c1e322384d1dc9c3760fc0e47
siweisun/SCADL
{ "content": "program = 1*(comment/def/evaluate)\ncomment = \"//\" *VCHAR \"\\n\"\ndef = %s\"let\" SVID \"=\" sv-expr) \";\" / %s\"let\" CVID \"=\" cv-expr \";\" / %s\"$input\" \"(\" vid \")\" \";\" / %s\"let\" fid \"(\" fargs \")=\" block-st\nevaluate = %s\"eval\" output-st \";\"\nv-expr = sv-expr / cv-expr\nsv-expr = const-v / \"(\" sv-expr \")\" / SVID / SFID \"(\" rargs \")\" / sitem / (sv-uops sv-expr) / (sv-expr sv-bops sv-expr)\nsv-bops = \"*^\" / \"*\" / \"/\" / \"%\" / \"+\" / \"-\" / \"==\" / \"!=\" / \"<\"/\"<=\"/\">\"/\">=\" / \"&\" / \"|\" / \"^\" / \"&&\" / \"||\" sv-uops = \"~\" / \"!\"\ncv-expr = CVID / bitems / CFID \"(\" rargs \")\" / cv-init / \"(\" cv-expr \")\" / (cv-uops cv-expr) / (cv-expr cv-bops cv-expr)\ncv-bops = \"*@^\"/\"*@\"/\"+\"/\"-\"/\"*\"/\"/\"/\"%\" /\"&\"/\"|\"/\"^\"/\"@>\"/\"@<\"/\"@-\"/\"@|\"\ncv-uops = \"@-|\" / \"@~\"\nbitems = CVID \"[\" br 2(\",\" br) \"]\"\nlitems = CVID \"[\" 2(lr \",\") br \"]\"\nsitem = CVID \"[\" 2(sv-expr \",\") br \"]\"\ncvinit = \"C\" \"[\" 2(sv-expr \",\") br \"]\" \".\" \"[\" 1*(sv-expr/litems) \"]\"\nbr = sv-expr \":\" sv-expr\nlr = sv-expr \"..\" sv-expr\nfargs = [vid *(\",\" vid)]\nrargs = [v-expr *(\",\" v-expr)]\nblock-st = %s\"begin\" 1*(stmt) %s\"end\"\nstmt = def / output-st / if-st / loop-st / v-expr / block-st /\";\"\noutput-st = %s\"$output\" \"(\" vid \");\"\nif-st = %s\"if\" sv-expr block-st *(%s\"else\" block-st)\nloop-st = %s(\"loopup\"/\"loopdown\") block-st\nconst-v = (\"0x\" 1*(HEXDIG)) / %x30 / (%x31-39 *%x30-39)\nvid = SVID / CVID\nfid = SFID / CFID\nSVID = %s\"v\" (ALPHA/\"_\") *(ALPHA/DIGIT/\"_\")\nCVID = %s\"V\" (ALPHA/\"_\") *(ALPHA/DIGIT/\"_\")\nSFID = %s\"f\" (ALPHA/\"_\") *(ALPHA/DIGIT/\"_\")\nCFID = %s\"F\" (ALPHA/\"_\") *(ALPHA/DIGIT/\"_\")\nHEXDIG = DIGIT / %x41-46 / %x61-66\nALPHA = %x41-5A / %x61-7A\nDIGIT = %x30-39\nVCHAR = %x20-7E / %x09\n" }
UTF-8
ABNF
1,742
robinscholz
7265ee0b3aea959b0f67a887656c8456d9407557
0a7bfe409423c455e168129efa79161b822e21f3
/vendor/phpstan/phpdoc-parser/doc/grammars/type.abnf
dd38d05194fdef48ea61e2601e655254f97f515c
robinscholz/better-rest
{ "content": "; ---------------------------------------------------------------------------- ;\r\n; Type ;\r\n; ---------------------------------------------------------------------------- ;\r\n\r\nType\r\n\t= Atomic [Union / Intersection]\r\n\t/ Nullable\r\n\r\nUnion\r\n\t= 1*(TokenUnion Atomic)\r\n\r\nIntersection\r\n\t= 1*(TokenIntersection Atomic)\r\n\r\nNullable\r\n\t= TokenNullable TokenIdentifier [Generic]\r\n\r\nAtomic\r\n\t= TokenIdentifier [Generic / Callable / Array]\r\n\t/ TokenThisVariable\r\n\t/ TokenParenthesesOpen Type TokenParenthesesClose [Array]\r\n\r\nGeneric\r\n\t= TokenAngleBracketOpen Type *(TokenComma Type) TokenAngleBracketClose\r\n\r\nCallable\r\n\t= TokenParenthesesOpen [CallableParameters] TokenParenthesesClose TokenColon CallableReturnType\r\n\r\nCallableParameters\r\n\t= CallableParameter *(TokenComma CallableParameter)\r\n\r\nCallableParameter\r\n\t= Type [CallableParameterIsReference] [CallableParameterIsVariadic] [CallableParameterName] [CallableParameterIsOptional]\r\n\r\nCallableParameterIsReference\r\n\t= TokenIntersection\r\n\r\nCallableParameterIsVariadic\r\n\t= TokenVariadic\r\n\r\nCallableParameterName\r\n\t= TokenVariable\r\n\r\nCallableParameterIsOptional\r\n\t= TokenEqualSign\r\n\r\nCallableReturnType\r\n\t= TokenIdentifier [Generic]\r\n\t/ Nullable\r\n\t/ TokenParenthesesOpen Type TokenParenthesesClose\r\n\r\nArray\r\n\t= 1*(TokenSquareBracketOpen TokenSquareBracketClose)\r\n\r\nArrayShape\r\n = TokenCurlyBracketOpen ArrayShapeItem *(TokenComma ArrayShapeItem) TokenCurlyBracketClose\r\n\r\nArrayShapeItem\r\n = (ConstantString / ConstantInt / TokenIdentifier) TokenNullable TokenColon Type\r\n / Type\r\n\r\n; ---------------------------------------------------------------------------- ;\r\n; ConstantExpr ;\r\n; ---------------------------------------------------------------------------- ;\r\n\r\nConstantExpr\r\n\t= ConstantFloat *ByteHorizontalWs\r\n\t/ ConstantInt *ByteHorizontalWs\r\n\t/ ConstantTrue *ByteHorizontalWs\r\n\t/ ConstantFalse *ByteHorizontalWs\r\n\t/ ConstantNull *ByteHorizontalWs\r\n\t/ ConstantString *ByteHorizontalWs\r\n\t/ ConstantArray *ByteHorizontalWs\r\n\t/ ConstantFetch *ByteHorizontalWs\r\n\r\nConstantFloat\r\n\t= [\"-\"] 1*ByteDecDigit \".\" *ByteDecDigit [ConstantFloatExp]\r\n\t/ [\"-\"] 1*ByteDecDigit ConstantFloatExp\r\n\t/ [\"-\"] \".\" 1*ByteDecDigit [ConstantFloatExp]\r\n\r\nConstantFloatExp\r\n\t= \"e\" [\"-\"] 1*ByteDecDigit\r\n\r\nConstantInt\r\n\t= [\"-\"] \"0b\" 1*ByteBinDigit\r\n\t/ [\"-\"] \"0o\" 1*ByteOctDigit\r\n\t/ [\"-\"] \"0x\" 1*ByteHexDigit\r\n\t/ [\"-\"] 1*ByteDecDigit\r\n\r\nConstantTrue\r\n\t= \"true\"\r\n\r\nConstantFalse\r\n\t= \"false\"\r\n\r\nConstantNull\r\n\t= \"null\"\r\n\r\nConstantString\r\n\t= ByteSingleQuote *(ByteBackslash ByteNotEol / ByteNotEolAndNotBackslashAndNotSingleQuote) ByteSingleQuote\r\n\t/ ByteDoubleQuote *(ByteBackslash ByteNotEol / ByteNotEolAndNotBackslashAndNotDoubleQuote) ByteDoubleQuote\r\n\r\nConstantArray\r\n\t= TokenSquareBracketOpen [ConstantArrayItems] TokenSquareBracketClose\r\n\t/ \"array\" TokenParenthesesOpen [ConstantArrayItems] TokenParenthesesClose\r\n\r\nConstantArrayItems\r\n\t= ConstantArrayItem *(TokenComma ConstantArrayItem) [TokenComma]\r\n\r\nConstantArrayItem\r\n\t= ConstantExpr [TokenDoubleArrow ConstantExpr]\r\n\r\nConstantFetch\r\n\t= TokenIdentifier [TokenDoubleColon ByteIdentifierFirst *ByteIdentifierSecond *ByteHorizontalWs]\r\n\r\n\r\n; ---------------------------------------------------------------------------- ;\r\n; Tokens ;\r\n; ---------------------------------------------------------------------------- ;\r\n\r\nTokenUnion\r\n\t= \"|\" *ByteHorizontalWs\r\n\r\nTokenIntersection\r\n\t= \"&\" *ByteHorizontalWs\r\n\r\nTokenNullable\r\n\t= \"?\" *ByteHorizontalWs\r\n\r\nTokenParenthesesOpen\r\n\t= \"(\" *ByteHorizontalWs\r\n\r\nTokenParenthesesClose\r\n\t= \")\" *ByteHorizontalWs\r\n\r\nTokenAngleBracketOpen\r\n\t= \"<\" *ByteHorizontalWs\r\n\r\nTokenAngleBracketClose\r\n\t= \">\" *ByteHorizontalWs\r\n\r\nTokenSquareBracketOpen\r\n\t= \"[\" *ByteHorizontalWs\r\n\r\nTokenSquareBracketClose\r\n\t= \"]\" *ByteHorizontalWs\r\n\r\nTokenCurlyBracketOpen\r\n = \"{\" *ByteHorizontalWs\r\n\r\nTokenCurlyBracketClose\r\n = \"}\" *ByteHorizontalWs\r\n\r\nTokenComma\r\n\t= \",\" *ByteHorizontalWs\r\n\r\nTokenColon\r\n\t= \":\" *ByteHorizontalWs\r\n\r\nTokenVariadic\r\n\t= \"...\" *ByteHorizontalWs\r\n\r\nTokenEqualSign\r\n\t= \"=\" *ByteHorizontalWs\r\n\r\nTokenVariable\r\n\t= \"$\" ByteIdentifierFirst *ByteIdentifierSecond *ByteHorizontalWs\r\n\r\nTokenDoubleArrow\r\n\t= \"=>\" *ByteHorizontalWs\r\n\r\nTokenDoubleColon\r\n\t= \"::\" *ByteHorizontalWs\r\n\r\nTokenThisVariable\r\n\t= %x24.74.68.69.73 *ByteHorizontalWs\r\n\r\nTokenIdentifier\r\n\t= [ByteBackslash] ByteIdentifierFirst *ByteIdentifierSecond *(ByteBackslash ByteIdentifierFirst *ByteIdentifierSecond) *ByteHorizontalWs\r\n\r\n\r\n; ---------------------------------------------------------------------------- ;\r\n; Bytes ;\r\n; ---------------------------------------------------------------------------- ;\r\n\r\nByteHorizontalWs\r\n\t= %x09 ; horizontal tab\r\n\t/ %x20 ; space\r\n\r\nByteBinDigit\r\n\t= %x30-31 ; 0-1\r\n\r\nByteOctDigit\r\n\t= %x30-37 ; 0-7\r\n\r\nByteDecDigit\r\n\t= %x30-39 ; 0-9\r\n\r\nByteHexDigit\r\n\t= %x30-39 ; 0-9\r\n\t/ %x41-46 ; A-F\r\n\t/ %x61-66 ; a-f\r\n\r\nByteIdentifierFirst\r\n\t= %x41-5A ; A-Z\r\n\t/ %x5F ; _\r\n\t/ %x61-7A ; a-z\r\n\t/ %x80-FF\r\n\r\nByteIdentifierSecond\r\n\t= %x30-39 ; 0-9\r\n\t/ %x41-5A ; A-Z\r\n\t/ %x5F ; _\r\n\t/ %x61-7A ; a-z\r\n\t/ %x80-FF\r\n\r\nByteSingleQuote\r\n\t= %x27 ; '\r\n\r\nByteDoubleQuote\r\n\t= %x22 ; \"\r\n\r\nByteBackslash\r\n\t= %x5C ; \\\r\n\r\nByteNotEol\r\n\t= %x00-09 ; skip LF\r\n\t/ %x0B-0C ; skip CR\r\n\t/ %x0E-FF\r\n\r\nByteNotEolAndNotBackslashAndNotSingleQuote\r\n\t= %x00-09 ; skip LF\r\n\t/ %x0B-0C ; skip CR\r\n\t/ %x0E-26 ; skip single quote\r\n\t/ %x28-5B ; skip backslash\r\n\t/ %x5D-FF\r\n\r\nByteNotEolAndNotBackslashAndNotDoubleQuote\r\n\t= %x00-09 ; skip LF\r\n\t/ %x0B-0C ; skip CR\r\n\t/ %x0E-21 ; skip double quote\r\n\t/ %x23-5B ; skip backslash\r\n\t/ %x5D-FF\r\n" }
UTF-8
ABNF
5,797
lioaphy
d520fb52d38b70c4aedc128d4247ead256cbae70
cb09dc2c25af42bdedfbefc665e2319612227560
/grammars/mail_subset.abnf
28230e0e979ee9aad30b862d9473a1d02d50e333
lioaphy/ABNF_to_PEG_translator
{ "content": "; ABNF for rfc5322 \n; Dirk Brand\n\nmailbox \t= name-addr / addr-spec\n\nname-addr \t= [display-name] angle-addr\n\nangle-addr \t= [CFWS] \"<\" addr-spec \">\" [CFWS]\n\naddr-spec\t= local-part \"@\" domain\n\nlocal-part\t= dot-atom / quoted-string\n\ndomain\t\t= dot-atom / domain-literal\n\ndomain-literal\t= [CFWS] \"[\" *([FWS] dtext) [FWS] \"]\" [CFWS]\n\ndtext = %d33-90 / ; Printable US-ASCII\n %d94-126 ; characters not including\n ; \"[\", \"]\", \n\t\t\t\t\t; or \"\\\"\n" }
UTF-8
ABNF
517
vipinsingh211
cd8a715b4c00b87376bad0ec5160e0b69c4fc76d
6d52688cc9fd01a90c4e59cf928f43aac2163d26
/src/rfc2806.abnf
696b791fd44e1a4a7caa54bfee7e85011f5d8e27
vipinsingh211/pran
{ "content": ";;;===================================================================\n;;; ABNF for RFC 2806, \"URLs for Telephone Calls\"\n;;; See http://tools.ietf.org/html/rfc2806\n;;;===================================================================\n\ntelephone-url = telephone-scheme \":\"\n telephone-subscriber\n\ntelephone-scheme = \"tel\"\n\ntelephone-subscriber = global-phone-number / local-phone-number\n\nglobal-phone-number = \"+\" base-phone-number [isdn-subaddress]\n [post-dial] *(area-specifier /\n service-provider / future-extension)\n\nbase-phone-number = 1*phonedigit\n\nlocal-phone-number = 1*(phonedigit / dtmf-digit /\n pause-character) [isdn-subaddress]\n [post-dial] area-specifier\n *(area-specifier / service-provider /\n future-extension)\n\nisdn-subaddress = \";isub=\" 1*phonedigit\n\npost-dial = \";postd=\" 1*(phonedigit /\n dtmf-digit / pause-character)\n\narea-specifier = \";\" phone-context-tag \"=\" phone-context-ident\n\nphone-context-tag = \"phone-context\"\n\nphone-context-ident = network-prefix / private-prefix\n\nnetwork-prefix = global-network-prefix / local-network-prefix\n\nglobal-network-prefix = \"+\" 1*phonedigit\n\nlocal-network-prefix = 1*(phonedigit / dtmf-digit / pause-character)\n\nprivate-prefix = (%x21-22 / %x24-27 / %x2C / %x2F / %x3A /\n %x3C-40 / %x45-4F / %x51-56 / %x58-60 /\n %x65-6F / %x71-76 / %x78-7E)\n *(%x21-3A / %x3C-7E)\n ; Characters in URLs must follow escaping rules\n ; as explained in [RFC2396]\n ; See sections 1.2 and 2.5.2\n\nservice-provider = \";\" provider-tag \"=\" provider-hostname\n\nprovider-tag = \"tsp\"\n\nprovider-hostname = domain ; <domain> is defined in [RFC1035]\n ; See section 2.5.10\n\nfuture-extension = \";\" 1*(token-char) [\"=\" ((1*(token-char)\n [\"?\" 1*(token-char)]) / quoted-string )]\n ; See section 2.5.11 and [RFC2543]\n\ntoken-char = (%x21 / %x23-27 / %x2A-2B / %x2D-2E / %x30-39\n / %x41-5A / %x5E-7A / %x7C / %x7E)\n ; Characters in URLs must follow escaping rules\n ; as explained in [RFC2396]\n ; See sections 1.2 and 2.5.11\n\nquoted-string = %x22 *( \"\\\" CHAR / (%x20-21 / %x23-7E\n / %x80-FF )) %x22\n ; Characters in URLs must follow escaping rules\n ; as explained in [RFC2396]\n ; See sections 1.2 and 2.5.11\n\nphonedigit = DIGIT / visual-separator\n\nvisual-separator = \"-\" / \".\" / \"(\" / \")\"\n\npause-character = one-second-pause / wait-for-dial-tone\n\none-second-pause = \"p\"\n\nwait-for-dial-tone = \"w\"\n\ndtmf-digit = \"*\" / \"#\" / \"A\" / \"B\" / \"C\" / \"D\"\n\n\n\nfax-url = fax-scheme \":\" fax-subscriber\n\nfax-scheme = \"fax\"\n\nfax-subscriber = fax-global-phone / fax-local-phone\n\nfax-global-phone = \"+\" base-phone-number [isdn-subaddress]\n [t33-subaddress] [post-dial]\n *(area-specifier / service-provider /\n future-extension)\n\nfax-local-phone = 1*(phonedigit / dtmf-digit /\n pause-character) [isdn-subaddress]\n [t33-subaddress] [post-dial]\n area-specifier\n *(area-specifier / service-provider /\n future-extension)\n\nt33-subaddress = \";tsub=\" 1*phonedigit\n\nmodem-url = modem-scheme \":\" remote-host\n\nmodem-scheme = \"modem\"\n\nremote-host = telephone-subscriber *(modem-params\n / recommended-params)\n\nmodem-params = \";type=\" data-capabilities\n\nrecommended-params = \";rec=\" data-capabilities\n\ndata-capabilities = accepted-modem [\"?\" data-bits parity\n stop-bits]\n\naccepted-modem = \"V21\" / \"V22\" / \"V22b\" /\n \"V23\" / \"V26t\" / \"V32\" /\n \"V32b\" / \"V34\" / \"V90\" /\n \"V110\" / \"V120\" / \"B103\" /\n \"B212\" / \"X75\" /\n \"vnd.\" vendor-name \".\" modem-type\n\ndata-bits = \"7\" / \"8\"\n\nparity = \"n\" / \"e\" / \"o\" / \"m\" / \"s\"\n\nstop-bits = \"1\" / \"2\"\n\nvendor-name = 1*(ALPHA / DIGIT / \"-\" / \"+\")\n\nmodem-type = 1*(ALPHA / DIGIT / \"-\" / \"+\")\n" }
UTF-8
ABNF
4,609
rodrigopedra
d92c6b9a6ee3ebea13556053696620fef372e896
83ae3a41547593a3ce44655531fa371023a0b3e4
/test.abnf
6c75d27880ffab08185c6f33ece232e4c7e22d50
rodrigopedra/abnf
{ "content": "; Test ABNF file\nname = 1*ALPHA\ndec = 1*DIGIT\nhex = 1*HEXDIG\n\ndec-octet = DIGIT / 2*DIGIT / \"1\" 2DIGIT\n\nh1 = WSP\nh2 = [ \"a\" ]\nh3 = 2(\"a\")\n\n; From PWG 5101.1\nmedia-size-self-describing-name =\n media-size-name / \"choice\" 2*( \"_\" media-size-name )\nmedia-size-name = class-in \"_\" base-name \"_\" short-dim \"x\" long-dim \"in\" /\n class-mm \"_\" base-name \"_\" short-dim \"x\" long-dim \"mm\" /\n \"disc_\" base-name \"_\" inner-dim \"x\" outer-dim \"mm\"\nclass-in = \"custom\" / \"na\" / \"asme\" / \"roc\" / \"oe\" / \"roll\"\nclass-mm = \"custom\" / \"iso\" / \"jis\" / \"jpn\" / \"prc\" / \"om\" / \"roll\"\nshort-dim = dim\nlong-dim = dim / \"0\"\ninner-dim = dim\nouter-dim = dim\ndim = integer-part [fraction-part] / \"0\" fraction-part\ninteger-part = non-zero-digit *DIGIT\nfraction-part = \".\" *DIGIT non-zero-digit\n\nclass-name = ( ALPHA / DIGIT ) *( ALPHA / DIGIT / \".\" )\n\nbase-name = ( ALPHA / DIGIT ) *( ALPHA / DIGIT / \"-\" / \".\" )\n\ndns-name = \".\" 1*( ALPHA / DIGIT / \"-\" )\n\nkeyword = ALPHA 1*( ALPHA / DIGIT / \"-\" / \"_\" / \".\")\n\nnon-zero-digit = %x31-39\n" }
UTF-8
ABNF
1,114
mojo-lang
ebbc53cdd89ea924650943ca847d00a3449f26d1
c6936c9ea44289c67d9abf0ce45072a03248455c
/abnf/mojo-template.abnf
afa7abaf7e6399e171d1cf5a786268e53c2563b0
mojo-lang/mojo
{ "content": ";; GRAMMAR OF AN TEMPLATE\ntemplate = 1*(text / multi-block / block / value / comment)\n\nblock = block-begin template block-end\nblock-begin = \"{%\" block-statements \"%}\"\nblock-end = \"{%\" [\"end\" / (\"end\" end-tag)] \"%}\"\n\nend-tag =\n\nblock-statement =\nblock-statements = ((block-block-statement / for-block-statement) statements) / statements\n\nblock-block-statement = ((\"define\" \"block\") / \"block\" / \"include\") block-name\nfor-block-statement = \"for\" pattern \"in\" expression\nraw-block-statement = \"raw\"\n\nmulti-block = if-block\n\nif-block = \"{%\" \"if\" expression \"%}\" template *(if-block-else-if-part) [if-block-else-part] block-end\nif-block-else-if-part = \"{%\" \"else\" \"if\" expression \"%}\" template\nif-block-else-part = \"{%\" \"else\" \"%}\" template\n\ntext = 1*char\n\ncomment = comment-begin *(comment / char) comment-end\ncomment-begin = \"{#\"\ncomment-end = \"#}\"\n\nvalue = value-begin expression value-end\nvalue-begin = \"{{\"\nvalue-end = \"}}\"\n\n;%% if test line-end\n;%%\n;%% raw\n;%%\n;;{{foo | default('345')}}\n" }
UTF-8
ABNF
988
stand-art
82b867b3482f23603385ec3f2058837e45fb04ad
a537c4d15f4d886e7dd8c195f364b772f402f5cc
/jaxn.abnf
dbef4bda1566e71c898e7e14410be5db7f38f241
stand-art/jaxn
{ "content": "; The JAXN grammar (https://github.com/stand-art/jaxn/)\n\n; Based on the JSON grammar, see RFC 8259.\n; See RFC 5234 for interpretation and core rules.\n\ncomment = c-line / c-block\n\nc-line = c-begin-line *( c-char )\n\nc-begin-line = %x23 / %x2F.2F ; # or //\n\nc-char = %x09 / %x20-7E / %x80-10FFFF\n ; Any HTAB or printable character\n\nc-block = c-begin-block\n *( c-no-star / ( 1*c-star c-no-star-or-slash ) )\n c-end-block\n\nc-begin-block = c-slash c-star\nc-end-block = 1*c-star c-slash\n\nc-slash = %x2F ; /\nc-star = %x2A ; *\n\nc-no-star = %x09 / %x0A / %x0D /\n %x20-29 / %x2B-7E / %x80-10FFFF\n\nc-no-star-or-slash = %x09 / %x0A / %x0D /\n %x20-29 / %x2B-2E / %x30-7E / %x80-10FFFF\n\nws = *( %x20 / ; Space\n %x09 / ; Horizontal tab\n %x0A / ; Line feed or New line\n %x0D / ; Carriage return\n comment ) ; Comment\n\nbegin-array = ws %x5B ws ; [ left square bracket\nbegin-object = ws %x7B ws ; { left curly bracket\nend-array = ws %x5D ws ; ] right square bracket\nend-object = ws %x7D ws ; } right curly bracket\nname-separator = ws %x3A ws ; : colon\nvalue-separator = ws %x2C ws ; , comma\nvalue-concat = ws %x2B ws ; + plus\n\nvalue-sep-opt = [ value-separator ]\n\nnull = %x6E.75.6C.6C ; null\ntrue = %x74.72.75.65 ; true\nfalse = %x66.61.6C.73.65 ; false\n\nnumber = [ plus / minus ] ( nan / inf / hex / dec )\n\nnan = %x4E.61.4E ; NaN\n\ninf = %x49.6E.66.69.6E.69.74.79\n ; Infinity\n\nhex = zero x 1*HEXDIG ; 0xXXX...\n\ndec = ( int [ frac0 ] / frac1 ) [ exp ]\n\ndecimal-point = %x2E ; .\n\ndigit1-9 = %x31-39 ; 1-9\n\ne = %x65 / %x45 ; e E\nx = %x78 / %x58 ; x X\n\nexp = e [ plus / minus ] 1*DIGIT\n\nfrac0 = decimal-point *DIGIT\nfrac1 = decimal-point 1*DIGIT\n\nint = zero / ( digit1-9 *DIGIT )\n\nplus = %x2B ; +\nminus = %x2D ; -\nzero = %x30 ; 0\n\nstring = string-part *( value-concat string-part )\n\nstring-part = m-d-string / m-s-string / d-string / s-string\n\nm-d-string = 3d-quote *( m-d-char ) 3d-quote\nm-s-string = 3s-quote *( m-s-char ) 3s-quote\n\nm-d-char = *2d-quote ( %x09 / %x0A / %x0D / %x20-21 / %x23-7E / %x80-10FFFF )\nm-s-char = *2s-quote ( %x09 / %x0A / %x0D / %x20-26 / %x28-7E / %x80-10FFFF )\n\nd-string = d-quote *( s-char / s-quote ) d-quote\ns-string = s-quote *( s-char / d-quote ) s-quote\n\ns-char = unescaped /\n escape (\n %x22 / ; \" double quote U+0022\n %x27 / ; ' single quote U+0027\n %x5C / ; \\ reverse solidus U+005C\n %x2F / ; / solidus U+002F\n %x30 / ; 0 nul U+0000\n %x62 / ; b backspace U+0008\n %x66 / ; f form feed U+000C\n %x6E / ; n line feed U+000A\n %x72 / ; r carriage return U+000D\n %x74 / ; t tab U+0009\n %x76 / ; v vtab U+000B\n %x75 4HEXDIG / ; uXXXX U+XXXX\n %x75 %x7B 1*HEXDIG %x7D )\n ; u{X...} U+X...\n\nescape = %x5C ; \\\nd-quote = %x22 ; \"\ns-quote = %x27 ; '\n\nunescaped = %x20-21 / %x23-26 / %x28-5B / %x5D-7E / %x80-10FFFF\n\nbinary = b-value *( value-concat b-value )\n\nb-value = dollar [ b-string / b-direct ]\n\nb-string = b-s-string / b-d-string\n\nb-d-string = d-quote *( b-char / s-quote ) d-quote\nb-s-string = s-quote *( b-char / d-quote ) s-quote\n\nb-char = b-unescaped /\n escape (\n %x22 / ; \" double quote 0x22\n %x27 / ; ' single quote 0x27\n %x5C / ; \\ reverse solidus 0x5C\n %x2F / ; / solidus 0x2F\n %x30 / ; 0 nul 0x00\n %x62 / ; b backspace 0x08\n %x66 / ; f form feed 0x0C\n %x6E / ; n line feed 0x0A\n %x72 / ; r carriage return 0x0D\n %x74 / ; t tab 0x09\n %x76 / ; v vtab 0x0B\n %x78 2HEXDIG ) ; xXX 0xXX\n\nb-unescaped = %x20-21 / %x23-26 / %x28-5B / %x5D-7E\n\nb-direct = b-part *( dot b-part )\n\nb-part = 1*b-byte\n\nb-byte = 2HEXDIG\n\ndollar = %x24 ; $\ndot = %x2E ; .\n\narray = begin-array\n [ value *( value-separator value ) value-sep-opt ]\n end-array\n\nobject = begin-object\n [ member *( value-separator member ) value-sep-opt ]\n end-object\n\nmember = key name-separator value\n\nkey = string / identifier\n\nidentifier = i-begin *i-continue\n\ni-begin = ALPHA / %x5F\ni-continue = i-begin / DIGIT\n\nvalue = false / null / true / object / array / number / string / binary\n\nJAXN-text = ws value ws\n" }
UTF-8
ABNF
5,210
codemucker
94621f78d224d5e739f5c6ab05f20d809f49564b
5d459f0fcf1dbe40985418eac413fefb2292a48f
/jmatch-core/src/grammars/matchers.abnf
25ea26d1722aae2547cb086e6ba266f26da4adf0
codemucker/codemucker-jmatch
{ "content": "# example: type[name=*.Builder && public && !abstract && method=method[] ]\n\nmatchers = LWSP matcher *(LWSP (AND/OR) LWSP matcher) LWSP ;\nmatcher = mtype LWSP \"[\" LWSP mexpr LWSP \"]\" ; \nmtype = 1*ALPHA ; # matcher type e.g. 'method' \nmexpr = filter ; # matcher expression\nfilter = (group/afilters) *( LWSP (AND/OR) LWSP [NOT] gopen LWSP filter LWSP gclose );\ngroup = [NOT] LWSP gopen LWSP afilters LWSP gclose ;\nafilters = afilter LWSP *( LWSP (AND/OR) LWSP afilter) ; # number of attribute filterS e.g 'x=y && !z && y=5'\nafilter = (attname LWSP (EQ/NOT_EQ/LESS/GREATER/LESS_EQ/GREATER_EQ) LWSP attvalexpr) / (LWSP [NOT] LWSP attname); # attribute filter. e.g 'x=y' or '!x' or 'x<=3'\nattname = ALPHA *ALPHANUM ;\nattvalexpr = attval LWSP *(LWSP PLUS LWSP attval) ;\nattval = range / BOOL / NUM / NULL / qval / datetime / ival / varexpr / antexpr ; \nqval = (DQUOTE *((%x21 / %x23-7E) / WSP) DQUOTE) / (SQUOTE *((%x21-26 / %x28-7E)/WSP) SQUOTE) ; # quoted text\nival = antexpr varexpr antexpr *(antexpr varexpr antexpr) ; # interpolated value\nantexpr = *(\"*\" / \"?\" / \".\" / ALPHANUM) ; # ANT expression\nvarexpr = \"${\" varname \"}\" ; # variable expression\nvarname = 1*(ALPHANUM / \".\" / \"-\" / \"_\" / \":\" ) ; # variable name\n\nrange = rfrom LWSP \"..\" LWSP rto ; # number range x..y\nrfrom = NUM ;\nrto = NUM ;\ndatetime = date [ LWSP [\"T\"/WSP] LWSP time] [LWSP tz] ; # datetime yyyy.mm.dd HH:MM:ss SSS TZ\ndate = 1*4DIGIT (\".\"/\"-\"/\"/\") months (\".\"/\"-\"/\"/\") days ; # date yyyy.mm.dd or yyyy/mm/dd ;\ntime = hours \":\" minutes \":\" seconds [\".\" 3DIGIT] ; # time HH:MM:ss.SSS\ntz = (3ALPHA [LWSP tzoffset] ) / tzoffset ; # timezone e.g GMT +02:30\ntzoffset = SIGN LWSP hours [ [\":\"] minutes ] ; # timezone offset\nmonths = %x30-31 %x30-39 ; # 0 - 19\ndays = %x30-33 %x30-39 ; # 0 - 39\nhours = (%x30-31 %x30-39) / (%x32 %x30-33) ;\nminutes = %x30-35 %x30-39 ;\nseconds = %x30-35 %x30-39 ;\n\ngopen = \"(\" ; # group start\ngclose = \")\" ; # group end\n\n# things which should be standard\n\n# todo:needs some work\nNUM = [SIGN] (INT32 / FLOAT / LONG / DOUBLE / BINARY / HEX );\nFLOAT = ((1*18DIGIT) / ( 0*18(DIGIT/\".\") DIGIT) / ( 1*17(DIGIT/\".\") \"e\" (\"+\"/\"-\") 1*16DIGIT ) ) \"F\" ; # do for now\nLONG = 1*19DIGIT \"L\" ;\nDOUBLE = ((1*64DIGIT) / (1*17(DIGIT/\".\") \"e\" (\"+\"/\"-\") 1*16DIGIT) ) \"D\"; # do for now\nBINARY = %x30 \"b\" 1*(%x30-31 / \"_\") ;\nHEX = %x30 \"x\" 1*8DIGIT ;\nSIGN = \"-\"/\"+\" ;\n\n$include \"./core.abnf\";" }
UTF-8
ABNF
3,495
Xandaros
a28828525ec6e683bbb2bcff2d5a6355012f821e
9e25bb86e8b23bfacd4c9ad4f21e2424087097fb
/cddl.abnf
c6529927782e2866e291dbedbee22d475ef04132
Xandaros/cddl
{ "content": "cddl = S 1*rule\r\nrule = typename [genericparm] S assign S type S\r\n / groupname [genericparm] S assign S grpent S\r\n\r\ntypename = id\r\ngroupname = id\r\n\r\nassign = \"=\" / \"/=\" / \"//=\"\r\n\r\ngenericparm = \"<\" S id S *(\",\" S id S ) \">\"\r\ngenericarg = \"<\" S type1 S *(\",\" S type1 S ) \">\"\r\n\r\ntype = type1 S *(\"/\" S type1 S)\r\n\r\ntype1 = type2 [S (rangeop / annotator) S type2]\r\n / \"#\" \"6\" [\".\" uint] \"(\" S type S \")\" ; note no space!\r\n / \"#\" DIGIT [\".\" uint] ; major/ai\r\n / \"#\" ; any\r\n / \"{\" S group S \"}\"\r\n / \"[\" S group S \"]\"\r\n / \"&\" S \"(\" S group S \")\"\r\n / \"&\" S groupname [genericarg]\r\n\r\ntype2 = value\r\n / typename [genericarg]\r\n / \"(\" type \")\"\r\n\r\nrangeop = \"...\" / \"..\"\r\n\r\nannotator = \".\" id\r\n\r\ngroup = grpchoice S *(\"//\" S grpchoice S)\r\n\r\ngrpchoice = *grpent\r\n\r\ngrpent = [occur S] [memberkey S] type optcom\r\n / [occur S] groupname [genericarg] optcom ; preempted by above\r\n / [occur S] \"(\" S group S \")\" optcom\r\n\r\nmemberkey = type1 S \"=>\"\r\n / bareword S \":\"\r\n / value S \":\"\r\n\r\nbareword = id\r\n\r\noptcom = S [\",\" S]\r\n\r\noccur = [uint] \"*\" [uint]\r\n / \"+\"\r\n / \"?\"\r\n\r\nuint = [\"0x\" / \"0b\"] \"0\"\r\n / [\"0x\" / \"0b\"] DIGIT1 *DIGIT\r\n\r\nvalue = number\r\n / string\r\n\r\nint = [\"-\"] uint\r\n\r\n; This is a float if it has fraction or exponent; int otherwise\r\nnumber = int [\".\" fraction] [\"e\" exponent ]\r\nfraction = 1*DIGIT\r\nexponent = int\r\n\r\nstring = %x22 *SCHAR %x22\r\nSCHAR = %x20-21 / %x23-7E / SESC\r\nSESC = \"\\\" %x20-7E\r\n\r\nid = EALPHA *(*(\"-\" / \".\") (EALPHA / DIGIT))\r\nALPHA = %x41-5A / %x61-7A\r\nEALPHA = %x41-5A / %x61-7A / \"@\" / \"_\" / \"$\"\r\nDIGIT = %x30-39\r\nDIGIT1 = %x31-39\r\nS = *WS\r\nWS = SP / NL\r\nSP = %x20\r\nNL = COMMENT / CRLF\r\nCOMMENT = \";\" *(SP / VCHAR) CRLF\r\nVCHAR = %x21-7E\r\nCRLF = %x0A / %x0D.0A\r\n" }
UTF-8
ABNF
1,811
asmwarrior
dd422d059517eeb6a6d84bfe72a0c2bdb5bde974
ae97ae80061f2cef8bc626f038a0d8c19f3ced21
/tests/abnf/rfc7405.abnf
64f9b255212059a3236da8e37dac117a23e05b73
asmwarrior/PeppaPEG
{ "content": "; Collected rules from RFC 7405\n; https://tools.ietf.org/html/rfc7405\n\nchar-val =\n case-insensitive-string /\n case-sensitive-string\n\ncase-insensitive-string =\n [ \"%i\" ] quoted-string\n\ncase-sensitive-string =\n \"%s\" quoted-string\n\nquoted-string =\n DQUOTE *(%x20-21 / %x23-7E) DQUOTE\n ; quoted string of SP and VCHAR\n ; without DQUOTE\n" }
UTF-8
ABNF
371
gknowles
b9c896b3d631ef204099ef04266f635e8a8d6952
c9889def8ff68247138baf9f4a9aca9faf70d409
/libs/json/json.abnf
7377e46e42f97041494632de58b5bc61709403a5
gknowles/dimapp
{ "content": "; Copyright Glen Knowles 2016 - 2018.\n; Distributed under the Boost Software License, Version 1.0.\n;\n; json.abnf - dim json\n;\n; rules to parse json\n%root = JSON-text\n%api.prefix = Json\n%api.namespace = Dim::Detail\n%api.parser.file.h = jsonparseint.h\n%api.base.file.h = jsonparsebaseint.h\n\n; JSON Grammar\nJSON-text = ws value ws\nbegin-array = ws \"[\" ws\nbegin-object = ws \"{\" ws\nend-array = ws \"]\" ws\nend-object = ws \"}\" ws\nname-separator = ws \":\" ws\nvalue-separator = ws \",\" ws\nws = *(WSP / CR / LF / comment)\ncomment = single-line-comment / multiline-comment\nsingle-line-comment = \"//\" *Char-not-CR-LF (CR / LF)\nmultiline-comment = \"/*\" *(Char-not-BLOT / 1*\"*\" Char-not-BLOT-SLASH) 1*\"*\" \"/\"\n\n; Characters\nmbchar = %s\"Z\" { MinRules }\nmbchar = ; multibyte utf-8 characters\n ; 2 byte: 0080-07ff\n (%xc2-df %x80-bf) ; 0080 - 07ff\n ; 3 byte: 0800 - d7ff\n / (%xe0 %xa0-bf %x80-bf) ; 0800 - 0fff\n / (%xe1-ec %x80-bf %x80-bf) ; 1000 - cfff\n / (%xed %x80-9f %x80-bf) ; d000 - d7ff\n ; 3 byte: e000 - ffff\n / (%xee-ef %x80-bf %x80-bf) ; e000 - ffff\n ; 4 byte: 01'0000 - 10'ffff\n / (%xf0 %x90-bf %x80-bf %x80-bf) ; 01'0000 - 03'ffff\n / (%xf1-f3 %x80-bf %x80-bf %x80-bf) ; 04'0000 - 0f'ffff\n / (%xf4 %x80-8f %x80-bf %x80-bf) ; 10'0000 - 10'ffff\n { NoMinRules }\n\nChar = WSP / CR / LF / %x20-7f / mbchar\nChar-not-CR-LF = WSP / %x20-7f / mbchar\nChar-not-BLOT = WSP / %x20-29 / %x2b-7f / mbchar\nChar-not-BLOT-SLASH = WSP / %x20-29 / %x2b-2e / %x30-7f / mbchar\n\n; Values\nvalue = false / null / true / object / array / nval / sval\nfalse = %s\"false\" { End }\nnull = %s\"null\" { End }\ntrue = %s\"true\" { End }\nnval = number { End }\nsval = string { End }\n\n; Objects\nobject = begin-object object-tail { Start, End }\nobject-tail = [ member *(value-separator member) ] end-object { Function }\nmember = member-name name-separator value\nmember-name = string { End }\n\n; Arrays\narray = begin-array array-tail { Start, End }\narray-tail = [ value *(value-separator value) ] end-array { Function }\n\n; Numbers\nnumber = 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\n; Strings\nstring = DQUOTE str-text DQUOTE\nstr-text = *char { Start+ }\nchar = unescaped / escape-single / escape-number\nescape-single = escape (e-dquote / e-bslash / e-slash / e-bksp / e-feed\n / e-nl / e-cr / e-tab)\ne-dquote = DQUOTE { End } ; \"\ne-bslash = \"\\\" { End }\ne-slash = \"/\" { End }\ne-bksp = \"b\" { End }\ne-feed = \"f\" { End }\ne-nl = \"n\" { End }\ne-cr = \"r\" { End }\ne-tab = \"t\" { End }\nescape-number = escape %x75 escape-num-hex { End }\nescape-num-hex = 4HEXDIG { Char+ }\nescape = %x5c ; \\\nunescaped = %x20-21 / %x23-2e / %x30-5b / %x5d-7f / mbchar { Char+ }\n" }
UTF-8
ABNF
3,028
sliekens
2455b34e2c8b0abf92a32dfa393f1e88249d7623
2a8432cfb90849b66213b0db822af7651b1d0da4
/dec-octet.abnf
4671728d381a9d7dc67cf7ddf406caf79a9a0d4e
sliekens/HTTPortable
{ "content": "; Rule : dec-octet\n; Replaces : dec-octet (RFC 3986)\n; Reason : the dec-octet rule in RFC 3986 requires more than 1 lookahead symbol\n; Example : \"127\" matches ( DIGIT ), but it should instead match ( \"1\" 2DIGIT )\n; Rules used : DIGIT (RFC 5234)\n\ndec-octet = \"25\" %x30-35 ; 250-255\n / \"2\" %x30-34 DIGIT ; 200-249\n / \"1\" 2DIGIT ; 100-199\n / %x31-39 DIGIT ; 10-99\n / DIGIT ; 0-9" }
UTF-8
ABNF
474
jmitchell
d42f0e646710656a31110b821a09f6818894d9cf
02a4a8ea98638ff0962c804a18f0643a56a8ca0a
/examples/abnf/generated/core_CR.abnf
5b9a0b72690eef1a3f6807b482bfbd73ef1557ad
jmitchell/abnf-to-tree-sitter
{ "content": "start = CR\r\n" }
UTF-8
ABNF
12
jmitchell
0559a4544eb7a5059265aed5bf8cfbd5be159ef0
02a4a8ea98638ff0962c804a18f0643a56a8ca0a
/examples/abnf/generated/concatenation.abnf
d14b540004011032a5af1278765c8e191b56fa79
jmitchell/abnf-to-tree-sitter
{ "content": "start = ALPHA SP DIGIT\r\n" }
UTF-8
ABNF
24
Borvik
6dc22ae9a9bef433fd5ff4609ea1e72e8ffe1794
e00ea344357e092a5b0e87c5d74459593e8c3853
/syntaxes/pgsql.abnf
0502b49daa174be2e448c9e7a10c993534dd211a
Borvik/vscode-postgres
{ "content": "commands = command [ semicolon command ]\ncommand = selectcommand / updatecommand\nupdatecommand = \"UPDATE\"\nselectcommand = \"SELECT \" [expression [\",\" expression]]\nexpression = \"test\"\nsemicolon = \";\"" }
UTF-8
ABNF
197
bver
c7f68249f814234239cfa45a3c872f1afeb33f9e
6d0832b3aae9e1efe02476217a3b391990ddd0fb
/test/data/start_space_bug.abnf
a811d2448ee3e473d76200df09ed385a2c851044
bver/GERET
{ "content": "; test for Abnf::File class\n; empty space on the line #3 causes exception: \"RuntimeError: Parser: unexpected token 'space' when in start\"\n \nexpr = \"x\" / \"y\" / \"(\" expr op expr \")\"\nop = \"+\" / \"*\"\n" }
UTF-8
ABNF
198
junwen12221
eb57eca85295ab025b51239aaa228a017b3176b9
762e0a23a6916055b6a2e7dd5d94907862adc5d4
/xml/xml.abnf
0a1026f871d190f4ff1a62c9374984bc89a7a285
junwen12221/apg-7.0
{ "content": ";\n; Copyright 2020 Lowell D. Thomas\n; email: lowell@coasttocoastresearch.com\n; web: http://coasttocoastresearch.com/\n;\n; This is an ABNF translation of a sub-set of the XML standard: https://www.w3.org/TR/REC-xml/.\n; The subset includes only those productions necessary for a non-validating parser.\n;\n; 1) This grammar is intended to define a standards-conforming, non-validating parser.\n; 2) This grammar defines a UTF-8 parser only. Any other encoding must be transcoded to UTF-8 prior.\n; 3) The ABNF is incomlete in that some rules, utf8 for example, leave standards compliance to semantic interpretation.\n;\ndocument = [prolog] element *Misc\nprolog = [XMLDecl] *Misc [doctypedecl *Misc]\nMisc = S / Comment / PI\n\n; XML DECLARATION\nXMLDecl = XMLDeclOpen XMLDeclInterior XMLDeclClose\nXMLDeclOpen = %s\"<?xml\"\nXMLDeclInterior = VersionInfo [EncodingDecl] [SDDecl]\nXMLDeclClose = OS %s\"?>\"\nVersionInfo = S %s\"version\" Eq (%d39 VersionNum %d39 / %d34 VersionNum %d34)\nVersionNum = %s\"1.\" 1*%d48-57\nEncodingDecl = S %s\"encoding\" Eq EncDef\nEncDef = (%d34 EncName %d34) / (%d39 EncName %d39 )\nEncName = (%d65-90 / %d97-122) *(%d65-90 / %d97-122 / %d48-57 / %d45-46 / %d95)\nSDDecl = S %s\"standalone\" Eq (SDeclYes / SDeclNo / SDeclOther)\nSDeclOther = Char\nSDeclYes = (%d39 %s\"yes\" %d39) / (%d34 %s\"yes\" %d34)\nSDeclNo = (%d39 %s\"no\" %d39) / (%d34 %s\"no\" %d34)\n\n; DOCUMENT TYPE DECLARATION\ndoctypedecl = docopen S docname docint docclose\ndocopen = %s\"<!DOCTYPE\"\ndocname = Name ; \"Name\" renamed for semantic identification\ndocint = [S extSubset] OS [%d91 intSubset %d93 OS]\nextSubset = ExternalID ; ExternalID renamed for semantic identification\ndocclose = %d62\nintSubset = *(markupdecl / DeclSep)\nDeclSep = PEReference / S\nExternalID = ExternalSysID / ExternalPubID\nExternalSysID = %s\"SYSTEM\" S SystemLiteral\nExternalPubID = %s\"PUBLIC\" S PubidLiteral S SystemLiteral\nSystemLiteral = (%d34 *(anotquot/utf8) CloseQuot) /(%d39 *(anotapos/utf8) CloseApos)\nPubidLiteral = (%d34 *(pubid / special) CloseQuot) /(%d39 *(pubid / specialapos) CloseApos)\nCloseQuot = %d34\nCloseApos = %d39\npubid = %d97-122 / %d65-90 / %d48-57 / %d10 / %d13 / %d32\nspecial = %d33 / %d35-37 / %d39-47 / %d58-59 / %d61 / %d63-64 / %d95 \nspecialapos = %d33 / %d35-37 / %d40-47 / %d58-59 / %d61 / %d63-64 / %d95\n ; #x20 | #xD | #xA | [a-zA-Z0-9] | [-'()+,./:=?;!*#@$_%]\nPEReference = %d37 Name %d59\nmarkupdecl = elementdecl / AttlistDecl / EntityDecl / NotationDecl / PI / Comment\nPERefError = *(anotpg / utf8) %d37 Name %d59\n\n; ENTITY DECLARATION\nEntityDecl = PEDecl / GEDecl\nGEDecl = GEDeclOpen S ((GEDeclName S GEDef) / PERefError) OS GEDeclClose\nGEDeclOpen = %s\"<!ENTITY\"\nGEDeclName = Name\nGEDef = EntityValue / GEDefEx\nEntityValue = %d34 *(EntityChard / GERef / GEPERef) CloseQuot\n / %d39 *(EntityChara / GERef / GEPERef) CloseApos\nGEPERef = PEReference \nEntityChard = anotpaq / utf8 / HexRef / DecRef\nEntityChara = anotpaa / utf8 / HexRef / DecRef\nGERef = %d38 Name %d59\nGEDefEx = ExternalID [NDataDecl]\nGEDeclClose = %d62\nPEDecl = PEDeclOpen S PEDef OS PEDeclClose\nPEDeclOpen = %s\"<!ENTITY\" S %d37 S Name\nPEDeclClose = %d62\nPEDef = PEEntityValue / ExternalID\nPEEntityValue = %d34 *(anotpaq / utf8 / PEReference / HexRef / DecRef / (%d38 Name %d59)) CloseQuot\n / %d39 *(anotpaa / utf8 / PEReference / HexRef / DecRef / (%d38 Name %d59)) CloseApos\nNDataDecl = S %s\"NDATA\" S Name \n\n; ATTRIBUTE LIST DECLARATION \nAttlistDecl = AttlistOpen *(AttDef / PERefError) OS AttlistClose\nAttlistOpen = %s\"<!ATTLIST\" S (Name / PERefError)\nAttDef = S AttName S AttType S DefaultDecl\nAttlistClose = %d62\nAttName = Name\nAttType = StringType / TokenizedType / EnumeratedType\nStringType = %s\"CDATA\"\nTokenizedType = %s\"IDREFS\"\n / %s\"IDREF\"\n / %s\"ID\"\n / %s\"ENTITIES\"\n / %s\"ENTITY\"\n / %s\"NMTOKENS\"\n / %s\"NMTOKEN\"\nEnumeratedType = NotationType / Enumeration\nNotationType = %s\"NOTATION\" S %d40 OS Nmtoken *(OS %d124 OS Nmtoken) OS %d41\nEnumeration = %d40 OS Nmtoken *(OS %d124 OS Nmtoken) OS %d41\nDefaultDecl = %s\"#REQUIRED\" / %s\"#IMPLIED\" / ([%s\"#FIXED\" S] AttlistValue)\nAttlistValue = (%d34 *AttChard %d34) \n / (%d39 *AttChara %d39)\nAttChard = anotquot / utf8\nAttChara = anotapos / utf8\n\n; ELEMENT DECLARATION\nelementdecl = elementopen elementclose\nelementopen = %s\"<!ELEMENT\"\nelementclose = S ((Name S contentspec) / PERefError) OS %d62\ncontentspec = %s\"EMPTY\" / %s\"ANY\" / Mixed / children\nMixed = %d40 OS %s\"#PCDATA\" *(OS %d124 OS Name) OS %d41.42\n / %d40 OS %s\"#PCDATA\" OS %d41\nchildren = (choice / seq) [ %d63 / %d42 / %d43 ]\ncp = ( Name / choice / seq) [ %d63 / %d42 / %d43 ] \nchoice = %d40 OS cp *(OS %d124 OS cp) OS %d41\nseq = %d40 OS cp *(OS %d44 OS cp) OS %d41 \n\n; NOTATIONAL DECLARATION\nNotationDecl = NotationOpen S (NotationDef / PERefError) OS NotationClose\nNotationClose = %d62\nNotationDef = NExternalID / PublicID\nNotationOpen = %s\"<!NOTATION\" S (Name / PERefError)\nPublicID = %s\"PUBLIC\" S PubidLiteral\nNExternalID = ExternalSysID / ExternalPubID\n\n\n; ELEMENT\nelement = EStart (EmptyClose / STagClose content ETag)\nEStart = EOpen *(S Attribute) OS\nEOpen = %s\"<\" (EReserved / Name)\nEReserved = %s\"xml:\" Name\nEmptyClose = %s\"/>\"\nSTagClose = %d62 ; NOMATCH indicates malformed element\nAttribute = ElAttName Eq AttValue\nElAttName = EReserved / Name\nAttValue = (%d34 *(DValue / EntityRef) %d34) / (%d39 *(SValue / EntityRef) %d39)\nETag = %s\"</\" ETagClose\nETagClose = Name OS %d62 ; NOMATCH indicates malformed element\nDValue = DChar / HexRef / DecRef\nDChar = anotlaq / utf8\nSValue = SChar / HexRef / DecRef\nSChar = anotlaa / utf8\ncontent = *CharData *((element / EntityRef / ContentRef / CDSect / PI / Comment ) *CharData)\nContentRef = HexRef / DecRef\nCharData = CDSectEnd / anotla / utf8\nCDSectEnd = %s\"]]>\"\n\n; CHARACTER DATA SECTION\nCDSect = %s\"<![CDATA[\" *(CDChar / CDRb / CD2Rb) CDEnd\nCDEnd = %s\"]]>\"\nCDChar = anotrb / utf8\nCDRb = %d93 (anotrb / utf8)\nCD2Rb = %d93.93 (anotgt / utf8)\n\n; REFERENCES\nReference = EntityRef / HexRef / DecRef\n ; Note that characters given by HexRef or DecRef must honor the XML \"Char\" character range\n ; This will be enforced semantically.\nEntityRef = %d38 Name RefClose\nHexRef = HexOpen HexValue RefClose\nRefClose = %d59\nHexValue = 1*(%d48-57 / %d65-70 / %d97-102) ; NOMATCH is a mal-formed element\nHexOpen = %s\"&#x\"\nDecRef = DecOpen DecValue RefClose\nDecValue = 1*%d48-57 ; NOMATCH is a mal-formed element\nDecOpen = %s\"&#\"\n\n; COMMENTS\nComment = %s\"<!--\" *((anoth / utf8) / (%d45 (anoth / utf8))) (%s\"-->\" / Doubleh)\nDoubleh = %d45.45 ; error production\n\n; PROCESSING INSTRUCTIONS\nPI = PIOpen PIClose\nPIOpen = %s\"<?\" \nPIClose = PITarget S PIInfo %s\"?>\"\nPIInfo = *PIInfoChar\nPIInfoChar = PIInfoq / PIInfoa\nPIInfoq = %s\"?\" (anotgt / utf8)\nPIInfoa = anotq / utf8\nPITarget = PIReserved / PIForbidden / Name\nPIForbidden = %s\"xml\" S\nPIReserved = %s\"xml-\" *Char\n\n; SPECIALIZED CHARACTER RANGES\nascii = %d32-126 / %d10 / %d13 / %d9 ; all ASCII characters\nanotla = %d32-37 / %d39-59 / %d61-126 / %d10 / %d13 / %d9 ; all ASCII characters not <&\nanotlaq = %d32-33 / %d35-37 / %d39-59 / %d61-126 / %d10 / %d13 / %d9 ; all ASCII characters not <&\"\nanotlaa = %d32-37 / %d40-59 / %d61-126 / %d10 / %d13 / %d9 ; all ASCII characters not <&'\nanotq = %d32-62 / %d64-126 / %d10 / %d13 / %d9 ; all ASCII characters not ?\nanotgt = %d32-61 / %d63-126 / %d10 / %d13 / %d9 ; all ASCII characters not >\nanotpaq = %d32-33 / %d35-36 / %d39-126 / %d10 / %d13 / %d9 ; all ASCII characters not %&\" \nanotpaa = %d32-36 / %d40-126 / %d10 / %d13 / %d9 ; all ASCII characters not %&'\nanotquot = %d32-33 / %d35-126 / %d10 / %d13 / %d9 ; all ASCII characters not \"\nanotapos = %d32-38 / %d40-126 / %d10 / %d13 / %d9 ; all ASCII characters not '\nanotp = %d32-36 / %d38-126 / %d10 / %d13 / %d9 ; all ASCII characters not %\nanotpg = %d32-36 / %d38-61 / %d63-126 / %d10 / %d13 / %d9 ; all ASCII characters not %>\nanoth = %d32-44 / %d46-126 / %d10 / %d13 / %d9 ; all ASCII characters not -\nanotrb = %d32-92 / %d94-126 / %d10 / %d13 / %d9 ; all ASCII characters not ]\n\n; BASICS\nChar = ascii / utf8\nutf8 = utf82 / utf83 / utf84 ; decoding utf8 is done semantically\nutf82 = %xC2-DF UTF8-tail ; this skips overlong encodings\nutf83 = %xE0 %xA0-BF UTF8-tail ; this skips overlong encodings\n / %xE1-EC 2( UTF8-tail )\n / %xED %x80-9F UTF8-tail ; this skips the surrogate pair blocks\n / %xEE 2( UTF8-tail )\n / %xEF UTF8-tail %x80-BD ; %xBE & %xBF would result in 0xFFFE & 0xFFFF which are not allowed\nutf84 = %xF0 %x90-BF 2( UTF8-tail ) ; this skips overlong encodings\n / %xF1-F3 3( UTF8-tail )\n / %xF4 %x80-8F 2( UTF8-tail ) ; this skips values greater than 0x10FFFF \nUTF8-tail = %x80-BF\n\n; names\nName = NameStartChar *NameChar\nNameStartChar = Char ; character range validated semantically\nNameOtherChar = Char ; character range validated semantically\nNameChar = NameStartChar / NameOtherChar\nNmtoken = 1*NameChar\n\n; white space\nS = 1*(%d32 / %d10 / %d9 / %d13)\nOS = *(%d32 / %d10 / %d9 / %d13)\nEq = OS %d61 OS\n" }
UTF-8
ABNF
10,826
Macecaski
a586c3fff0b1a6a90e8cca0f7f39cd236f5705a6
af04c0933e0f1976b831b9e52bf9edd04f25c158
/grammars/main.abnf
7acd6c1ce1238dc4a70be3532e05045a7dd35eaf
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 = $wykonaj;\r\n\r\n$wykonaj = $dodaj | $usuń | $sprawdź | $edytuj | przełóż {przełóż} | zakończ {zakończ};\r\n\r\n$dodaj = (dodaj | utwórz | dorzuć | stwórz | zrób | wpisz | wrzuć | zapisz) {dodaj};\r\n\r\n$usuń = (usuń | anuluj | wyrzuć | odwołaj | skasuj | zlikwiduj | skreśl) {usuń};\r\n\r\n$sprawdź = (sprawdź | odczytaj | przeczytaj | powiedz) {sprawdź};\r\n\r\n$edytuj = (edytuj | zmień | przetwórz | zredaguj | redaguj) {edytuj};\r\n\r\n$zakończ = zakończ {zakończ};\r\n" }
UTF-8
ABNF
581