TT3: /home/abw/web/london/tt3/slides/examples/side_effect_for.tt3
Source
Tokens
Tree
Variables
Output
Template Source
[%
for
item
in
menu
fill
menu
/
item
%]
[%
fill
menu
/
item
for
item
in
menu
%]
--EOF--
Source Tokens
tag_start
@0
[%
whitespace
@2
command for
@4
for
whitespace
@7
variable
@8
item
whitespace
@12
terminator
@13
in
whitespace
@15
variable
@16
menu
whitespace
@20
\n
command fill
@29
fill
whitespace
@33
filename
@34
menu
filename
@38
/
filename
@39
item
whitespace
@43
\n
tag_end
@44
%]
text
@46
\n\n
tag_start
@48
[%
whitespace
@50
command fill
@52
fill
whitespace
@56
filename
@57
menu
filename
@61
/
filename
@62
item
whitespace
@66
\n
command for
@75
for
whitespace
@78
variable
@79
item
whitespace
@83
terminator
@84
in
whitespace
@86
variable
@87
menu
whitespace
@91
\n
tag_end
@92
%]
text
@94
\n
eof
@95
Parse Tree
for keyword
@4
for
Item
variable element
@8
item
List
variable element
@16
menu
Then
fill keyword
@29
fill
Template
filename element
@34
menu/item
text
@46
\n\n
for keyword
@75
for
Item
variable element
@79
item
List
variable element
@87
menu
Then
fill keyword
@52
fill
Template
filename element
@57
menu/item
text
@94
\n
Variables Used
item
Uses
@ line 1
[% for
item
in menu
@ line 6
for
item
in menu
menu
Uses
@ line 1
[% for item in
menu
@ line 6
for item in
menu
Generated Output
TT3 undefined data error at line 1 of /home/abw/web/london/tt3/slides/examples/side_effect_for.tt3:
Error:
Undefined value returned by expression: menu
Source:
[% for item in menu
^ here