artefaktur
software engineer &        architecture

 
 
 
 

ACDK Perl


With acdk_perl, you can instrument a perl interpreter inside of your acdk application and you are able to have access to all ACDK-Objects in your perl environment.


acdk_perl provides an integration of ACDK and Perl with embedding Perl Code in ACDK and  accessing ACDK object from Perl.

In contrast to tradional glue code (XS) with acdk_perl no further code has to be written or generated to access C++ Objects from perl code.


sub foo($$)
{
  my ($string1, $string2) = @_;
  my $sb = pacdk::new("acdk/lang/StringBuffer", $string1);
  $sb->append($string2);
  return $sb->toString();
}
pacdk::peek_static("acdk/lang/System", "out")->println(foo("Hello Perl ", "from ACDK"));


With a few lines of code:

  RAPerlInterpreter pi = new APerlInterpreter();
  pi->parse("print(\"Hello Perl\");\n");
  pi->run();
an full featured Perl interpreter can be embedded into C++ code.

The  acdkperl command line perl interpreter is already prepared to have access to ACDK world.


Sub chapter pages:

ACDK Perl (acdk_perl)With acdk_perl, you can instrument a perl interpreter inside of your acdk application and you are able to have access to all ACDK-Objects in your perl environment.

Instruction how to compile and run acdk_perl.

The acdkperl executable is just a smal wrapper to the embedded acdk Perl interpreter.

acdk_perl_man contains an interface to an perl interperter and the DMI code to script ACDK objects from perl code.

This is a generic installation for ACDK packages.

ACDK is available under the LGPL license.



 
Last modified 2005-05-08 18:27 by SYSTEM By Artefaktur, Ing. Bureau Kommer