Regular grammars, expressions, and sets