(PHP . REP) home page
Idea behind the project
PHP have many libs and
REP is powerfull...
(well how could it be otherwise - it's a lisp dialect after all).
So, let's join them.
How it works
Two functions are defined. One for PHP and one for REP. I suppose
thise two are the core minimum.
-
rep_eval(rep_code) for php
-
(eval-php php-code) for rep
Example that combines both:
<?
$a=3;
$b=5;
$r=rep_eval('(+ 7 (eval-php "$a") (eval-php "$b"))');
echo "Doing the math : $a + $b + 7 is $r<br/>\n";
?>
That will produce (as one might expect):
Doing the math : 3 + 5 + 7 is 15<br/>
As you see thise two functions perform data conversions
after the given code evaluates. PHP's and librep's data
structures are automatically converted.
Where do I get it ?
Download available at sourceforge.
You can go directly to download section.
It's possible to
view CVS online.
Current project status
Making (very) slow progress. I don't have much time.
Thanks to
Legal
Copyright 2003 Ilya Sher.
The software is GPL licensed.
Last update : 2004-02-23 19:28 GMT+2
Site is best viewed with graphical browsers on monitors that support colors.
Sorry, always wanted to say that :)