summaryrefslogtreecommitdiff
path: root/ruleshead.tex
blob: 3931619a3816c4523012ad91c080b67675f93744 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% vim: set spelllang=nl:
\subsection{\texttt{Head}}
\label{sec:rules:head}

\begin{quote}
	h - Pops a string from the stack, and pushes its head, ie [sic] the first
	character. This causes an error if used on the empty string.
\end{quote}

In plaats van het geven van een error kiezen we ervoor te voorkomen dat we een
afleidingsboom kunnen maken wanneer $\StmHead$ wordt uitgevoerd op het moment
dat het element bovenop de stack de lege string is.

Dit geeft de volgende regel:
\therheadns%