Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82283 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52254 invoked from network); 9 Feb 2015 13:55:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2015 13:55:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.51 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.51 mail-qg0-f51.google.com Received: from [209.85.192.51] ([209.85.192.51:52749] helo=mail-qg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/14-50460-A5CB8D45 for ; Mon, 09 Feb 2015 08:55:39 -0500 Received: by mail-qg0-f51.google.com with SMTP id z60so17520382qgd.10 for ; Mon, 09 Feb 2015 05:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EkD52Bm1wP/WssQvNFtFrq6yfqfWVlAYTwWzHkvVsk8=; b=iX6FAUpLDRXeEFubxTIEft8AHC56jfUlnY4IrAyy9kcVOKy2n9mZgTsDnIgsMAsVn3 1eGBAAnsxnwX6gOgFdBtFZzWo9/W4+dwU7UtzYiJYIoNqcUSpAxu30dl/VsmSV1sLzJf 7s6ISNN0f42XQBqnKr1kwuk1JgnlUg4oqHNBtcoSQ7uvD2iK+ahMkoTOVV90dhOsU2Kp 6aWCdT0YHLHnQH+UFqBzjEATq6duk1V08ONGxMDWGjfm8eU3s1ZksKhR+R8y6V9/5cYG 4eo4K7T++aLu7bRtS/w9GM0gsbcmp9El4z9YBjVN1DM4WdLoQGpFJiFE4Gf4+hlupZpQ CpGA== MIME-Version: 1.0 X-Received: by 10.140.102.165 with SMTP id w34mr40739672qge.26.1423490136431; Mon, 09 Feb 2015 05:55:36 -0800 (PST) Received: by 10.96.185.37 with HTTP; Mon, 9 Feb 2015 05:55:36 -0800 (PST) Received: by 10.96.185.37 with HTTP; Mon, 9 Feb 2015 05:55:36 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Feb 2015 20:55:36 +0700 Message-ID: To: Jakub Zelenka Cc: Anatol Belski , PHP internals , Xinchen Hui Content-Type: multipart/alternative; boundary=001a11c16890ec61b4050ea81fad Subject: Re: [PHP-DEV] new json, push generated file? From: pierre.php@gmail.com (Pierre Joye) --001a11c16890ec61b4050ea81fad Content-Type: text/plain; charset=UTF-8 On Feb 9, 2015 4:46 PM, "Jakub Zelenka" wrote: > > On Mon, Feb 9, 2015 at 9:18 AM, Anatol Belski wrote: >> >> Hi, >> >> On Mon, February 9, 2015 07:33, Xinchen Hui wrote: >> > Hey: >> > >> > >> > >> > >> > On Mon, Feb 9, 2015 at 1:44 PM, Pierre Joye wrote: >> > >> >> On Mon, Feb 9, 2015 at 11:10 AM, Xinchen Hui wrote: >> >> >> >>> Hey: >> >>> >> >>> >> >>> On Mon, Feb 9, 2015 at 10:40 AM, Pierre Joye >> >>> wrote: >> >>> >> >>>> hi, >> >>>> >> >>>> Should we push json_parser.tab.c? Which is generated (re2c), just >> >>>> like what is done in date or other? >> >>>> >> >>> I think we should, and also use a better name...(.tab.c?) >> >>> >> >> >> >> that too :) >> > simply, json_parser.c is good >> > >> > something like: https://gist.github.com/laruence/f33903266cec737088aa >> > >> I'd be for applying this as well. Also, just added the generation calls to >> config.w32, but actulaly a checked in file were much simpler to handle. >> >> Regards >> >> Anatol > > > Hi, > > The re2c generated files are pushed (see https://github.com/php/php-src/blob/master/ext/json/json_scanner.c ). The json_parser.tab.c is a BISON generated file. I haven't pushed that file because we don't have bison generated files in repo (e.g. zend_language_parser.c). I'm actually for pushing that file as well but then we should probably push zend_language_parser.c too. Thoughts? > > The name .tab.c is a standard name for bison files ( see last paragraph http://www.gnu.org/software/bison/manual/html_node/Rpcalc-Generate.html#Rpcalc-Generate ). I think that it can be changed but not sure if it makes much sense. The .tab.c says that it's a C file with parsing tables... I still think it is better to have this file applied. It is not like they will change every 2nd day. > Cheers > > Jakub > --001a11c16890ec61b4050ea81fad--