mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
Add the Brainfuck language to compiler_vm
This commit is contained in:
parent
f552695393
commit
b7fe220152
18
modules/compiler_vm/languages/bf.pm
Executable file
18
modules/compiler_vm/languages/bf.pm
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
use warnings;
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
package bf;
|
||||||
|
use parent '_default';
|
||||||
|
|
||||||
|
sub initialize {
|
||||||
|
my ($self, %conf) = @_;
|
||||||
|
|
||||||
|
$self->{sourcefile} = 'prog.bf';
|
||||||
|
$self->{execfile} = 'prog.bf';
|
||||||
|
$self->{default_options} = '';
|
||||||
|
$self->{cmdline} = 'bf $options $sourcefile';
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
Loading…
Reference in New Issue
Block a user