Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: =?UTF-8?Q?Juancarlo_A=C3=B1ez?= Newsgroups: comp.lang.python.announce Subject: Grako 3.20.0 released Date: Fri, 7 Apr 2017 18:24:36 -0400 Lines: 59 Sender: juancarlo.anez@gmail.com Approved: python-announce-list@python.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de STad3V0nUNKalY0A1WCLwwG5HiypaYM0Pm718BdWxd7A== Return-Path: X-Original-To: python-announce-list@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'resulting': 0.04; 'expressions': 0.05; 'url:bitbucket': 0.05; 'deprecated': 0.07; 'rename': 0.07; 'setup.py': 0.07; 'subject:released': 0.07; 'substitute': 0.07; 'python': 0.09; 'backwards': 0.09; 'implements': 0.09; 'input,': 0.09; 'outputs': 0.09; 'parsed': 0.09; 'parsers': 0.09; 'refactored': 0.09; 'stored': 0.11; 'python.': 0.14; 'expressions.': 0.16; 'name=none,': 0.16; 'naming': 0.16; 'parser.': 0.16; 'sender:addr:gmail.com': 0.17; 'string': 0.17; 'argument': 0.18; 'library': 0.20; 'parse': 0.22; "python's": 0.23; 'module': 0.23; 'message-id:@mail.gmail.com': 0.24; '8bit%:5': 0.25; 'skip:g 30': 0.27; '**kwargs)': 0.29; 'objects': 0.29; '(which': 0.29; 'code': 0.30; 'url:python': 0.31; 'received:google.com': 0.32; '(for': 0.32; '8bit%:25': 0.33; 'compile': 0.33; '8bit%:12': 0.34; 'tool': 0.34; '8bit%:13': 0.34; 'changed': 0.35; '8bit%:9': 0.35; 'regular': 0.36; '8bit%:15': 0.36; 'url:org': 0.36; 'takes': 0.37; 'skip:p 20': 0.37; '(with': 0.38; 'skip:i 20': 0.39; 'proto:https': 0.39; '8bit%:14': 0.39; 'to:addr:python.org': 0.39; 'received:io': 0.39; 'received:psf.io': 0.39; 'skip:e 20': 0.39; 'received:ams1.psf.io': 0.40; 'received:mail1.ams1.psf.io': 0.40; '8bit%:20': 0.63; '8bit%:27': 0.72; 'to:addr:python-announce- list': 0.72; 'compiles': 0.84; 'variation': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=b+nzR6lQP8RFjCD8909gkRMkioUeGs/oEXlCOf0b/yA=; b=PEQyxGcEZVFOofkKUkUXjvS2m7M3BzXqi6VxRpc3gqm4fn9HB2jIc9SIp0uDbT25Or EGXzCaMQAKtGhlu3t+kL2L9YKAUPJOp/1uyt0p+/4KZc3CwMWJmV8gIHYoaDs3iJwc8v LpOEv4aXGhcVxXwrzT3qI94heN2MekEeuO/m5kwzxKVwy93GaiWyiykcBJzTFqA3UBds 7GLbi0kmYqE2H2gn2AJ/XnEgDqVVTKPUG/4AXvT6CJq5GCOVpYe7/CthLgWU9wTImHLz ImYYhF0nYox88e6/yS9V6+zU6B36yd04xA2kPfVWJ5TkdBfYW+PGfqSIekemnNgOX2KA iVXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=b+nzR6lQP8RFjCD8909gkRMkioUeGs/oEXlCOf0b/yA=; b=jF4JROHw7kR+YONpYaL9UoW7fmXwDik+t9Q/u5Yj4R30KwXYHntZZ4iwHNYwdSwru9 CbsCvIJcSaKyes14jqayBEQEVkkIMosdYpSQJ8Pew9m+9hO52xdhdkEarbg2Mt4ePeUM TSIa659X6e72pWU/Zd8My8/dS9/DBn7jFbxxA0H5U8xYLKZn6RY/mMNMp0g6xKBXDguq i5OlcrWv1e/X1+LI/ChHNIv63LYv+Wf/dwUPFIY8tlQ56c6FoDnKKkCcjInqH092i9O0 VHncGU/QWNDRXP2SW5D/cHRiOGHlGD/jP8rpblqPJw4yZGW/pHxhnZsN2lOJfaHbWWpz XWNA== X-Gm-Message-State: AFeK/H0q/2wileb768fr/OSDuXjZ2smeB+BSJsGR6qZlkRW2GZZ4dN4WgMMxo6O2Q4TKGZdyK1iwh/18P51MDg== X-Received: by 10.55.77.23 with SMTP id a23mr44092013qkb.208.1491603896569; Fri, 07 Apr 2017 15:24:56 -0700 (PDT) X-Google-Sender-Auth: 8or3tvroXCbPTs8XuxaXNq3s5wQ X-Mailman-Approved-At: Mon, 10 Apr 2017 11:03:33 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: python-announce-list@python.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com comp.lang.python.announce:2449 Added - Added grako.compile(grammar, name=3DNone, **kwargs) as a substitute for grako.genmodel (which remains for backwards compatibility). - Added a grako.parse(grammar, input, **kwargs) that will compile a grammar and uset to parse the given input. For efficiency, parsed gramma= rs are cached. - Added a grako.to_python_sourcecode(grammar, name=3DNone, filename=3DNone= , **kwargs) that compiles the grammar to the Python sourcecode that implements the parser. - Rename the existing *join* (.{}) expression to *gather*, and use *join* = for a new expression (%{}) that keeps the separator in the resulting AST. - Added left-join (<{}) and right-join (>{}) expressions to the grammar. Changed - Enable python setup.py test with pytest. - Remove the deprecated prefix=3D argument to ParseContext.closure(). - Document that *Grako* may be used as a library (with no code generation) by compiling grammars to Grammar objects that can be used to parse any given input, much like Python's re does with regular expressions. - Refactored grammar so double naming (name1:name2:exp) is disallowed. Grako 3.20.0 *Grako* (for *grammar compiler*) is a tool that takes grammars in a variation of EBNF as input, and outputs memoizing (Packrat) PEG parsers in Python. *Grako* can also compile a grammar stored in a string into a grako.grammars.Grammar object that can be used to parse any given input, much like the *re* module does with regular expressions. https://pypi.python.org/pypi/grako/3.20.0 https://bitbucket.org/neogeny/grako/ --=20 Juancarlo *A=C3=B1ez*