Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An example Analysis of C # No-suffix symbols

2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report