typing: explicit syntactic sugar for record types

This commit is contained in:
regnat 2017-04-07 11:24:13 +02:00
parent 50400c43e4
commit 8ca99c4f03

View File

@ -8,6 +8,7 @@
\section{Types}
\begin{grammar}
\bfseries
<t> ::= \c/ \| \t/ $\bm{\rightarrow}$ \t/
\alt \t/ $\bm{\vee}$ \t/ \| \t/ $\bm{\wedge}$ \t/ \| \t/ $\bm{\backslash}$ \t/
\alt [\meta{R}]
@ -21,6 +22,11 @@
<> ::= \t/ % No polymorphism for now
\end{grammar}
\textbf{\{ \s/ = \u/; \ldots{}; \s/ = \u/; \}} (\emph{resp}. \textbf{\{ \s/ =
\u/; \ldots{}; \s/ = \u/; .. \}}) is syntactic sugar for \textbf{\{ \s/ = \u/;
\ldots{}; \s/ = \u/; _ = $\undef$ \}} (\emph{resp}. \textbf{\{ \s/ = \u/;
\ldots{}; \s/ = \u/; _ = \textmd{\emph{Any}} \}})
\section{Typing rules}
\subsection{$\lambda\&$-calculus}
\begin{mathpar}