Changes

Jump to navigation Jump to search
165 bytes added ,  17:52, May 8, 2012
→‎Chomsky hierarchy: make notation consistent. note re 'beyond level 0'
Line 263: Line 263:     
There is only one transformation rule for context-sensitive grammars:
 
There is only one transformation rule for context-sensitive grammars:
−
 
+
*X [non-terminal] Y -> X [anything] Y
−
X [non-terminal] Y -> X [anything] Y
      
where X and Y determine the context in which the [non-terminal] is transformed. Note that X and Y may each be terminals or non-terminals or [nothing]. When both X and Y are nothing there is no context and this reduces to a Level 2 or Level 3 grammar.
 
where X and Y determine the context in which the [non-terminal] is transformed. Note that X and Y may each be terminals or non-terminals or [nothing]. When both X and Y are nothing there is no context and this reduces to a Level 2 or Level 3 grammar.
Line 307: Line 306:     
===Level 0: recursively enumerable grammar===
 
===Level 0: recursively enumerable grammar===
−
A recursively enumerable grammar has absolutely no restriction on what sort of transformation rules can be applied. Rules take the general form:
+
A recursively enumerable grammar has absolutely no restriction on what sort of transformation rules can be applied; hence it is also known as an unrestricted grammar. Rules take the general form:
−
 
+
*[anything] -> [anything]
−
[anything] -> [anything]
      
===Beyond Level 0===
 
===Beyond Level 0===
Line 318: Line 316:  
| accessdate = 2012-05-05
 
| accessdate = 2012-05-05
 
}}</ref>
 
}}</ref>
−
show that languages exist which can not be described by any set of rules.
+
show that languages exist which can not be described by any set of rules. As is common with logical proofs of this nature, the proof doesn't actually produce or demonstrate such a language.
    
==References==
 
==References==
SkipCaptcha
265

edits

Navigation menu