From 38a73250976671b42038941a540f8ba24d91d4f3 Mon Sep 17 00:00:00 2001 From: Arnaud DABY-SEESARAM Date: Thu, 15 Dec 2022 16:17:47 +0100 Subject: [PATCH] [beamer] slide 7 --- beamer/beamer.tex | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/beamer/beamer.tex b/beamer/beamer.tex index 4cb9ae5..445a780 100644 --- a/beamer/beamer.tex +++ b/beamer/beamer.tex @@ -1,6 +1,5 @@ \documentclass{beamer} \usepackage{tikz} -%\usepackage{minted} \usetikzlibrary{positioning} \usetheme{Darmstadt} @@ -43,42 +42,6 @@ \centering \includegraphics[width=.75\textwidth]{imgs/gadt.png} \end{figure} -%type _ t_var = -% | BVar: ident -> bool t_var -% | IVar: ident -> int t_var -% | RVar: ident -> real t_var -% -%type _ t_expression = -% | EVar: 'a t_var -> 'a t_expression -% | EMonOp: monop * 'a t_expression -> 'a t_expression -% | EBinOp: binop * 'a t_expression * 'a t_expression -> 'a t_expression -% | ETriOp: triop * bool t_expression * 'a t_expression * 'a t_expression -> 'a t_expression -% | EComp: compop * 'a t_expression * 'a t_expression -> bool t_expression -% | EConst: 'a const -> 'a t_expression -% | ETuple: 'a t_expression * 'b t_expression -> ('a * 'b) t_expression -% | EApp: (('a -> 'b) t_node) * 'a t_expression -> 'b t_expression -% -%and _ t_varlist = -% | NVar: 'a t_varlist -% | CVar: 'a t_var * 'b t_varlist -> ('a * 'b) t_varlist -% -%and 'a t_equation = 'a t_varlist * 'a t_expression -% -%and _ t_eqlist = -% | NEql: unit t_eqlist -% | CEql: 'a t_equation * 'b t_eqlist -> ('a * 'b) t_eqlist -% -%and _ t_node = -% | MakeNode: -% ident -% * 'i t_varlist * 'o t_varlist -% * 'l t_varlist * 'e t_eqlist -% -> ('i -> 'o) t_node -% -%type _ t_nodelist = -% | NNode: unit t_nodelist -% | CNode: ('a -> 'b) t_node * 'c t_nodelist -> (('a -> 'b) * 'c) t_nodelist -% \end{minted} \end{frame} \begin{frame} \begin{block}{Pros of using GADTs} @@ -134,7 +97,7 @@ \section{Passes} \begin{frame}{Passes} - \begin{block} + \begin{block}{Classification} The passes of our compiler are functions of taking a program and either: \begin{itemize} \item returning a program if the pass succeeded