comparison interps/clc-intercal/CLC-INTERCAL-Base-1.-94.-2/INTERCAL/Backend/Run.pm @ 996:859f9b4339e6

<Gregor> tar xf egobot.tar.xz
author HackBot
date Sun, 09 Dec 2012 19:30:08 +0000
parents
children
comparison
equal deleted inserted replaced
995:6883f5911eb7 996:859f9b4339e6
1 package Language::INTERCAL::Backend::Run;
2
3 # Back end to run object in memory
4
5 # This file is part of CLC-INTERCAL
6
7 # Copyright (c) 2006-2008 Claudio Calvelli, all rights reserved.
8
9 # CLC-INTERCAL is copyrighted software. However, permission to use, modify,
10 # and distribute it is granted provided that the conditions set out in the
11 # licence agreement are met. See files README and COPYING in the distribution.
12
13 use strict;
14 use vars qw($VERSION $PERVERSION);
15 ($VERSION) = ($PERVERSION = "CLC-INTERCAL/Base INTERCAL/Backend/Run.pm 1.-94.-2") =~ /\s(\S+)$/;
16
17 use Carp;
18 use Language::INTERCAL::Exporter '1.-94.-2';
19
20 use constant default_suffix => undef; # means we don't want a file
21 use constant default_mode => undef; # means we don't want a file
22
23 sub generate {
24 @_ == 2 or @_ == 3 or @_ == 4 or @_ == 5
25 or croak "Usage: BACKEND->generate(INTERPRETER)";
26 my ($class, $int, $name, $filehandle, $options) = @_;
27 $int->start()->run()->stop();
28 }
29
30 1;