1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
\begin{diagram}{Programs}{programs}
\begin{mysyntdiag}
\synt{program}
\synt{program\ header}
\lit* ;
\begin{stack}\\ \synt{uses\ clause} \end{stack}
\synt{block}
\lit* .
\end{mysyntdiag}
\begin{mysyntdiag}
\synt{program\ header}
\lit*{program} \synt{identifier}
\begin{stack}\\ \lit* ( \synt{program\ parameters} \lit* )\end{stack}
\end{mysyntdiag}
\begin{mysyntdiag}
\synt{program\ parameters} \synt{identifier\ list}
\end{mysyntdiag}
\begin{mysyntdiag}
\synt{uses\ clause}
\lit*{uses}
\begin{rep}[b]
\synt{identifier}
\begin{stack}\\
\lit*{in} \synt{string\ literal}
\end{stack}
\\ \lit* ,
\end{rep} \lit* ;
\end{mysyntdiag}
\end{diagram}
|