Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'expressions': 0.07; 'python': 0.09; 'sep': 0.09; 'looked': 0.10; 'interesting:': 0.16; 'wrote:': 0.17; 'skip:g 40': 0.17; 'thu,': 0.17; 'tries': 0.17; 'module': 0.19; 'header:In-Reply-To:1': 0.25; 'wondering': 0.26; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'regular': 0.27; 'noticed': 0.28; 'slot': 0.29; "i'm": 0.29; 'that.': 0.30; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'subject:?': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'url:org': 0.36; 'option': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'nothing': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'url:search': 0.83; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=tGQr8wmhwByZ0RcFcTLHeJYaPAXimF4twiGZQ6TlHOE=; b=qKakWspYgehiiW0I+FPk3HU6LVWiIDGcpgj5ZjkyAh1TUmB+7UIkKpgslA478P8R0l VfCsF4FVsDGlT9SYq/r0pAXcaZ4R/tUKElt9Lzhj9OtZZesQXogQZckPRybXgFJd9D95 RN10RDlsFV7momjrpMNU39FhVIX2NcGMR0Mu7vrnMAnqVm7UgJiQzY1Zb69edKrdwCD8 NzqD0GVJUCGwQ7mp2ptiH7y4FCxypWRS2+VgmdHAadw22LRogMafrkbEnYvzLdHOAlV/ qBmewPik6D8lcG7Dmad25hwV57UdTi3/X1QIy1XquR8v4/XyxpKz5McwsFNkaQRXx66E Qzuw== MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Thu, 13 Sep 2012 12:54:41 -0600 Subject: Re: equiv of perl regexp grammar? To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347562513 news.xs4all.nl 6925 [2001:888:2000:d::a6]:37347 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29068 On Thu, Sep 13, 2012 at 5:30 AM, Neal Becker wrote: > I noticed this and thought it looked interesting: > > http://search.cpan.org/~dconway/Regexp- > Grammars-1.021/lib/Regexp/Grammars.pm#DESCRIPTION > > I'm wondering if python has something equivalent? The pyparsing module is a good option for building grammar parsers. There's nothing that I know of that tries to slot them into regular expressions like that.