An example Analysis of C # No-suffix symbols
This article will explain in detail the example analysis of C# no-suffix symbols for you. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Grammatical symbols of C #
A C # program consists of one or more source files. A source file is an ordered sequence of uniformly encoded characters. The source file usually has an one-to-one correspondence with the files in the file system, but this correspondence is not needed.
The vocabulary of C # and the grammar of sentences are scattered throughout the article. Lexical grammar defines how to combine characters into formal markers; the grammar of sentences defines how to combine tags into a C # program.
Grammar generation includes non-suffix symbols and suffix symbols. In grammar generation, C# no-suffix symbols are represented in Italian, while some suffix symbols are in fixed-width fonts. Each C # no suffix symbol is defined as a series of products (production). The * line of this series of products is the name of the no-suffix symbol, followed by a colon. For a product, the right-hand side of each consecutive jagged line is similar to the left-hand side is a C # no-suffix symbol.
Example: nonsense,terminal1,terminal2
A no-suffix symbol named nonsense is defined. There are two products, one on the right hand side is terminal1, and the other on the left hand side is terminal2.
Options are usually listed on a separate line, although sometimes there are many options, and the phrase "one of" comes before the option. Here is a simple abbreviation for listing each option on a separate line.
Examples
Letter: one ofA B C a b c
For example, identifier opt, a prefix "opt" written below is used as an abbreviation to indicate an optional symbol. Examples
Whole:
First-part second-partopt last-par t
Is the following abbreviation:
Whole:
Fir st-part last-part
Fir st-part second-part last-part
This is the end of the article on "sample Analysis of C# No-suffix symbols". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.