Dear Internals

So I'm making good progress and found out that making simple syntax
changes is quite easy. What I currently got working can be seen here:
http://code.google.com/p/php-alternative-syntax/source/browse/trunk/scripts/kitchensink.php.

However, making functionality changes still baffles me. I changed the
"return" keyword to "<-", and I would like to automatically add a
return on the last line of a function. So that the following PHP code:

<?php
function foo() {
  $x = 2;
  $x * 2;
}
?>

would return an int with a value of 4.

How should I attack this problem?

Thx a lot!
Rune Kaagaard
Denmark

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to