From 518f6d041fc47ca1a4d1b8af51a943f7e942085f Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 9 Apr 2015 11:04:34 -0700 Subject: [PATCH] Add Go language to compiler_vm --- modules/compiler_vm/languages/go.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 modules/compiler_vm/languages/go.pm diff --git a/modules/compiler_vm/languages/go.pm b/modules/compiler_vm/languages/go.pm new file mode 100755 index 00000000..b4403785 --- /dev/null +++ b/modules/compiler_vm/languages/go.pm @@ -0,0 +1,18 @@ +#!/usr/bin/env perl + +use warnings; +use strict; + +package go; +use parent '_default'; + +sub initialize { + my ($self, %conf) = @_; + + $self->{sourcefile} = 'prog.go'; + $self->{execfile} = 'prog'; + $self->{default_options} = ''; + $self->{cmdline} = 'golang-go $options run $sourcefile'; +} + +1;