TUD_MATH_BA/Material/prog_tree.tex

33 lines
1.1 KiB
TeX
Raw Normal View History

2018-08-14 17:17:09 +02:00
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[level/.style={sibling distance=60mm/#1}]
\node[circle,draw] (root) {\texttt{.OR.}}
child {node[circle,draw] (a) {\texttt{>=}}
child {node[circle,draw] (b) {\texttt{/}}
child {node[circle,draw] (c) {\texttt{/}}
2018-08-14 17:23:30 +02:00
child {node[] (d) {$i$}}
child {node[] (e) {$j$}}}
child {node[] (f) {$x$}}}
child {node[] (g) {$y$}}}
2018-08-14 17:17:09 +02:00
child {node[circle,draw] (h) {\texttt{.AND.}}
child {node[circle,draw] (i) {\texttt{<}}
child {node[circle,draw] (j) {\texttt{-}}
child {node[circle,draw] (k) {\texttt{/}}
2018-08-14 17:23:30 +02:00
child {node[] (l) {$y$}}
child {node[] (m) {$z$}}}}
2018-08-14 17:17:09 +02:00
child {node[circle,draw] (q) {\texttt{-}}
child {node[circle,draw] (p) {\texttt{**}}
2018-08-14 17:23:30 +02:00
child {node[] (n) {$x$}}
child {node[circle,draw] (o) {\texttt{**}}
child {node[] (w) {3}}
child {node[] (x) {2}}}}}}
2018-08-14 17:17:09 +02:00
child {node[circle,draw] (r) {\texttt{<=}}
2018-08-14 17:23:30 +02:00
child {node[] (s) {$char$}}
2018-08-14 17:17:09 +02:00
child {node[circle,draw] (t) {\texttt{//}}
2018-08-14 17:23:30 +02:00
child {node[] (u) {'p'}}
child {node[] (v) {'eter'}}}}};
2018-08-14 17:17:09 +02:00
\end{tikzpicture}
\end{document}