Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51215 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83217 invoked from network); 4 Jan 2011 08:56:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2011 08:56:46 -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.210.170 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.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:45676] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/13-56366-DC0E22D4 for ; Tue, 04 Jan 2011 03:56:45 -0500 Received: by iym14 with SMTP id 14so14087540iym.29 for ; Tue, 04 Jan 2011 00:56:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=/oOnriG70ert2EtSPNfAlPou81BrbbtGpIgpOwhdTQo=; b=ixa5sHvRyGa4dKkKFbCf1fSIsH/lGEhOQxcLAnr1TssN+yeWDVXDDhIbFMPHeuMU+c 5BAW3/GCLeMEufFtY7D/3NZpOP/L1PwcKdsYge9VBkH9V2tTAl20jK3HoWk6DS4mymcQ tDvsFDZGV73SU9oNkLzCaUuuUoKlYul2Z5J74= 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; b=Z0kWxRYXBkMd/PEPAa9kdc803YqohZA5deYpzj8TuDbp8ESL2Bs0sHZ5OPdUQNno/C dPR+b5QzufgAuWj1nNWd827cclaXMYXV2Jp0Sj9aylaEhRpYFSdFCI/Fhwf/v1zaOeMd S4ElnWzRd/rt/dH+qIr5/1/cZ8s27e61T11k0= MIME-Version: 1.0 Received: by 10.231.34.134 with SMTP id l6mr5612139ibd.22.1294131402743; Tue, 04 Jan 2011 00:56:42 -0800 (PST) Received: by 10.231.37.200 with HTTP; Tue, 4 Jan 2011 00:56:42 -0800 (PST) In-Reply-To: References: <20101231115408.GD18520@nibiru.local> <542423FA-1522-4AEC-8CC3-4AFF2DC4B453@darkrainfall.org> Date: Tue, 4 Jan 2011 09:56:42 +0100 Message-ID: To: Jon Davey Cc: internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: EBNF From: rumi.kg@gmail.com (Rune Kaagaard) > Having an EBNF would be useful in cases where we want to write > something like Ruby's CoffeeScript. After looking at PHP's grammar > file, it's about 1,000 lines long. Since this is used to generate the > parser, isn't it possible to strip out the C macros to create an EBNF > that catches all edge cases? Not being sure at all, but I reckon a lot of those edge cases are handled in the c macros and not in the plain "yacc"-style grammar definition.