1.6 - [syntax] - [grammar]

xiaoxiao2021-03-06  118

Please don't reprint this article; please don't re-publish in any form; please delete it within 24 hours of downloading this article; it is forbidden to use this article for commercial purposes.

1 General [intro] 1.6 Syntax notation [syntax] 1 General [General] 1.6 Syntax Notation Grammar In the syntax notation used in this International Standard, syntactic categories are indicated by italic type, and literal words and characters in constant width type . Alternatives are listed on separate lines except in a few cases where a long set of alternatives is presented on one line, marked by the phrase "one of." An optional terminal or nonterminal symbol is indicated by the subscript "opt," so { EXPRESSIONOPT} Indicates An Optional Expression Enclosed in Braces. In this standard used syntax representation, the grammatical scope is represented by tilting fonts, and literal vocabulary and characters are contained. In addition to a small number of candidate entries with a long list of long strings with "one" statement logo, are listed in separate lines. An optional end tag or non-final mark is labeled "OPT" subscript, thus {Expression OPT} represents an optional expression surrounded in the curly brackets. Names for syntactic categories Have Generally Been Chosen According to The Following Rules:

X-Name Is A Use of An Identifier In A Context That Determines ITS Meaning (EG Class-Name, TypeDef-Name). X-id is an identifier with no content-dependent meaning (eg Qualified-id). X-SEQ IS one or more X's without intervening delimiters (eg declaration-seq is a sequence of declarations). X-list is one or more X's separated by intervening comma (eg expression-list is a sequence of expressions separated by commas). select a grammatical category Names usually choose from the following rules:

A-name represents an identifier determined by the context (such as class - name, type definition - name). A-identifier represents an identifier (such as a qualified-identifier) ​​that is unrelated to the context. A-sequence represents a certain entry of one or more unsatisfunctions (such as a declaration - sequence is a series of declarations). A-list represents one or more of a comma-separated entry (such as an expression - the list is a series of comma-separated expressions). Prev [Intro.Structure] | Next [Intro.Memory] Previous [General. Structure] | Next [General. Memory]

转载请注明原文地址:https://www.9cbs.com/read-99162.html

New Post(0)