Notations are borrowed from [[Set Theory]]

def. is the set of all symbols

def. A string is a finite set of symbols

def. A language is a set of strings

String Manipulation

  • is the empty string
    • …naturally,

We can also define languages as containing strings. Some common ones:

  • ← set of strings, which are concatenated symbols 0 or more times
  • ← set of strings, which are concatenated symbols 1 or more times

\Sigma=\{a,b\}. Then:

You can also use set operations on languages

    • …naturally,

A language given a grammar is defined as a set of terminal-only strings that are derivable from the starting strings. More formally: