Hash :
f680ee70
Author :
Date :
2017-10-10T15:05:49
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
each val, index in [1,2,3]
if foo
else if bar
else
unless foo
while n < 4
case foo
when "bar"
default
----------------------------------------------------
[
["flow-control", [
["each", [
["keyword", "each"],
" val",
["punctuation", ","],
" index ",
["keyword", "in"]
]],
["punctuation", "["],
["number", "1"],
["punctuation", ","],
["number", "2"],
["punctuation", ","],
["number", "3"],
["punctuation", "]"]
]],
["flow-control", [
["branch", "if"],
" foo"
]],
["flow-control", [
["branch", "else"],
["keyword", "if"],
" bar"
]],
["flow-control", [
["branch", "else"]
]],
["flow-control", [
["branch", "unless"],
" foo"
]],
["flow-control", [
["branch", "while"],
" n ",
["operator", "<"],
["number", "4"]
]],
["flow-control", [
["branch", "case"],
" foo"
]],
["flow-control", [
["branch", "when"],
["string", "\"bar\""]
]],
["flow-control", [
["branch", "default"]
]]
]
----------------------------------------------------
Checks for all flow-control structures.