[New-bugs-announce] [issue26526] In parsemodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

A. Skrobov report at bugs.python.org
Thu Mar 10 04:02:31 EST 2016


New submission from A. Skrobov:

Updating Modules/parsermodule.c for every change in grammar and/or parser is a maintenance burden, listed as such at https://docs.python.org/devguide/grammar.html

The attached patch lets the validation code use the auto-generated DFA structures, thus ensuring it stays up to date with the grammar. It also trims the code by over 2KLOC.

----------
components: Extension Modules
files: patch
messages: 261486
nosy: A. Skrobov, fdrake
priority: normal
severity: normal
status: open
title: In parsemodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file42110/patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26526>
_______________________________________


More information about the New-bugs-announce mailing list