Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53826 invoked from network); 14 Oct 2009 11:57:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2009 11:57:58 -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.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:57832] helo=mail-fx0-f225.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/1B-27693-4CCB5DA4 for ; Wed, 14 Oct 2009 07:57:56 -0400 Received: by fxm25 with SMTP id 25so10948293fxm.24 for ; Wed, 14 Oct 2009 04:57:53 -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:cc:content-type :content-transfer-encoding; bh=DOQWt2F3lINmhMLCyrtjO7EuRaXhV1i7TmgmUqEbnLo=; b=eUle6xjLSAPiVzypdy3kjnM+ABn2irUbIc34KWdnpGHesYt6Kgucl2EYoPGVxqr70F j3+OpUDdmL+qHjDyv8lw5v2IrJjkOerc812LnDilz1LnYoQmf2XkGH93tzdt4TpGzRfy LQ8e9xLqHmypKr8suYUqtCGz5SICKaksUerJQ= 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 :cc:content-type:content-transfer-encoding; b=dharLec7xIvUq/mSZB+94n+stzJehfJ8i64YR6AgHj44zEGSRg6fsWIKnDTXv09Eo9 YExoKZuFWST88zEbLCtu/LissoyY2gO+nbrX+7d/rtg261I2vJmNuvwM6kAYe9kv3oXq ApPWhsiW/F17BCKYGx9QbjCUcjlIib2PQj8Yc= MIME-Version: 1.0 Received: by 10.204.148.88 with SMTP id o24mr5816158bkv.182.1255521471817; Wed, 14 Oct 2009 04:57:51 -0700 (PDT) In-Reply-To: References: <9db916bc0910101434x507e05b9r2651eaa67f833164@mail.gmail.com> <9db916bc0910140415h6bb58bd6v1ed35859d2d9a3b0@mail.gmail.com> Date: Wed, 14 Oct 2009 13:57:51 +0200 Message-ID: <9db916bc0910140457u678e2211v206902a1dfe2ed8e@mail.gmail.com> To: Etienne Kneuss Cc: internals@lists.php.net Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: Creating an experimental syntax From: rumi.kg@gmail.com (Rune Kaagaard) Dear Etienne Wauw did not know Backus=96Naur Form before. That looks like a great first step. Thx for showing me that! Cheers Rune Kaagaard Denmark On 10/14/09, Etienne Kneuss wrote: > Hello, > > On Wed, Oct 14, 2009 at 1:37 PM, Etienne Kneuss wrote: >> Hello, >> >> one problem that immediately pops out is that you have a parsing >> ambiguity between an argument list and a concatenation of strings as a >> single argument. >> >> You should start by producing a BFN version of your desired grammar. >> Such errors should then be more apparent. > > *BNF > > > Also, the scala parser is quite complicated and some of its features > end up being quite tricky grammar-wise, porting scala-like grammars to > PHP would most likely require you to do major rewrites of the grammar, > I'd rather advise you to start with very small grammar changes. > > Best, >> >> Best, >> >> On Wed, Oct 14, 2009 at 1:15 PM, Rune Kaagaard wrote= : >>> Dear internals >>> >>> I'm slowly getting to know more about bison and language parsing. A >>> new world for me. But progress is still slow. I have made an example >>> of the syntax I am looking to achieve at >>> http://code.google.com/p/php-alternative-syntax/ . If any of you c >>> gurus could help me with the best method to attack the problem I would >>> be very grateful! >>> >>> Cheers >>> Rune Kaagaard >>> Denmark >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> >> >> >> -- >> Etienne Kneuss >> http://www.colder.ch >> > > > > -- > Etienne Kneuss > http://www.colder.ch >