languages

Definition

Context-Free Language

A context-free grammar is described by a tuple

where

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.