The changes are getting rather dramatic now. - it may be better to
branch it,
Some of the major changes:
- Provisional Tree builder (using PHP_Parser)
- Function store broken out of Generator
- Compiler factory - for storing build info (like libs), and seperate
drivers for win/unix.
I've commented out the old generator code at the moment, it now
currently dumps the node tree, when you try and compile a file.
next step is probably to see if I can get the node tree to generate the
BinaryPHP C++ code.
Feel free to have a browse around.
http://devel.akbkhome.com/svn/index.php/BinaryPHP/
Regards
alan
Sean Jamieson wrote:
> Hi Alan,
> The project has been inactive for about 5 months now (as the cvs commit
> log shows), but I'd be willing to commit your changes, if you want
> create some diffs and attach them. (as long as you've tested them, and
> they work :-P)
>
> Alan Knowles wrote:
>
>> Got bored and started playing around with the source to binaryphp.
>>
>> http://devel.akbkhome.com/svn/index.php/binaryphp/
>>
>> Some of the ideas I played around with:
>>
>> http://devel.akbkhome.com/svn/index.php/binaryphp/functions.php
>> - rather than manually keep track of a big array of functions that are
>> avaiable, generate the list when you compile.. (eventually caching it..)
>>
>>
>>
>> http://www.akbkhome.com:81/svn/binaryphp/functions/mysql/mysql_connect.cpp
>>
>> - use commented headers to store dependancy info
>> //#include
>> //#library
>>
>> //#usefunction
>> ** the eventual plan for this is to allow something like this:
>>
>> //#usefunction GtkWidget::new php_gtk_wrapper_gtk_widget_new
>> #define php_gtk_wrapper_gtk_widget_new(a,b) /
>> (php_var) binphp_gtk_wrapper(gtk_widget_new((int) a, (char*) b));
>>
>>
>>
>> http://devel.akbkhome.com/svn/index.php/binaryphp/tokenizer.php
>> - small hack to make static class method calls appear as a function call.
>>
>>
>>
>> http://devel.akbkhome.com/svn/index.php/binaryphp/tokenflow.php
>> - relay function calls into the function 'manager'
>>
>> *********************************************
>>
>> Anyone know what the current status of binary php is
>>
>> The basic C++ design is quite nice, and the organization of function
>> implementation is good. the grammer parser stuff eventually needs to
>> utilize a real parser.. - but fudging the tokenizer is workable in the
>> short term..
>>
>> did you want to sign me up for cvs access..??????? - commit some of
>> this stuff..
>>
>> Regards
>> Alan
>>
>>
>>
>>
>>
>
--
Can you help out?
Need Consulting Services or Know of a Job?
http://www.akbkhome.com
|