Brace expansion: Difference between revisions

→‎{{header|Haskell}}: Updated the 4th tstring, but the Reddit-sourced, linked, and Raku-translating grammar still seems a little off with commas.
(→‎{{header|Haskell}}: Added type signatures, disaggregated a little.)
(→‎{{header|Haskell}}: Updated the 4th tstring, but the Reddit-sourced, linked, and Raku-translating grammar still seems a little off with commas.)
Line 1,564:
showExpansion :: String -> String
showExpansion =
(<>) . (<> "\n-->\n") <*> (either show unlines . P.parse parser [])
 
parser :: P.Parsec String u [String]
Line 1,602:
, "It{{em,alic}iz,erat}e{d,}, please."
, "{,{,gotta have{ ,\\, again\\, }}more }cowbell!"
, "{}} some }{,{\\\\{ edge,edgy edge} \\,}{ cases, {here} \\\\\\\\\\}"
]</lang>
{{out}}
<pre>It{{em,alic}iz,erat}e{d,}, please.
<pre>~/{Downloads,Pictures}/*.{jpg,gif,png}
-->
~/Downloads/*.jpg
~/Downloads/*.gif
~/Downloads/*.png
~/Pictures/*.jpg
~/Pictures/*.gif
~/Pictures/*.png
 
It{{em,alic}iz,erat}e{d,}, please.
-->
Itemized, please.
Line 1,630 ⟶ 1,621:
gotta have\, again\, more cowbell!
 
{}} some }{,{\\{ edge,edgy edge} \,}{ cases, {here} \\\\\}
-->
{}} some {\\edge }{ cases, {here} \\\\\}
{}} some }{\\edgy }edge \,{ cases, {here} \\\\\}</pre>
{}} some }{\\ edge \,{ cases, {here} \\\\\}</pre>
 
=={{header|J}}==
9,659

edits