From 96f1ac4e657145cf6ba614b8b7c9058b6524a448 Mon Sep 17 00:00:00 2001 From: User <> Date: Thu, 6 Apr 2017 23:20:52 +0200 Subject: [PATCH] report template --- doc/verslag-beschrijving.tex | 25 ++++++++++++ doc/verslag-conclusies.tex | 29 ++++++++++++++ doc/verslag-grammatica.tex | 2 + doc/verslag-problemen.tex | 2 + doc/verslag-samenvatting.tex | 1 + doc/verslag-software.tex | 4 ++ doc/verslag-testprogramma.tex | 3 ++ doc/verslag-tests.tex | 6 +++ doc/verslag-walker.tex | 2 + doc/verslag.tex | 72 +++++++++++++++++++++++++++++++++++ 10 files changed, 146 insertions(+) create mode 100644 doc/verslag-beschrijving.tex create mode 100644 doc/verslag-conclusies.tex create mode 100644 doc/verslag-grammatica.tex create mode 100644 doc/verslag-problemen.tex create mode 100644 doc/verslag-samenvatting.tex create mode 100644 doc/verslag-software.tex create mode 100644 doc/verslag-testprogramma.tex create mode 100644 doc/verslag-tests.tex create mode 100644 doc/verslag-walker.tex create mode 100644 doc/verslag.tex diff --git a/doc/verslag-beschrijving.tex b/doc/verslag-beschrijving.tex new file mode 100644 index 0000000..0ea1898 --- /dev/null +++ b/doc/verslag-beschrijving.tex @@ -0,0 +1,25 @@ +% Detailed language description. A systematic description of the features of your language, for each +% feature specifying +% – Syntax, including one or more examples; +% – Usage: how should the feature be used? Are there any typing or other restrictions? +% – Semantics: what does the feature do? How will it be executed? +% – Code generation: what kind of target code is generated for the feature? +% You may make use of your ANTLR grammar as a basis for this description, but note that not every +% rule necessarily corresponds to a language feature. + + +\subsection{} + +\subsubsection{Syntax} +\begin{lstlisting}[style=ANTLR] +\end{lstlisting} + +\subsubsection{Gebruik} +%hoe gebruik je het? wat zijn de typerestricties? + +\subsubsection{Semantiek} +%semantiek + +\subsubsection{Codegeneratie} +%wat voor ILOC wordt er gegenereerd voor deze functie? + diff --git a/doc/verslag-conclusies.tex b/doc/verslag-conclusies.tex new file mode 100644 index 0000000..60e2287 --- /dev/null +++ b/doc/verslag-conclusies.tex @@ -0,0 +1,29 @@ + + +% verslag-samenvatting.tex + + +% verslag-problemen.tex + + +% verslag-beschrijving.tex + + +% verslag-software.tex + + +% verslag-tests.tex + + +% verslag-conclusies.tex + + + +% verslag-grammatica.tex + + +% verslag-walker.tex + + +% verslag-testprogramma.tex + diff --git a/doc/verslag-grammatica.tex b/doc/verslag-grammatica.tex new file mode 100644 index 0000000..d5cdd7d --- /dev/null +++ b/doc/verslag-grammatica.tex @@ -0,0 +1,2 @@ +\begin{lstlisting}[style=ANTLR] +\end{lstlisting} diff --git a/doc/verslag-problemen.tex b/doc/verslag-problemen.tex new file mode 100644 index 0000000..e64d307 --- /dev/null +++ b/doc/verslag-problemen.tex @@ -0,0 +1,2 @@ +% Problems and solutions. Summary of problems you encountered and how you solved them (max. two +% pages). diff --git a/doc/verslag-samenvatting.tex b/doc/verslag-samenvatting.tex new file mode 100644 index 0000000..03cfa99 --- /dev/null +++ b/doc/verslag-samenvatting.tex @@ -0,0 +1 @@ +% Summary of the main features of your programming language (max. 1 page) diff --git a/doc/verslag-software.tex b/doc/verslag-software.tex new file mode 100644 index 0000000..a387c55 --- /dev/null +++ b/doc/verslag-software.tex @@ -0,0 +1,4 @@ +% Description of the software: Summary of the JAVA classes you implemented; for instance, for symbol +% table management, type checking, code generation, error handling, etc. In your description, rely +% on the concepts and terminology you learned during the course, such as synthesised and inherited +% attributes, tree listeners and visitors. diff --git a/doc/verslag-testprogramma.tex b/doc/verslag-testprogramma.tex new file mode 100644 index 0000000..2058202 --- /dev/null +++ b/doc/verslag-testprogramma.tex @@ -0,0 +1,3 @@ +% Extended test program. The listing of one (correct) extended test program, as well as the generated +% target code for that program and one or more example executions showing the correct functioning of +% the generated code. diff --git a/doc/verslag-tests.tex b/doc/verslag-tests.tex new file mode 100644 index 0000000..27203a4 --- /dev/null +++ b/doc/verslag-tests.tex @@ -0,0 +1,6 @@ +% Test plan and results. Discussion of the correctness test, using the criteria described in �D.5. You +% should provide a set of test programs demonstrating the correct functioning of your compiler. The test +% set should contain, next to programs testing the various language featurs, also programs containing +% syntactic, semantic or run-time errors. +% All tests should be provided as part of the zip-file. One test programshould be included as an appendix +% in the report (see below). diff --git a/doc/verslag-walker.tex b/doc/verslag-walker.tex new file mode 100644 index 0000000..0224765 --- /dev/null +++ b/doc/verslag-walker.tex @@ -0,0 +1,2 @@ +% All ANTLR tree walkers (listeners and visitors). The complete listing of each implementation of a +% tree listener or tree visitor for your grammar. diff --git a/doc/verslag.tex b/doc/verslag.tex new file mode 100644 index 0000000..ca600ca --- /dev/null +++ b/doc/verslag.tex @@ -0,0 +1,72 @@ +\documentclass[a4paper]{article} +\usepackage[margin=1in]{geometry} +\usepackage{graphicx} +\usepackage{pdfpages} +\usepackage[dutch]{babel} +\usepackage{amsmath} +\usepackage{amsfonts} +\usepackage[scientific-notation=true,round-precision=5,round-mode=figures]{siunitx} +\usepackage{listings}% http://ctan.org/pkg/listings +\lstset{ + basicstyle=\ttfamily, + mathescape, + frame=single +} + +\lstdefinestyle{ANTLR}{ + literate=*, + basicstyle=\small\ttfamily\color{black}, + breaklines=true, + morestring=[b][\color{blue}\ttfamily]', + moredelim=*[s][\color{black}\ttfamily]{options}{\}}, + moredelim=[s][\color{blue}\ttfamily]{\[}{\]}, + moredelim=[s][\color{magenta}\ttfamily]{<}{>}, + commentstyle={\color{gray}\itshape}, + morecomment=[l]{//}, + morecomment=[l][\color{gray}]\#, + emph={ + grammar,skip; + },emphstyle={\color{magenta}\ttfamily}, + alsoletter={:,|,;,->,.}, + morekeywords={:,|,;,->,.}, + keywordstyle={\color{red}\bfseries}, +} + +\begin{document} +\title{Verslag Vertalterbouwproject} +\maketitle +\vfill +\author{Frank Wibbelink (s1184725)} +\newpage + + +\section{Samenvatting} +\input{verslag-samenvatting.tex} + +\section{Problemen en oplossingen} +\input{verslag-problemen.tex} + +\section{Beschrijving van de taal} +\input{verslag-beschrijving.tex} + +\section{Programmabeschrijving} +\input{verslag-software.tex} + +\section{Tests} +\input{verslag-tests.tex} + +\section{Conclusies} +\input{verslag-conclusies.tex} + +\newpage +\appendix +\section{ANTLR-grammatica's} +\input{verslag-grammatica.tex} + +\section{ANTLR-walkers} +\input{verslag-walker.tex} + +\section{Testprogramma} +\input{verslag-testprogramma.tex} + +\end{document}