Definition
Context-Free Language
A context-free grammar is described by a tuple
where
- is the set of non-terminal symbol
- is the set of terminal symbols with
- is the set of production rules
- is the start non-terminal symbols
From the start symbol, non-terminal symbols are iteratively replaced by applying the respective production rules.
Derivation
Leftmost Derivation
Leftmost derivation is process of iteratively replacing the leftmost non-terminal symbol by applying the respective production rules.
Rightmost Derivation
Rightmost derivation is process of iteratively replacing the rightmost non-terminal symbol by applying the respective production rules.
Paralell Derivation
Paralell derivation is process of iteratively replacing the all non-terminal symbols by applying the respective production rules.