mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-06 14:47:26 +02:00
Add sh, ksh and python3 languages
This commit is contained in:
parent
540243764f
commit
d0a007853c
18
modules/compiler_vm/languages/ksh.pm
Executable file
18
modules/compiler_vm/languages/ksh.pm
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
use warnings;
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
package ksh;
|
||||||
|
use parent '_default';
|
||||||
|
|
||||||
|
sub initialize {
|
||||||
|
my ($self, %conf) = @_;
|
||||||
|
|
||||||
|
$self->{sourcefile} = 'prog.ksh';
|
||||||
|
$self->{execfile} = 'prog.ksh';
|
||||||
|
$self->{default_options} = '';
|
||||||
|
$self->{cmdline} = 'ksh $options $sourcefile';
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
18
modules/compiler_vm/languages/python3.pm
Executable file
18
modules/compiler_vm/languages/python3.pm
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
use warnings;
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
package python3;
|
||||||
|
use parent '_default';
|
||||||
|
|
||||||
|
sub initialize {
|
||||||
|
my ($self, %conf) = @_;
|
||||||
|
|
||||||
|
$self->{sourcefile} = 'prog.py3';
|
||||||
|
$self->{execfile} = 'prog.py3';
|
||||||
|
$self->{default_options} = '';
|
||||||
|
$self->{cmdline} = 'python3 $options $sourcefile';
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
18
modules/compiler_vm/languages/sh.pm
Executable file
18
modules/compiler_vm/languages/sh.pm
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
use warnings;
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
package sh;
|
||||||
|
use parent '_default';
|
||||||
|
|
||||||
|
sub initialize {
|
||||||
|
my ($self, %conf) = @_;
|
||||||
|
|
||||||
|
$self->{sourcefile} = 'prog.sh';
|
||||||
|
$self->{execfile} = 'prog.sh';
|
||||||
|
$self->{default_options} = '';
|
||||||
|
$self->{cmdline} = 'sh $options $sourcefile';
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
Loading…
x
Reference in New Issue
Block a user