Execute Brain****/Raku: Difference between revisions

Content added Content deleted
m (Thundergnat moved page Execute Brain****/Perl 6 to Execute Brain****/Raku: Name of the language has changed)
m (Fixed syntax highlighting and added line numbers.)
 
Line 1: Line 1:
{{works with|Rakudo|2018.03}}
{{works with|Rakudo|2018.03}}
<lang perl6>class BFInterpreter {
<syntaxhighlight lang="raku" line>class BFInterpreter {
has @.code;
has @.code;
has @!mem;
has @!mem;
Line 57: Line 57:


my $bfi = BFInterpreter.new($code);
my $bfi = BFInterpreter.new($code);
$bfi.run;
$bfi.run;</syntaxhighlight>
</lang>