-\documentclass[titlepage]{article}
+\documentclass{article}
\usepackage{listings}
\usepackage{clean}
\usepackage{spl}
+\usepackage{hyperref}
\usepackage[a4paper]{geometry}
-\title{SPLC}
+\title{Compiler Construction: SPL Compiler}
\author{Pim Jager\and Mart Lubbers}
\date{\today}
\lstset{%
basicstyle=\ttfamily\footnotesize,
- breaklines
+ breaklines,
+ captionpos=b
}
\newcommand{\SPLC}{\texttt{SPLC}}
\begin{document}
\maketitle
-\section{Introduction}
-\SPLC{} is a program that, in several phases, generates \SSM{}
-assembly for a given \SPL{} program. \SPLC{} is a program that acts as a
-filter. The tool reads the standard input and the output is printed on standard
-output. By default only the generated assembly code is outputted. But if the
-user wants to inspect outputs of intermediate phases it can be done so by
-setting command line flags. Listing~\ref{lst:splchelp} shows the output for
-\texttt{spl -h}. There is also a \emph{manpage} that shows the same info.
-
-\begin{lstlisting}[label={lst:splchelp},caption={\texttt{./spl -h}}]
-Usage: spl [OPTION] [FILE]
-<splc> ::= <spl> <compiler>
-Compile spl code from FILE or stdin
-
-Options:
- --help Show this help
- --version Show the version
- --[no-]lex Lexer output(default: disabled)
- --[no-]parse Parser output(default: disabled)
- --[no-]sem Semantic analysis output(default: disabled)
- --[no-]code Code generation output(default: enabled)
-\end{lstlisting}
+\tableofcontents
+\newpage
+
+\input{intro.tex}
\input{pars.tex}