Execute Brain****/Raku: Difference between revisions
m
No need to bless self. Make into a single runnable file.
(constructor can't initialize a private variable for some reason) |
Thundergnat (talk | contribs) m (No need to bless self. Make into a single runnable file.) |
||
Line 1:
{{works with|Rakudo|2018.03}}
<lang perl6>class BFInterpreter {
has @.code;
Line 8 ⟶ 9:
method new (Str $code) {
BFInterpreter.bless(
}
Line 46 ⟶ 47:
}
}
}
# Test: "Hello World" program:
[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.
|