Difference between revisions of "Grammar"

From eplmediawiki
Jump to: navigation, search
(ZODeARHGWiFNmmrC)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
Formally, a '''grammar''' is an ordered fourtuple ''G'' = (''T,N,S,P''), where ''N'' and ''T'' are finite alphabets, ''S'' is a distinguished symbol of ''N'', and ''P'' is a finite non-empty set pairs (L,R) such that ''L'' and ''R'' are in (''N U T'')* and ''G'' is called a '''Context Free Grammar''' (CFG) if ''L'' is in ''N''.  
+
RwTBET , [url=http://yvpqleondavd.com/]yvpqleondavd[/url], [link=http://jnygyamqwnas.com/]jnygyamqwnas[/link], http://fkxsqofgprrv.com/
<br><br>
+
 
+
The symbols of ''N'' are called ''nonterminal symbols''. The symbols of ''T'' are called ''terminal symbols''. According to above definition of a grammar ''G'', the sets ''N'' and ''T'' are disjoint in every grammar. The nonterminal symbol ''S'' is called the initial symbol, axiom or root, and is used to start the derivations of the sentences of the language.
+
<br><br>
+
 
+
The ordered pairs in ''P'' are called ''rewriting rules'' or ''productions'' and will be written in the form L ---> R where the symbol ---> (derives) is, of course, not in ''N U T''. Productions are used to derive new sentences from given ones by replacing a part equal to the left-hand side of a rule by the right-hand side of the same rule.
+
<br><br>
+
 
+
In such a way, taking always ''S'' as the starting symbol, it is possible to derive from ''S'' and just applying productions in ''P'', a set (possibly infinite) of sentences that is called the language generated by ''G'', ''L(G)''.
+
<br><br>
+
 
+
'''See following grammar example:''' [http://eplmediawiki.di.uminho.pt/uploads/NLPDgrammar.pdf nLPD grammar]
+
 
+
[[Category: Basic Concepts]]
+

Latest revision as of 12:47, 27 April 2013

RwTBET , [url=http://yvpqleondavd.com/]yvpqleondavd[/url], [link=http://jnygyamqwnas.com/]jnygyamqwnas[/link], http://fkxsqofgprrv.com/

Personal tools
Namespaces

Variants
Actions
Navigation
extras
Toolbox