Size: 624
Comment:
|
← Revision 12 as of 2020-01-26 17:53:59 ⇥
Size: 614
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 8: | Line 8: |
1. Element |
1. Element |
Context Free Grammar
Def: For every ContextFreeLanguage there is a ContextFreeGrammar that generates it and a PushDownAutomata that recognizes it.
A context-free grammar is a 4-tuple
- Element
$ is a finite set called the variables, - Element
is a finite set, disjoint from , called the terminals, - Element
is a finite set of rules, with each rule being a variable and a string of variables and terminals, and - Element
is the start variable
An example of a rule is