Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90336 invoked from network); 1 Oct 2015 09:48:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Oct 2015 09:48:02 -0000 Authentication-Results: pb1.pair.com header.from=pajousek@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pajousek@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.175 as permitted sender) X-PHP-List-Original-Sender: pajousek@gmail.com X-Host-Fingerprint: 209.85.223.175 mail-io0-f175.google.com Received: from [209.85.223.175] ([209.85.223.175:33652] helo=mail-io0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/13-04700-1510D065 for ; Thu, 01 Oct 2015 05:48:02 -0400 Received: by iofh134 with SMTP id h134so79035819iof.0 for ; Thu, 01 Oct 2015 02:47:59 -0700 (PDT) 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 :content-type:content-transfer-encoding; bh=Oml0k8y+xixeEtp76+fbei++4ClP1NO/N+TBwsYAS28=; b=l7x77QFEahJWbeZPfKLZ61NwgAlNEFZVnQhx/2k1bO6IBg0kG45NwqmI+ot0e+CzoX HZ8sZl6JMRcQal7GAL9Qsj+a03+5zDh5udIP9UO21XOBo6MomSm3srHy4RaTIUPlnZ1Y CL8bu340sGbatCvr4UcxEi+JwHxNosFooqAMYBYM5fyh/0t21CWoX0DTa3sckS4uNiYA U2solLXgEMZh/O9MwBl/+U28E020P70TA9YrIGODWOx1lsXIETdknO8g+EsebF+TxuzE 3p8pp9TmzBBR67IgtIbNbyQg4OuNCRVVEiuUFAajNpCWvxz8PIcReX9lbbo2Qn4Ju6ZF v9Rw== MIME-Version: 1.0 X-Received: by 10.107.14.4 with SMTP id 4mr11012740ioo.169.1443692879047; Thu, 01 Oct 2015 02:47:59 -0700 (PDT) Received: by 10.107.189.132 with HTTP; Thu, 1 Oct 2015 02:47:58 -0700 (PDT) In-Reply-To: References: <560CDFEF.2010008@telia.com> Date: Thu, 1 Oct 2015 11:47:58 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Fwd: [PHP-DEV] Arrow function expressions in PHP From: pajousek@gmail.com (=?UTF-8?Q?Pavel_Kou=C5=99il?=) > > How does hack solve this? Do they have backtracking in their parser? > > It was discussed earlier & Bob answered it, a T_LAMDA_OP is inserted > by a token token-pre-parser before hitting the real parser, see: > > Subject: Re: [PHP-DEV] [RFC] [Discussion] Short Closures > Date: Sun, 6 Sep 2015 17:59:57 -0700 > From: Sara Golemon > To: Bob Weinand > Copy: Bj=C3=B6rn Larsson , PHP Internals > > > Regards //Bj=C3=B6rn Larsson > (Resending, because I accidentally forgot to "Reply All".) So, if I'm understanding this correctly - this approach wouldn't require backtracking, and would make the simplest syntax possible? Regards PK