2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

Haskell / Prolog

This commit is contained in:
Martin Thoma 2014-02-24 11:44:57 +01:00
parent 689ab4f5cf
commit 2306a2af2e
10 changed files with 166 additions and 24 deletions

View file

@ -7,6 +7,14 @@ befolgt.
Eine interaktive Prolog-Sitzung startet man mit \texttt{swipl}.
In Prolog definiert man Terme.
\section{Erste Schritte}
\subsection{Hello World}
Speichere folgenden Quelltext als \texttt{hello-world.pl}:
\inputminted[linenos, numbersep=5pt, tabsize=4, frame=lines, label=hello-world.hs]{prolog}{scripts/prolog/hello-world.hs}
Kompiliere ihn mit \texttt{gplc hello-world.pl}. Es wird eine
ausführbare Datei erzeugt.
\section{Syntax}
\section{Beispiele}
\subsection{Humans}