Skip to content

Instantly share code, notes, and snippets.

@stephpy
Created August 26, 2013 08:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephpy/6339377 to your computer and use it in GitHub Desktop.
Save stephpy/6339377 to your computer and use it in GitHub Desktop.
hoa\math
<?php
$operation = '1 + 1'; // ...
$visitor = new \Hoa\Math\Visitor\Arithmetic();
$compiler = \Hoa\Compiler\Llk::load(
new \Hoa\File\Read('hoa://Library/Math/Arithmetic.pp')
);
$visitor->visit(
$compiler->parse($operation)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment