2017 © Pedro Peláez
 

library ilias

Naive LISP implementation in PHP.

image

igorw/ilias

Naive LISP implementation in PHP.

  • Monday, October 28, 2013
  • by igorw
  • Repository
  • 4 Watchers
  • 22 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Ilias

Naive LISP implementation in PHP. For something more complete, check out Lisphp., (*1)

Check out the s-expression blog posts explaining the implementation of Ilias., (*2)

Usage

use Igorw\Ilias\Program;
use Igorw\Ilias\Lexer;
use Igorw\Ilias\Reader;
use Igorw\Ilias\FormTreeBuilder;
use Igorw\Ilias\Walker;
use Igorw\Ilias\Environment;

$program = new Program(
    new Lexer(),
    new Reader(),
    new FormTreeBuilder(),
    new Walker()
);

$env = Environment::standard();
$value = $program->evaluate($env, '(+ 1 2)');
var_dump($value);

will output:, (*3)

int(3)

The Versions

28/10 2013

dev-master

9999999-dev

Naive LISP implementation in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

lisp

29/01 2013

dev-autoload

dev-autoload

Naive LISP implementation in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

lisp