comparison interps/clc-intercal/CLC-INTERCAL-Base-1.-94.-2/INTERCAL/Backend/Object.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::Object;
2
3 # Back end to write object to a filehandle
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/Object.pm 1.-94.-2") =~ /\s(\S+)$/;
16
17 use Carp;
18 use Language::INTERCAL::Exporter '1.-94.-2';
19
20 use constant default_suffix => 'io';
21 use constant default_mode => 0777; # objects are not now executable
22
23 sub generate {
24 @_ == 4 || @_ == 5
25 or croak "Usage: BACKEND->generate(INTERPRETER, NAME, FILEHANDLE)";
26 my ($class, $int, $name, $filehandle, $options) = @_;
27 $int->read($filehandle);
28 }
29
30 1;