Return-Path: X-Original-To: apmail-groovy-dev-archive@minotaur.apache.org Delivered-To: apmail-groovy-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3913E18126 for ; Wed, 24 Feb 2016 11:35:39 +0000 (UTC) Received: (qmail 87581 invoked by uid 500); 24 Feb 2016 11:35:39 -0000 Delivered-To: apmail-groovy-dev-archive@groovy.apache.org Received: (qmail 87554 invoked by uid 500); 24 Feb 2016 11:35:38 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 87544 invoked by uid 99); 24 Feb 2016 11:35:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2016 11:35:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 378B21804EF for ; Wed, 24 Feb 2016 11:35:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.701 X-Spam-Level: X-Spam-Status: No, score=-0.701 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=asert-com-au.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id sTt9wWvvePqa for ; Wed, 24 Feb 2016 11:35:36 +0000 (UTC) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E85065F119 for ; Wed, 24 Feb 2016 11:35:35 +0000 (UTC) Received: by mail-io0-f181.google.com with SMTP id 9so33151215iom.1 for ; Wed, 24 Feb 2016 03:35:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asert-com-au.20150623.gappssmtp.com; s=20150623; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=71JW6oBSYxolVS+DWV0Zuo0glwstSPBxUU8PzjK1trc=; b=yOnoWiSj3djYbRFnxOodkav/4iXraFnBBBUEIurUaksnSD4XJc07IpqLFphFd6HHhW qOIyiqUx2/8JaQD844zWE/r3CqaMh3IJX2iVGu1qhohJcEU4BcxK/LJwcZC0c9fZQ3Yj cmqyw46lt8vMn8Y0d49/5cb6EWWt2ybnj8Pu/JqADHFDgiru/pbgfazCQAUGUmb9QTea 2p25Ia3CTVkD7gqQ2siGg/KLNhRIM0Ab/NAONxXXOf2nskmS1mnc7gV1C0Aa5n8AAIe/ IMtSCjbHhFtTy9dJQTlxCLlzsQYn36fMymLrEqReEdgev3/uHtQSf/q2aJfqhvNr+1wg 15Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=71JW6oBSYxolVS+DWV0Zuo0glwstSPBxUU8PzjK1trc=; b=X5STmtIrDghPdMFcIxAW45ao0WOZtTPdYrP+g8TMZcsLU2div6ceeLjAyegDlqryoX 8eVyhR2p+g11Ucy2TBp5G3q3/fI52xVqyfJ/z+6VhS2YyyDQjDScgsVm85x9aLOFROCV YWDmrPxcr95s3PmNmzuCDj8LVL8O7mxQabqlPWjjwcGkADzV5QMLGKw6OEPgDjJ9+iI2 fQe7obOQu9Zl9s6wKnCBqM+tGGwWtTV7LfpgZYmMbWtODjeH6DaPst1cl1US1wj63uJT 4SGKFvtH6Sl3w4YfYTm+1JQYZXCXemM4tPK36/Qbs1/DhQA5lvxjRQw11lsiNd7ogiXo SSwg== X-Gm-Message-State: AG10YOT9Axo60b3jeqtdHiRIflCSAps8HDOVVP2HbRbzkG6KaRbQUAW/B1UajYtTr8GTtxoxWKOAaXVKlGqVCw== MIME-Version: 1.0 X-Received: by 10.50.12.99 with SMTP id x3mr3858245igb.74.1456313734472; Wed, 24 Feb 2016 03:35:34 -0800 (PST) Received: by 10.107.174.168 with HTTP; Wed, 24 Feb 2016 03:35:34 -0800 (PST) Reply-To: paulk@asert.com.au In-Reply-To: References: <29FC6596-94BC-4BE2-A9A9-2FA48680CC08@selskabet.org> Date: Wed, 24 Feb 2016 21:35:34 +1000 Message-ID: Subject: Re: Antlr4-based Groovy parser status update From: Paul King To: dev@groovy.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Spock for testing is by no means a show stopper! On Wed, Feb 24, 2016 at 6:46 PM, Jesper Steen M=C3=B8ller wrote: > > On 24. feb. 2016, at 01.21, Guillaume Laforge wrote: > > Sounds cool, Jesper, great to hear about your progress on the Antlr4 > grammar! > Is there a way we can help you? How can we test drive this? Is the build > working? > > > The build works in that the antlr4 branch can be build and tested with e.= g. > =E2=80=9Cgradle -PuseAntlr4=3Dtrue test=E2=80=9D. > > However, I can=E2=80=99t seem to actually build a real distribution and u= se the new > parser in that (there=E2=80=99s a dynamic switch), without getting some v= ery strange > errors. > I=E2=80=99ve put off chasing that problem until I know I have the missing= pieces of > the grammar and the AST building done right. > > The current tests use Spock. Is that out of the question for the main Gro= ovy > build? I loooove Spock, but I realise we have to keep the number of > dependencies down. > > -Jesper > > > On Wed, Feb 24, 2016 at 1:14 AM, Jesper Steen M=C3=B8ller > wrote: >> >> Hi Groovy-dev >> >> I=E2=80=99ve found some time to work on the Antlr4 parser and fixed some= minor >> tasks there: >> >> * Fix grammar for several statement sequences, where NL or semicolon was >> not required (added negative test cases) >> * Remove non-reentrant static state in ASTBuilder >> * Added syntax error handling to Antlr 4 parser >> * Make sure GrammarPredicates work with arbitrarily nested package >> hierarchies >> >> I=E2=80=99m pushing my changes here: >> https://github.com/jespersm/groovy/commits/antlr4 >> >> Next up is support for non-ID method invocation and command expressions, >> and then unary expressions. >> Also, since the GSoC is a bit dated, traits are also missing. >> >> -Jesper > > > > > -- > Guillaume Laforge > Apache Groovy committer & PMC Vice-President > Product Ninja & Advocate at Restlet > > Blog: http://glaforge.appspot.com/ > Social: @glaforge / Google+ > >