Re: [PHP-DEV] Hacking language syntax

2010-03-06 Thread Rune Kaagaard
The files you want to change in PHP core are the lexer (http://code.google.com/p/php-alternative-syntax/source/browse/trunk/php-5.3.0/Zend/zend_language_scanner.l) and the scanner (http://code.google.com/p/php-alternative-syntax/source/browse/trunk/php-5.3.0/Zend/zend_language_parser.y) and then re

Re: [PHP-DEV] Hacking language syntax

2010-03-04 Thread Derick Rethans
On Fri, 5 Mar 2010, Vsevolod Velichko wrote: > I wish to add some syntax to PHP (at first, I want to modify `while` > loop, to implement Dijkstra loop) and I've found some old thread about > modifying core, but I have no idea, how to do it by extension. I > suppose that it possible, since Faceb

[PHP-DEV] Hacking language syntax

2010-03-04 Thread Vsevolod Velichko
Hello, Internals! I wish to add some syntax to PHP (at first, I want to modify `while` loop, to implement Dijkstra loop) and I've found some old thread about modifying core, but I have no idea, how to do it by extension. I suppose that it possible, since Facebook, as I know, introduced some constr