[wordpress] Re: [wp-hackers] Plugin metadata

Ryan King ryan at theryanking.com
Tue Mar 8 06:36:27 GMT 2005


On Mar 7, 2005, at 8:38 PM, Elliott Bäck wrote:

> Kimmo Suominen wrote:
>
>> How about wrapping the lines at under 80 characters?  It would also 
>> make
>> it easier to read the text files from a web server.
>>
>
> Wrapping the files will make it slightly more annoying to parse, since 
> the regular expressions will have to span multiple lines.  Speakin of 
> parsing, does anyone know if there is an equivalent of yacc/bison/CUP 
> for php?  If there were, we could have *real* parsers in WP, rather 
> than these regex hacks.  There's something nice about a formal 
> grammar...

Well, there's a proposal for a PEAR package called Lexer: 
http://pear.php.net/pepr/pepr-proposal-show.php?id=197

Also, I believe there is a lexer class in the php-sharp project: 
http://cvs.sourceforge.net/viewcvs.py/php-sharp/phpLex/

> (motivation:  currently taking compilers class, just turned in 36,000 
> lines of Java5 and 3,000 lines of testcases)

sick. :-)

-ryan


--
http://theryanking.com/



More information about the wp-hackers mailing list