/
408.txt
27 lines (21 loc) · 1.28 KB
/
408.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[2] [DFN[R-BNF]] は、[[EBNF]] と[RUBYB[[[正規表現]]]@en[regular expressions]]を組み合わせた構文記述言語です。
[1] [CITE[Developer's Guide (v2) - Google Safe Browsing API - Google Code]]
([TIME[2010-07-24 13:17:10 +09:00]] 版)
<http://code.google.com/intl/ja/apis/safebrowsing/developers_guide_v2.html#ProtocolSpecificationRBNF>
[FIG(quote)[
[FIGCAPTION[
[4] [CITE@ja[Safe Browsing Lookup API Developer's Guide - Safe Browsing API — Google Developers]]
([TIME[2014-06-27 03:28:54 +09:00]] 版)
<https://developers.google.com/safe-browsing/lookup_guide#AppendixRBNF>
]FIGCAPTION]
> This document uses a R-BNF notation, which is a mix of Extended BNF and PCRE-style regular expressions:
> Rules are in the form: name = definition. Rule names referenced as-is in the definition. Angle brackets may be used to help facilitate discerning the use of rule names.
> Literals are surrounded by quotation marks: "literal".
> Sequences: (rule1 rule2) or simply rule1 rule2.
> Alternatives groups: (rule1 | rule2).
> Optional groups: '''['''rule'''['''''']'''''']'''.
> Repetition: rule* means 0 or more of this rule or this group.
> Repetition: rule+ means 1 or more of this rule or this group.
]FIG]
* 関連
[3] [[RBNF]] と名前が似ていますが別物です。