Acme::Lisp - Evals lisp code on array references
Version 0.03
use Acme::Lisp; my $lisp_code = [ qw(- 1 2 3 4) ]; eval_lisp($lisp_code) # return -8
This method receives a reference to a Perl list with lisp code, and evaluates it, returning the value obtained with the evaluation.
Currently supported clisp:
Sums values
Subtracts values
Multiply values
Divide values (at the moment, real division)
Exits que program execution (same as quit)
Quits the program execution (same as exit)
This is a concept module. If I have time, maybe I'll add some functions. If not, well, you can send me patches.
Alberto Simões, <ambs@cpan.org>
<ambs@cpan.org>
At the moment division is done as real values, and not fractions as usual on common lisp.
Please report any bugs or feature requests to bug-acme-lisp@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-acme-lisp@rt.cpan.org
Copyright 2004 Alberto Simões, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
Expected text after =item, not a bullet
Non-ASCII character seen before =encoding in 'Simões,'. Assuming CP1252
To install Acme::Lisp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::Lisp
CPAN shell
perl -MCPAN -e shell install Acme::Lisp
For more information on module installation, please visit the detailed CPAN module installation guide.