Execute Brain****/Raku: Difference between revisions
constructor can't initialize a private variable for some reason
No edit summary |
(constructor can't initialize a private variable for some reason) |
||
Line 1:
<lang perl6>class BFInterpreter {
has @
has @!mem;
has @!loop_stack;
Line 14:
$!c = 0;
$!m = 0;
while $!c < @
given @
when '>' { $!m++ }
when '<' { $!m-- }
Line 41:
while $depth {
$!c++;
die "unbalanced code" if $!c >= @
$depth++ if @
$depth-- if @
}
}
|