doc-src/Codegen/Thy/pictures/architecture.tex
author haftmann
Sat, 28 Mar 2009 16:29:37 +0100
changeset 30765 3eccfc8019ba
parent 30734 ab05be086c4a
child 30836 1344132160bb
permissions -rw-r--r--
not yet fruitful tex experiments with bounding boxes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30734
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     1
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     2
\documentclass[12pt]{article}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     3
\usepackage{pgf}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     4
\usepackage{pgflibraryshapes}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     5
\usepackage{tikz}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     6
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     7
\begin{document}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     8
30765
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
     9
\thispagestyle{empty}
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    10
\setlength{\fboxrule}{0.01pt}
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    11
\setlength{\fboxsep}{4pt}
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    12
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    13
\fbox{
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    14
30734
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    15
\begin{tikzpicture}[x = 4.2cm, y = 1cm]
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    16
  \tikzstyle entity=[rounded corners, draw, thick, color = black, fill = white];
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    17
  \tikzstyle process=[ellipse, draw, thick, color = green, fill = white];
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    18
  \tikzstyle process_arrow=[->, semithick, color = green];
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    19
  \node (HOL) at (0, 4) [style=entity] {Isabelle/HOL theory};
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    20
  \node (eqn) at (2, 2) [style=entity] {code equations};
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    21
  \node (iml) at (2, 0) [style=entity] {intermediate language};
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    22
  \node (seri) at (1, 0) [style=process] {serialisation};
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    23
  \node (SML) at (0, 3) [style=entity] {SML};
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    24
  \node (OCaml) at (0, 2) [style=entity] {OCaml};
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    25
  \node (further) at (0, 1) [style=entity] {\ldots};
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    26
  \node (Haskell) at (0, 0) [style=entity] {Haskell};
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    27
  \draw [style=process_arrow] (HOL) .. controls (2, 4) ..
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    28
    node [style=process, near start] {selection}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    29
    node [style=process, near end] {preprocessing}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    30
    (eqn);
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    31
  \draw [style=process_arrow] (eqn) -- node (transl) [style=process] {translation} (iml);
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    32
  \draw [style=process_arrow] (iml) -- (seri);
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    33
  \draw [style=process_arrow] (seri) -- (SML);
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    34
  \draw [style=process_arrow] (seri) -- (OCaml);
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    35
  \draw [style=process_arrow, dashed] (seri) -- (further);
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    36
  \draw [style=process_arrow] (seri) -- (Haskell);
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    37
\end{tikzpicture}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    38
30765
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    39
}
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    40
30734
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    41
\end{document}