| Acme-OSDc documentation | Contained in the Acme-OSDc distribution. |
Acme::OSDc - the OSDc programming language
use Acme::OSDc; my $OSDc = Acme::OSDc->new; my $compiled = $OSDc->compile($file); eval $compiled;
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.
A great many thanks go to:
For writing the first OSDc code generator in php5, and presenting it as a lightning talk at OSDC-AU 2006.
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.
For putting together such a fantastic conference every year!
| 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__