Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45721 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28950 invoked from network); 10 Oct 2009 21:34:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2009 21:34:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=rumi.kg@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rumi.kg@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.225 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.225 mail-fx0-f225.google.com Received: from [209.85.220.225] ([209.85.220.225:53033] helo=mail-fx0-f225.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/33-10808-8DDF0DA4 for ; Sat, 10 Oct 2009 17:34:17 -0400 Received: by fxm25 with SMTP id 25so7720916fxm.24 for ; Sat, 10 Oct 2009 14:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=TQ6/GnnGQVg20Gf3oe6pg8Eq7zUPue6SO+rEjlwVsOI=; b=coc/BGh5nb9JzMzsi+9QnaQfe8mgx4NkHwtSBIRV3UhuW3PgaTgVQHLf9ZC6DOiWN+ +gYHCRxDsZS7Frc9L53yEWjL1qkjeAgOggN+ktSX7fHrVlq/WrxtzVoHswevhQ+/pm6T 3zBDegv37KbWq+ltiXv8F4DX8bWNG4igjKunw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BGpygfCvb2Ga9B1TYIYWH41MSkpSv6fJTFvSU/jlrsFK8bdJ0mMdvvd0nxU2Hk4sRF R54xtkmDxdVx16m6QJsd0xf4M5FIWlgr7mlzxYKSKmfzaMWL5NmRfCXRBIz606x7c/jb c7/Y6/ryNuODIkzHdmGXj5d9PLRxVcurz940U= MIME-Version: 1.0 Received: by 10.204.8.13 with SMTP id f13mr3560323bkf.150.1255210453567; Sat, 10 Oct 2009 14:34:13 -0700 (PDT) Date: Sat, 10 Oct 2009 23:34:13 +0200 Message-ID: <9db916bc0910101434x507e05b9r2651eaa67f833164@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 At the moment I'm very inspired by functional programming languages such as SML and especially scala. I would like to create and alternative PHP syntax, just for fun nothing serious, inspired by these languages. I've managed to compile PHP with debug stuff turned on and found some files called zend_language_scanner.l, zend_language_parser.y and did succed with creating an alias for "function" called "def". I now wanted to change the function definition into something more scala looking: def max($x, $y) = { if ($x > $y) return $x else return $y } but got completely stuck. I realised all of a sudden that I really don't understand anything about what is going on in these files. Not even enough to ask good questions. What should I do/read/study/buy/etc... ???? Thx in advance from a very confused dude that is in way over his head Rune Kaagaard Denmark