Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45836 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54545 invoked from network); 17 Oct 2009 14:22:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2009 14:22:44 -0000 Authentication-Results: pb1.pair.com header.from=rumi.kg@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rumi.kg@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.226 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rumi.kg@gmail.com X-Host-Fingerprint: 209.85.220.226 mail-fx0-f226.google.com Received: from [209.85.220.226] ([209.85.220.226:62397] helo=mail-fx0-f226.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/30-11886-333D9DA4 for ; Sat, 17 Oct 2009 10:22:44 -0400 Received: by fxm26 with SMTP id 26so6093522fxm.23 for ; Sat, 17 Oct 2009 07:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=/ZucrTfQD6S28qJSKMKcjO4knpPXUvOPh7T7nUfVG9k=; b=C4Vrw6+rM4lJM1z0AJbOGpzKs8oHb5SwCsqX1B/CsVNuzEiPYVSY5fZc7EVRT8DllU UH5NcgTMF08FvxNS4ffy/9jN8gxqokfIAcmDCpSu+qEZi7YxwVISC6InhXz1kp4P9aWT e4h9lIP+mtGcWLnFhVQ9kBMImldSbA7H/KGFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IaMGjr5TelXjA50wF6NBDVBwHw0UhTc3eBrLX0jZZ371KO388syQSaB0xrLFqPX+Sx 6EZcZWcFkwHECEsuXu7NXgEenT2O25sNbxzbqkqtVlXEa5+CItypxMGvXw63u/7n4/hb e1WlJsLQlkmWrlUns8qTE4RIz1aHyfLGqgA24= MIME-Version: 1.0 Received: by 10.204.34.72 with SMTP id k8mr2577282bkd.98.1255789360349; Sat, 17 Oct 2009 07:22:40 -0700 (PDT) In-Reply-To: References: <9db916bc0910101434x507e05b9r2651eaa67f833164@mail.gmail.com> <9db916bc0910140415h6bb58bd6v1ed35859d2d9a3b0@mail.gmail.com> Date: Sat, 17 Oct 2009 16:22:39 +0200 Message-ID: <9db916bc0910170722n97543eflc8951ed7cd8b1db7@mail.gmail.com> To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Creating an experimental syntax From: rumi.kg@gmail.com (Rune Kaagaard) 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: would return an int with a value of 4. How should I attack this problem? Thx a lot! Rune Kaagaard Denmark