CFG Visualizer

Parse Tree & Derivation Tool

Grammar

Format: A → α | βUPPERCASE = non-terminallowercase / symbols = terminalε or eps = epsilon

Separate multi-char terminals with spaces · Enter to derive · Leave empty for ε

No parse tree yet

Enter a grammar and an input string, then click Derive to see the parse tree and step-by-step derivations.

1. Write grammar2. Enter string3. Derive