Scott Davis
Scott Davis
I had it working sort of kind of but them that way would break when it was serialized so multi-line mode = no serialization of anything The real problem isn't...
well you run php_check_syntax($file) then you tokenize it ill prototype something tomorrow and post it in a branch
and the way i was doing it was running this huge regex i made "/^(class|function|interface|foreach|etc)/" your above solution should solve the problem for classes but foreach and inline block operators...
the way i had it working for classes was it detected the { operator and } operator and tracked nested operators so making class Foo { public function __construct() {...
started working on a tokenizer class http://github.com/jetviper21/iphp/tree/b282e9ccc3d17ca333db0e807d980899f9727c0e
well i created the boolean to run a test from inside doCommand if that passes i was going to write a buffering class (that implements the state stack) that can...
Few things as im hacking through this im working on the doCommand function and was wondering why eval will not work for the main code execution so we don't need...
totally understand i didn't know you couldn't try catch an eval
just finished moving some stuff out and writing some tests going to start working on test cases for the main class so i can build out a multi line function...
i have already merged in most of bermi's changes ill get around to pulling yours down tomorrow