Inline::Interp

Make Inline modules for interpreted languages easily
Download

Inline::Interp Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Cal Henderson
  • Publisher web site:
  • http://search.cpan.org/~iamcal/

Inline::Interp Tags


Inline::Interp Description

Make Inline modules for interpreted languages easily Inline::Interp is a Perl module that allows you to easily create an Inline module for an interpreted language. It handles all the messy Inline internals for you and provides a simple character IO layer.SYNOPSIS package Inline::Foo; require Inline; require Inline::Interp; @ISA = qw(Inline Inline::Interp); sub register { return { language => 'Foo', aliases => , type => 'interpreted', suffix => 'foo', }; } sub do_load { my ($funcs, $code) = @_; while($code =~ m/function(s+)(+)(s*){(.*?)}/isg){ Inline::Interp::add_func($funcs, $2, $4); } } sub load { Inline::Interp::load(@_); } sub do_run { my ($code, $io) = @_; # evaluate $code here # output a char Inline::Interp::output_char($io, 'A'); # input a char my $in = Inline::Interp::input_char($io); } Requirements: · Perl


Inline::Interp Related Software