Add formats GCCGO, GOLANG, HASKELL
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 26 May 2014 18:40:53 +0000 (21:40 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 26 May 2014 18:40:53 +0000 (21:40 +0300)
gruntmaster-compile
lib/Gruntmaster/Daemon.pm
lib/Gruntmaster/Daemon/Format.pm

index 4e60096..5228bdd 100755 (executable)
@@ -21,6 +21,9 @@ if ($ret) {
                exec 'gmcs', '-d:ONLINE_JUDGE', $name when  'MONO';
                exec 'javac', $name when 'JAVA';
                exec 'fpc', qw/-dONLINE_JUDGE -O2/, $name when 'PASCAL';
+               exec 'go', qw/build -compiler gc/, $name when 'GOLANG';
+               exec 'go', qw/build -compiler gccgo/, $name, when 'GCCGO';
+               exec 'ghc', qw/-DONLINE_JUDGE -Wall -O2 -o/, $basename, $name when 'HASKELL';
                copy $name, $basename when ['PERL', 'PYTHON']
        }
 }
index b7b6e06..1c8cece 100644 (file)
@@ -23,6 +23,9 @@ use constant PAGE_SIZE => 10;
 use constant FORMAT_EXTENSION => {
        C => 'c',
        CPP => 'cpp',
+       GCCGO => 'go',
+       GOLANG => 'go',
+       HASKELL => 'hs',
        MONO => 'cs',
        JAVA => 'java',
        PASCAL => 'pas',
index dc75fa1..2bfbc1a 100644 (file)
@@ -24,7 +24,7 @@ sub command_and_args{
        my ($format, $basename) = @_;
 
        given($format) {
-               "./$basename" when [qw/C CPP PASCAL/];
+               "./$basename" when [qw/C CPP GCCGO GOLANG HASKELL PASCAL/];
                "./$basename.exe" when 'MONO';
                java => $basename when 'JAVA';
                perl => $basename when 'PERL';
This page took 0.03133 seconds and 4 git commands to generate.