summaryrefslogtreecommitdiff
path: root/rulesput.tex
blob: 371cae6e49b12a63b9410b57c5f47276632d7a17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
% vim: set spelllang=nl:
\subsection{\texttt{Put}}
\label{sec:rules:put}

\begin{quote}
	p - Pops a variable name from the stack, pops a value from the stack, and
	assigns that value to the variable name.
\end{quote}

We halen twee strings van de stack en gebruiken $\putop$ om een nieuwe variable
store te krijgen. Hiermee wordt de rest van het programma uitgevoerd. Als er
minder dan twee elementen op de stack staan kan deze regel niet worden
toegepast, aangezien $\popop$ een partiƫle functie is.
\therputns%