| 1 |
<# |
| 2 |
for (var i = 0; i < 10; i++) |
| 3 |
{ |
| 4 |
if (i % 2 == 0) |
| 5 |
{ |
| 6 |
#> |
| 7 |
The number <#= i #> is even. |
| 8 |
<# |
| 9 |
} |
| 10 |
} |
| 11 |
#> |
| 12 |
|
| 13 |
---------------------------------------------------- |
| 14 |
|
| 15 |
[ |
| 16 |
["block", [ |
| 17 |
["standard", [ |
| 18 |
["delimiter", "<#"], |
| 19 |
["content", [ |
| 20 |
["keyword", "for"], |
| 21 |
["punctuation", "("], |
| 22 |
["class-name", [ |
| 23 |
["keyword", "var"] |
| 24 |
]], |
| 25 |
" i ", |
| 26 |
["operator", "="], |
| 27 |
["number", "0"], |
| 28 |
["punctuation", ";"], |
| 29 |
" i ", |
| 30 |
["operator", "<"], |
| 31 |
["number", "10"], |
| 32 |
["punctuation", ";"], |
| 33 |
" i", |
| 34 |
["operator", "++"], |
| 35 |
["punctuation", ")"], |
| 36 |
|
| 37 |
["punctuation", "{"], |
| 38 |
|
| 39 |
["keyword", "if"], |
| 40 |
["punctuation", "("], |
| 41 |
"i ", |
| 42 |
["operator", "%"], |
| 43 |
["number", "2"], |
| 44 |
["operator", "=="], |
| 45 |
["number", "0"], |
| 46 |
["punctuation", ")"], |
| 47 |
|
| 48 |
["punctuation", "{"] |
| 49 |
]], |
| 50 |
["delimiter", "#>"] |
| 51 |
]] |
| 52 |
]], |
| 53 |
|
| 54 |
"\r\nThe number ", |
| 55 |
["block", [ |
| 56 |
["expression", [ |
| 57 |
["delimiter", "<#="], |
| 58 |
["content", [" i "]], |
| 59 |
["delimiter", "#>"] |
| 60 |
]] |
| 61 |
]], |
| 62 |
" is even.\r\n", |
| 63 |
|
| 64 |
["block", [ |
| 65 |
["standard", [ |
| 66 |
["delimiter", "<#"], |
| 67 |
["content", [ |
| 68 |
["punctuation", "}"], |
| 69 |
["punctuation", "}"] |
| 70 |
]], |
| 71 |
["delimiter", "#>"] |
| 72 |
]] |
| 73 |
]] |
| 74 |
] |
| 75 |
|
| 76 |
---------------------------------------------------- |
| 77 |
|
| 78 |
Checks for standard control blocks. |