Brace expansion: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(→‎{{header|TXR}}: Remove a pointless optimization from the parser, and the substitution of the : symbol. The substitution would be necessary if we de-escaped escaped commas.)
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
(One intermediate revision by one other user not shown)
Line 4,989:
 
templates collateSequence
data part <[]|''> local
@: [''];
$... -> #
$@!
when <´part´ '.*'> do
def part: $;
@: [$@... -> '$;$part;'];
Line 5,039 ⟶ 5,040:
{}} some }{,{\\ edge \,}{ cases, {here} \\\\\}
</pre>
 
=={{header|Tcl}}==
{{works with|Tcl|8.6}}
Line 5,360 ⟶ 5,362:
=={{header|Wren}}==
{{trans|Python}}
<syntaxhighlight lang="ecmascriptwren">var getGroup // forward declaration
 
var getItem = Fn.new { |s, depth|
Line 5,455 ⟶ 5,457:
{}} some }{,{\\ edge \,}{ cases, {here} \\\\\}
</pre>
 
=={{header|zkl}}==
This is a two pass algorithm (2*length(string)), one pass to find valid {} pairs, the next pass to expand them.
9,476

edits