Mercurial > repo
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/interps/clc-intercal/CLC-INTERCAL-Base-1.-94.-2/INTERCAL/Backend/Object.pm Sun Dec 09 19:30:08 2012 +0000 @@ -0,0 +1,30 @@ +package Language::INTERCAL::Backend::Object; + +# Back end to write object to a filehandle + +# This file is part of CLC-INTERCAL + +# Copyright (c) 2006-2008 Claudio Calvelli, all rights reserved. + +# CLC-INTERCAL is copyrighted software. However, permission to use, modify, +# and distribute it is granted provided that the conditions set out in the +# licence agreement are met. See files README and COPYING in the distribution. + +use strict; +use vars qw($VERSION $PERVERSION); +($VERSION) = ($PERVERSION = "CLC-INTERCAL/Base INTERCAL/Backend/Object.pm 1.-94.-2") =~ /\s(\S+)$/; + +use Carp; +use Language::INTERCAL::Exporter '1.-94.-2'; + +use constant default_suffix => 'io'; +use constant default_mode => 0777; # objects are not now executable + +sub generate { + @_ == 4 || @_ == 5 + or croak "Usage: BACKEND->generate(INTERPRETER, NAME, FILEHANDLE)"; + my ($class, $int, $name, $filehandle, $options) = @_; + $int->read($filehandle); +} + +1;