3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-28 13:42:33 +01:00

Add sh, ksh and python3 languages

This commit is contained in:
Pragmatic Software 2015-01-20 10:13:09 -08:00
parent 540243764f
commit d0a007853c
3 changed files with 54 additions and 0 deletions

View 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;

View 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;

View 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;