Definition of language-compilation principle

Definition of language-compilation principle

Given a grammar G=(V T ,V N ,P,S) , if α→β∈P, then the α in the γαδ in the symbol string can be replaced by β, which is denoted as γαδ⇒γβδ , which is called γαδ directly Derive γβδ.

Deduction ( derivation ) and reduction ( reduction )

Insert picture description here

From the above examples, it can be seen that derivation is a top-down process, and statutes are self-directed processes, in other words: derivation is from abstract to concrete, and statutes are from concrete to abstract

Sentence patterns and sentences

Insert picture description here

Insert picture description here

Formal definition of language

The set of all sentences derived from the beginning symbol S of grammar G is called the language generated by grammar G , which is denoted as

The generated language called grammar G is written as

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_44823898/article/details/108048758