Balanced brackets: Difference between revisions
Content added Content deleted
Not a robot (talk | contribs) (→{{header|APL}}: missing brackets) |
Drkameleon (talk | contribs) No edit summary |
||
Line 888: | Line 888: | ||
=={{header|Arturo}}== |
=={{header|Arturo}}== |
||
⚫ | |||
⚫ | |||
cnt: 0 |
cnt: 0 |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
else [ |
|||
if ch="[" -> cnt: cnt+1 |
|||
] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
} { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
|||
⚫ | |||
⚫ | |||
prints str |
prints str |
||
⚫ | |||
} |
|||
⚫ | |||
{{out}} |
|||
⚫ | |||
<pre>[] OK |
|||
else -> print " Not OK" |
|||
[[]] OK |
|||
⚫ | |||
[[]]][ Not OK |
|||
]]][[]]] Not OK |
|||
[[][][][[] Not OK |
|||
[[][[[[]]]]] OK |
|||
[[][[][[]][[][ Not OK |
|||
]]][[[][[]][[[]] Not OK |
|||
]]][][[[][][][]]]] Not OK</pre> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |