7.1.1.3 Output

An output terminal symbol is a terminal symbol enclosed in ‘<’ and ‘>’. A parser prepends an output terminal symbol to remaining part of a parse unit or training terminal symbol sequence. On processing a sequence of output terminal symbols, a parser prepends them to remaining part of a parse unit or training terminal symbol sequence in reverse order. The end-of-stream marker $$ cannot be an output terminal symbol.

Example

The sequence of output terminal symbols in a grammar:

<"abc"> <"def"> <"ghi">

The remaining part of training terminal symbol sequence before processing the sequence of output terminal symbols:

a b c d e f g h

The remaining part of training terminal symbol sequence after processing the sequence of output terminal symbols:

ghi def abc a b c d e f g h