Acme::OSDc - the OSDc programming language


Acme-OSDc documentation Contained in the Acme-OSDc distribution.

Index


Code Index:

NAME

Top

Acme::OSDc - the OSDc programming language

SYNOPSIS

Top

	use Acme::OSDc;
	my $OSDc = Acme::OSDc->new;

	my $compiled = $OSDc->compile($file);

	eval $compiled;

DESCRIPTION

Top

The OSDc programming language is a transformation of the Ook programming language described at <http://www.dangermouse.net/esoteric/ook.html>. It was first presented at the Australian Open Source Deevloper's conference in 2006.

THANKS

Top

A great many thanks go to:

Jon Oxer

For writing the first OSDc code generator in php5, and presenting it as a lightning talk at OSDC-AU 2006.

Jarkko Hietaniemi

For writing the Acme::Ook module upon which this is based, and for publishing a patched version to CPAN with less than 24 hours notice so I could write my lightning talk.

The OSDC-AU committee

For putting together such a fantastic conference every year!

SEE ALSO

Top

Acme::Ook http://www.osdc.com.au/


Acme-OSDc documentation Contained in the Acme-OSDc distribution.

package Acme::OSDc;

use base 'Acme::Ook';

my %OSDc = &{"Acme::Ook::O?"};

use strict;
use warnings;

our $VERSION = '1.01';

sub _compile {
    shift;
    chomp $_[0];
    $_[0] =~ s/\s*(OSDc(.)\s*OSDc(.)\s*|(\#.*)|\S.*)/$;=$OSDc{$2||@@}{$3};$;?$;:defined$4?"$4\n":die"OSDc? $_[1]:$_[2] '$1'\n"/eg;
    return $_[0];
}

1;

__END__