A stack is a LIFO, last in first out, collection. Items are pushed onto the stack and then popped back off.

TMP_Stack.inc

This is a template for generating a stack of typed values. LIFO - Last in First out.

gen_StringStack.param

This provides the parameters for generating a stack of strings.

Generating:

PbReplace gen_StringStack.param

Tokens:

TVAL
The data type of each item on the stack. In this case String
VALREF
Determines how items are passed to routines. In this case since the keys are String, they are passed ByRef (which is the default if not specified).