]> iEval git - gruntmaster-daemon.git/commitdiff
Add Oberon
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 4 Feb 2016 15:34:50 +0000 (15:34 +0000)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 4 Feb 2016 15:34:50 +0000 (15:34 +0000)
gruntmaster-compile
lib/Gruntmaster/Daemon.pm
t/01-jobs.t
t/problems/hello/tests/oberon/meta.yml [new file with mode: 0644]
t/problems/hello/tests/oberon/prog.m [new file with mode: 0644]

index be5dab5c3bccd03a3076c4061ee41c0dc078b0f7..adf2149705ee174356ed7d1912d5c6fbac64acd9 100755 (executable)
@@ -30,6 +30,7 @@ given ($format){
        exec 'go', qw/build -compiler gccgo/, $name, when 'GCCGO';
        exec 'ghc', qw/-DONLINE_JUDGE -Wall -O2 -o/, $basename, $name when 'HASKELL';
        exec 'rustc', qw/-O -o/, $basename, $name when 'RUST';
+       exec 'obc', qw/-x -o/, $basename, $name when 'OBERON';
        exec 'ocamlc', qw/-o/, $basename, $name when 'OCAML';
        exec 'dmd', qw/-version=ONLINE_JUDGE -O -release -inline -noboundscheck/, $name when 'D';
 
@@ -124,6 +125,10 @@ Compile commands for each format:
 
   ocamlc -o $output $input
 
+=item OBERON
+
+  obc -x -o $output $input
+
 =item RUST
 
   rustc -O -o $output $input
index 7189c84185b9a4b343e1c4c78ea4ebd1366c0a3c..8e6cbf38d557ca3438a619f71d7bed9ae8981b11 100644 (file)
@@ -29,6 +29,7 @@ use constant FORMAT_EXTENSION => {
        JAVA => 'java',
        JULIA => 'jl',
        MONO => 'cs',
+       OBERON => 'm',
        OCAML => 'ml',
        PASCAL => 'pas',
        PERL => 'pl',
index 2cb1eb19ed57b6da83d5e5dcea85aa38e306a83d..3f00b3d0b90f8c81ba6af2b276b9f5cc13f327e9 100644 (file)
@@ -36,6 +36,7 @@ use constant COMPILER => {
           PYTHON python2.7
           RUBY ruby
           RUST rustc
+          OBERON obc
           OCAML ocaml
           SBCL sbcl/};
 
diff --git a/t/problems/hello/tests/oberon/meta.yml b/t/problems/hello/tests/oberon/meta.yml
new file mode 100644 (file)
index 0000000..1c95834
--- /dev/null
@@ -0,0 +1,7 @@
+test_name: Oberon
+test_description: Hello world in Oberon
+problem: hello
+files:
+  prog:
+    format: OBERON
+    name: prog.m
diff --git a/t/problems/hello/tests/oberon/prog.m b/t/problems/hello/tests/oberon/prog.m
new file mode 100644 (file)
index 0000000..e67028f
--- /dev/null
@@ -0,0 +1,8 @@
+MODULE prog;
+
+IMPORT Out;
+
+BEGIN
+  Out.String("Hello World!");
+  Out.Ln
+END prog.
This page took 0.032157 seconds and 4 git commands to generate.