From: Mart Lubbers Date: Thu, 26 May 2016 19:44:30 +0000 (+0200) Subject: starten met p4 presentatie X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=529b8d123295be45f9b534ef9630b89a31432d33;p=cc1516.git starten met p4 presentatie --- diff --git a/deliverables/p4/Makefile b/deliverables/p4/Makefile new file mode 100644 index 0000000..d29590b --- /dev/null +++ b/deliverables/p4/Makefile @@ -0,0 +1,14 @@ +LATEX:=pdflatex +LATEXFLAGS:= +DOCUMENT:=p4 + +.PHONY: all clean + +all: $(DOCUMENT).pdf + +%.pdf: %.tex + $(LATEX) $(LATEXFLAGS) $< + $(LATEX) $(LATEXFLAGS) $< + +clean: + $(RM) -v $(addprefix $(DOCUMENT).,aux log nav out snm toc vrb pdf) diff --git a/deliverables/p4/clean.sty b/deliverables/p4/clean.sty new file mode 100644 index 0000000..046c239 --- /dev/null +++ b/deliverables/p4/clean.sty @@ -0,0 +1,70 @@ +\usepackage{listings} + +\lstdefinelanguage{Clean}{% + alsoletter={ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_`1234567890}, + alsoletter={~!@\#$\%^\&*-+=?<>:|\\.}, + morekeywords={generic,implementation,definition,dynamic,module,import,from,where,in,of,case,let,infix,infixr,infixl,class,instance,with,if,derive}, + sensitive=true, + morecomment=[l]{//}, + morecomment=[n]{/*}{*/}, + morestring=[b]", + morestring=[b]', + emptylines=1, + basicstyle=\small, + identifierstyle=\small\ttfamily, + commentstyle=\itshape, + keywordstyle=\bfseries, + stringstyle=\ttfamily, + numbers=none, + showstringspaces=false, + basewidth=0.45em, + columns=[c]fixed, + keepspaces=true, + breaklines=false, + tabsize=4, + texcl=true, + escapeinside={(\#}{\#)}, + literate=% + % Basic Clean constructs + {\\}{{$\lambda\:$}}1 + {A.}{{$\forall\;\,$}}1 + {E.}{{$\exists\;\,$}}1 + {>}{{$>$}}1 + {<}{{$<$}}1 + {<=}{{$\leq$}}1 + {>=}{{$\geq$}}1 + {<>}{{$\neq$}}1 + {->}{{$\rightarrow$}}2 + {<-}{{$\leftarrow$}}1 + {=}{{$=$}}1 + {~}{{$\sim$}}1 + {\#}{{$\sharp$}}1 + {\{|}{{$\{\!|\!$}}1 + {|\}}{{$\!|\!\}$}}1 + {:=}{{$:=$}}2 + {==}{{$==$}}2 + {++}{{$+\!\!+$}}2 + {+++}{{$+\!\!\!\!+\!\!\!\!+$}}2 + {:==}{{$:==$}}3 + {\{|*|\}}{{$\{\!|\!\!\star\!\!|\!\}$}}3 + % + % Basic iTask constructs + {>||>}{{$\triangleright\triangleright$}}2 + {>>=}{{\texttt{>>=}}}3 + {>>|}{{\texttt{>>|}}}3 + {?>>}{{\texttt{?>>}}}3 + {!>>}{{\texttt{!>>}}}3 + {-||-}{{\texttt{-||-}}}4 + {.||.}{{\texttt{.||.}}}4 + {.&&.}{{\texttt{.\&\&.}}}4 +} + +\newcommand{\CleanInline}[1]{\lstinline[language=Clean]¦#1¦} +\newcommand{\CI}[1]{\CleanInline{#1}} + +\lstdefinestyle{numbers}{numbers=left, stepnumber=1, numberstyle=\tiny, numbersep=5pt} + +\lstnewenvironment{CleanCode}{\lstset{language=Clean,identifierstyle=\ttfamily}}{} +\lstnewenvironment{CleanCodeN}{\lstset{language=Clean,style=numbers}}{} +\lstnewenvironment{CleanCodeB}{\lstset{language=Clean,frame=single}}{} +\lstnewenvironment{CleanCodeNB}{\lstset{language=Clean,style=numbers,frame=single}}{} diff --git a/deliverables/p4/p4.tex b/deliverables/p4/p4.tex new file mode 100644 index 0000000..382f8ee --- /dev/null +++ b/deliverables/p4/p4.tex @@ -0,0 +1,28 @@ +\documentclass{beamer} + +\usepackage{xcolor} +\usepackage{listings} +\usepackage{clean} + +\title[cc1516]{SPLC} +\subtitle{\texttt{~::= `,' `and' }} +\author[P. Jager, M. Lubbers]{Pim Jager\inst{1}\and Mart Lubbers\inst{1}} +\institute[Radboud University]{% + \inst{1}% + Computer Science: Software Science\\ + Radboud University +} +\subject{SPL Compiler} +\date{\today} + +\lstset{% + basicstyle=\ttfamily\footnotesize, + breaklines +} + +\usetheme{Warsaw} +\usecolortheme{beaver} + +\begin{document} +\frame{\titlepage} +\end{document}