Formal language theory
ID: formal-language-theory
Formal language theory studies sets of finite strings over a specified alphabet, and the grammars or machines that describe them. A formal language can be finite, such as , or infinite, such as all binary strings with an even number of ones.
A finite-state machine recognizes the latter using only two states, recording parity. By contrast, the language needs an unbounded counting mechanism and is recognized by a pushdown automaton, but not by any finite-state recognizer. Comparing these classes explains which memory resources a pattern requires and connects grammar design to computability theory.
New to topics? Read the docs here!