Scriptor / pharen

Lisp to PHP Compiler
http://pharen.org
BSD 3-Clause "New" or "Revised" License
218 stars 31 forks source link

Compiling to a class #22

Open sminnee opened 13 years ago

sminnee commented 13 years ago

It would be nice if the generated code could inject all of its functions into a class, calling all the methods as $this->fn_name().

The rationale is that the generated class could then be more easily embedded inside another application.

Is this something that would be a huge amount of work?