Re: [PHP-DEV] #line C macro equivalent in php ?

2006-05-11 Thread Xuefer
i'll second that idea, but not the syntax. template engine such smarty, and compiler compiler, need it really.

Re: [PHP-DEV] #line C macro equivalent in php ?

2006-05-11 Thread Marcus Boerger
Hello William, as long as php has no goto no such generator is capable of generating php code. When that changes we want to have something alike of course. But actuall it is already in HEAD ... So thenWhy not cimply go with this: #line file line to simple becuase the tools in question would

RE: [PHP-DEV] #line C macro equivalent in php ?

2006-05-11 Thread Jared Williams
Hello William, as long as php has no goto no such generator is capable of generating php code. When that changes we want to have something alike of course. But actuall it is already in HEAD ... So thenWhy not cimply go with this: #line file line to simple becuase the tools in

Re: [PHP-DEV] #line C macro equivalent in php ?

2006-05-11 Thread Sara Golemon
I'd like to know, if it's possible to create a php function in C which modify the line number and the php interpreter. It will be very useful for tools generating php code (lex, yacc, smarty etc). For exemple: echo __FILE__//show parser.php __setLine(8);__setFile('parser.y'); toto(); Will