Re: Re: cvs: pear /PHP_Parser/Parser Core.jay

From: Date: Fri, 21 May 2004 03:22:17 +0000
Subject: Re: Re: cvs: pear /PHP_Parser/Parser Core.jay
References: 1 2  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-19710@lists.php.net to get a copy of this message
Alan - this doesn't make much sense - Core.jay is based on PHP4's zend_language_parser.y, and so can't parse interfaces at all.
Unfortunatly parseString produces an error if it's not there. I think
the only course of action is to completely remove Core.php/Core.jay. The unit tests *only* test Structure.php, and I have not done any work on Core.jay at all, it is simply the original code from way back when.
It works now. -
Making it the default parser is a mistake that will be regrettable very soon, not even later.
Yeah - changing to Structure/Structure is probably a good idea. - however, I need the old tokenizer to work. - so it needs to be autoloaded somehow..
Of course, it might be best if we have a discussion on where PHP_Parser is going - were you thinking PHP4-only parser in Core.php, and PHP5-only parser in Structure.php?
All i need is for it to work with my other jay file - If I get time I'll try and fix it to work with the structure tokenizer. In which case we can delete them. Regards Alan
Greg
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.cvs (#19710) next »