News for hackers. Stuff that matters.
Re:Lisphp is a Lisp dialect written in PHP. by jcw on Monday July 05, 2010 @02:13PM (#1488739)
Has anyone tried running code with this yet? This results in errors:

  <?php
  require_once('Lisphp.php');
  $env = Lisphp_Environment::full();
  $program = new Lisphp_Program("(echo 1)");
  $program->execute($env);
  ?>
Re:Lisphp is a Lisp dialect written in PHP. by dahlia on Monday July 05, 2010 @10:28PM (#1489767)
Try this:

  $env['echo'] = new Lisphp_Runtime_PHPFunction(create_function('', '
      $args = func_get_args();
      foreach ($args as $arg) echo $arg;
  '));
after:

  $env = Lisphp_Environment::full();
Re:Lisphp is a Lisp dialect written in PHP. by jcw on Tuesday July 06, 2010 @08:23AM (#1490743)
Thanks! From the 'try lisphp' page, I assumed that echo was built in.