TT3: /home/abw/web/london/tt3/slides/examples/text_operators.tt3
Source
Tokens
Tree
Variables
Output
Template Source
[%
# text comparison operators
a
eq
b
a
ne
b
a
lt
b
a
gt
b
a
le
b
a
ge
b
a
cmp
b
-%]
--EOF--
Source Tokens
tag_start
@0
[%
whitespace
@2
# text comparison operators\n
variable
@36
a
whitespace
@37
text equal
@38
eq
whitespace
@40
variable
@41
b
whitespace
@42
\n
variable
@47
a
whitespace
@48
text notequal
@49
ne
whitespace
@51
variable
@52
b
whitespace
@53
\n
variable
@58
a
whitespace
@59
text lessthan
@60
lt
whitespace
@62
variable
@63
b
whitespace
@64
\n
variable
@69
a
whitespace
@70
text morethan
@71
gt
whitespace
@73
variable
@74
b
whitespace
@75
\n
variable
@80
a
whitespace
@81
text lessequal
@82
le
whitespace
@84
variable
@85
b
whitespace
@86
\n
variable
@91
a
whitespace
@92
text moreequal
@93
ge
whitespace
@95
variable
@96
b
whitespace
@97
\n
variable
@102
a
whitespace
@103
text compare
@104
cmp
whitespace
@107
variable
@108
b
whitespace
@109
\n
tag_end
@110
-%]
whitespace
@113
\n
eof
@114
Parse Tree
binary expr
@38
a eq b
variable element
@36
a
eq
variable element
@41
b
binary expr
@49
a ne b
variable element
@47
a
ne
variable element
@52
b
binary expr
@60
a lt b
variable element
@58
a
lt
variable element
@63
b
binary expr
@71
a gt b
variable element
@69
a
gt
variable element
@74
b
binary expr
@82
a le b
variable element
@80
a
le
variable element
@85
b
binary expr
@93
a ge b
variable element
@91
a
ge
variable element
@96
b
binary expr
@104
a cmp b
variable element
@102
a
cmp
variable element
@108
b
Variables Used
a
Uses
@ line 2
a
eq b
@ line 3
a
ne b
@ line 4
a
lt b
@ line 5
a
gt b
@ line 6
a
le b
@ line 7
a
ge b
@ line 8
a
cmp b
b
Uses
@ line 2
a eq
b
@ line 3
a ne
b
@ line 4
a lt
b
@ line 5
a gt
b
@ line 6
a le
b
@ line 7
a ge
b
@ line 8
a cmp
b
Generated Output
TT3 undefined data error at line 2 of /home/abw/web/london/tt3/slides/examples/text_operators.tt3:
Error:
Undefined value returned by expression: a
Source:
a eq b
^ here