languages

Definition

Dyck Language

Let over be the smallest set with:

  1. ,

Example:

The language of well-formed bracket expressions is the one-bracket Dyck language .

Example

Well-formed bracket expressions

The language of well-formed bracket expressions is the smallest language over a bracket alphabet such that:

Equivalently, it is generated by the context-free grammar

where is the start symbol.