Explorer for context-free grammars

This is a tool for exploring the relationship between context-free grammars, derivation trees and languages.

To make it work, you'll need a browser that supports JavaScript.

Grammar rules

Example: S → aSb|c