Meta-discourse
Language Syntax
Elements of Syntax

\[\text{if ... then begin ... ; ... end else begin ... ; ... end}\]

\[\text{typexpr}_1 \rightarrow \text{typexpr}_2\]

\[\text{let pattern = expr} \]

\[a = b + c \]

\[\text{let } \text{pattern}_1 = \text{expr}_1 \text{ in expr}\]

Lexing and Parsing
Formal Language Descriptions
Grammars
Regular Expressions - Review

\[\text{If } \textcolor{red}{L(\textbf{x}) = \{a, ab\}} \text{ and } \textcolor{red}{L(\textbf{y}) = \{c, d\}}\] \[\text{then } \textcolor{red}{L(\textbf{xy}) = \{ac, ad, abc, abd\}}\]

\[\text{If } \textcolor{red}{L(\textbf{x}) = \{a, ab\}} \text{ and } \textcolor{red}{L(\textbf{y}) = \{c, d\}}\] \[\text{then } \textcolor{red}{L(\textbf{x} \lor \textbf{y }) = \{a, ab, c, d\}}\]

Example Regular Expressions
Right Regular Grammars