As mentioned above, a generator (Parser Generator) that can recognize ABNF grammar and automatically construct ABNF grammar parser must first be able to recognize ABNF grammar, that is, after reading ABNF into the memory and structuring it, to generate a parser. The module I read into the
BNF: Backus ParadigmABNF (Augmented Backus-naur Form): Expanded Backus paradigmABNF is defined by the 68th Internet standard ("STD 68″, case style according to the original text), which is RFC 5234, which is often used in the definition language of the Internet Engineering Task Force (IETF) communication protocol. RFC 5234 supersedes RFC 4234 (in place of RFC 2234).Introduction to Learning ABNF:ABNF rulesObtain the ABNF file for the RfC:Enter the RFC
I've been doing the session recently. The development of Initiation Protocol (SIP) protocol, SIP is widely used in telecom VoIP, and is a protocol based on text grammar. The syntax specification for SIP is defined using ABNF. Students interested in SIP syntax please go to their augmented BNF for the SIP Protocol section. Augmented BNF for Syntax SPECIFICATIONS:ABNF itself is also a grammatical norm, ABNF fo
A notable feature of the prediction-based Grammar analyzer is to define a non-Terminator as a parsing function (method). When a non-terminator can be derived as another non-Terminator, recursively call the parsing function. One disadvantage of this
, people expanded and enhanced for a more concise expression, such as:EBNF(Extended Backus–Naur F orm),ABNF(Augmented Backus–Naur Form), I have found a few articles for your reference (especially the first three articles):
The meaning and usage of BNF and ABNF
"Grammatical norms: BNF and ABNF"
"Ebnf:extended Backus–naur Form"
"Abnf:augmented BNF
? I think we should be zh-CN familiar with and so on, and they are the en basis of our needs! When we use an existing i18n library for internationalization/localization, the following documents will be written
{"
en": {"name": "Enter Name"},
"ZH-CN": {"name": "Enter Name"}
}But en zh-CN are there any other keys besides and? What are the rules of their composition? Let's take a little deeper look at these language tags!
Grammar rules
Note the following
, and they are exactly what we need! When we use an existing i18n library for internationalization/localization, We will write the following documents: {"En": {"name": "Enter Name"}, "zh-CN": {"name": "Enter name "}} ExceptenAndzh-CNAre there other keys? What are their composition rules? Let's take a closer look at these Language tags!
Syntax Rules
Note that the following uses the ABNF language description (for the
ArticleDirectory
Extended bacos paradigm
BNF is a language used to represent context-independent grammar. It describes a type of formal language. Although the bacos paradigm can also represent the syntax of some natural languages, it is still more widely usedProgramThe syntax representation of the design language, instruction set, and communication protocol. Most textbooks in programming language or formal semantics use the bacos paradigm. There are also some variants of the baco
. The h.248 protocol is a text-based protocol based on the ABNF (extended BNF) grammar, which defines the components and specific contents of the h.248 message. The specifics of the h.248 protocol are not discussed in this article, and interested readers can get more from the reference resources. We only focus on the NAME syntax definition, as follows:NAME = Alpha *63 (Alpha/digit/"_") Alpha =%x41-5a/%x61-7a ; A-Z, a-zdigit =%x30-39 ; di
protocol that the media Gateway Controller uses to control the media gateway. The h.248 protocol is a text-based protocol based on the description of ABNF (extended BNF) grammar, which defines the components and contents of the h.248 message. The specifics of the h.248 protocol are not discussed in this article, and interested readers can get more from the reference resources. We only focus on the definition of the NAME syntax, as follows:
URL encoding is a troublesome task. RFC 3986 is a standard for uri. Section 2nd defines how characters are represented in Uris, section 3rd classifies a URI as scheme, hier-part, query, and fragment components. According to this RFC, a URI is composed from a limited set of characters consisting of digits, letters, and a few graphic symbols. Appendix A defines ABNF.
Such as URL, http://www.qingbo.org /? P = 230 # comments, which includes all the four
json object:
{ "Image": { "Width": 800, "Height": 600, "Title": "View from 15th Floor", "Thumbnail": { "Url": "http://www.example.com/image/481989943", "Height": 125, "Width": "100" }, "IDs": [116, 943, 234, 38793] } }
The image member of this object is an object, while the thumbnail Member of the image is also an object, and the IDS Member of the image is an array.
The following is a JSON array containing two objects:
[ { "precision": "zip", "Latitude": 37.7668, "Longitude": -122.3
Backus paradigm (EBNF) and the expanded Basque paradigm (ABNF).A BNF specification is a set of rules written in the following form:The left side of the equation is usually a non-terminating character, followed by a
::=
Symbol, which stands for "can be swapped". Right of the formula
Expression
Consists of one or more symbol sequences, which are used to derive the meaning of the left symbol.
The BNF specification fundamentally says, "whatever the left
not", "recommended", "may", and " OPTIONAL "In", are to is interpreted as described in [RFC2119].
2. Description of the SolutionThe main part of We solution is the declaration of a SDP attribute for documenting to the port used by RTCP.
2.1. The RTCP AttributeThe RTCP attribute is used to document the RTCP port used for media stream, when this is not the next higher (
Odd OddPort number following the RTP port described in the media line. The RTCP attribute is a "value" attribute, and follows t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.