Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45810 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51675 invoked from network); 14 Oct 2009 11:41:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2009 11:41:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.155 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 72.14.220.155 fg-out-1718.google.com Received: from [72.14.220.155] ([72.14.220.155:50170] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/BA-27693-0F8B5DA4 for ; Wed, 14 Oct 2009 07:41:37 -0400 Received: by fg-out-1718.google.com with SMTP id d23so1386672fga.11 for ; Wed, 14 Oct 2009 04:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=EJRTfg/W8JjBTXItsm2gMvGkb02lz63Sl7Y+2SvZZ50=; b=rrlrVBces83exHq3SZDoVAEfcyYMrQ6HFxZor8sEiWfF9yxIEYZZLJwF5ycKCxoIAP X0HJ+U6SX4p8/usyr/pA5OP6F/5UqKqG5lu/rqRVFaEj9rLL8wno5rxy3Uaq5HapRVgX dghbmc4hr8Bg+XLd6wioSV/dqpt2MmDz0MpDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=RjhMQZizOIDzdIoC9JmZFt8y0LM8L71s1Uw+5Xh6B7up9ZA97KKW0+rZrdgybzUSIX juJerlR9YZ38Xei8VeJ/nUn9LmbIK9lTuHYxE7j2vh9K/PQvCJzEVvClVlL3WeDMfUTr ucQY+WDfKfOGM+ykRjcPEsVpTdATKjI51NocI= MIME-Version: 1.0 Sender: ekneuss@gmail.com Received: by 10.86.232.5 with SMTP id e5mr7510803fgh.27.1255520492073; Wed, 14 Oct 2009 04:41:32 -0700 (PDT) In-Reply-To: References: <9db916bc0910101434x507e05b9r2651eaa67f833164@mail.gmail.com> <9db916bc0910140415h6bb58bd6v1ed35859d2d9a3b0@mail.gmail.com> Date: Wed, 14 Oct 2009 13:41:32 +0200 X-Google-Sender-Auth: afb3f24f5a1c79e8 Message-ID: To: Rune Kaagaard Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Creating an experimental syntax From: colder@php.net (Etienne Kneuss) 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