[issue40750] Support -d flag in the new parser

2020-05-25 Thread miss-islington


miss-islington  added the comment:


New changeset 31084be618b6b7602d58e4d21ceef2e65ed8ef1b by Miss Islington (bot) 
in branch '3.9':
bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not 
defined (GH-20393)
https://github.com/python/cpython/commit/31084be618b6b7602d58e4d21ceef2e65ed8ef1b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +19657
pull_request: https://github.com/python/cpython/pull/20394

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset deb4355a37e41edf1199920789fe9572c1fb43c2 by Pablo Galindo in 
branch 'master':
bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not 
defined (GH-20393)
https://github.com/python/cpython/commit/deb4355a37e41edf1199920789fe9572c1fb43c2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-25 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +19656
pull_request: https://github.com/python/cpython/pull/20393

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-25 Thread miss-islington


miss-islington  added the comment:


New changeset 82da2c3eb4d69b55d9e300ab5d9c1d22bd09b9cd by Miss Islington (bot) 
in branch '3.9':
bpo-40750: Support -d flag in the new parser (GH-20340)
https://github.com/python/cpython/commit/82da2c3eb4d69b55d9e300ab5d9c1d22bd09b9cd


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-25 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +19655
pull_request: https://github.com/python/cpython/pull/20392

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-25 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 800a35c623bbcdb5793c7d7a4974524286311479 by Pablo Galindo in 
branch 'master':
bpo-40750: Support -d flag in the new parser (GH-20340)
https://github.com/python/cpython/commit/800a35c623bbcdb5793c7d7a4974524286311479


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-25 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +gvanrossum, lys.nikolaou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

A piece of the output for the string "1 + 1" with PR 20340:

   > star_expressions[0-0]: star_expression ','
   ✗ star_expressions[0-0]: star_expression ',' failed!
   > star_expressions[0-0]: star_expression
   ✓ star_expressions[0-3]: star_expression
   > augassign[3-3]: '+='
   ✗ augassign[3-3]: '+=' failed!
   > augassign[3-3]: '-='
   ✗ augassign[3-3]: '-=' failed!
   > augassign[3-3]: '*='
   ✗ augassign[3-3]: '*=' failed!
   > augassign[3-3]: '@='
   ✗ augassign[3-3]: '@=' failed!
   > augassign[3-3]: '/='
   ✗ augassign[3-3]: '/=' failed!
   > augassign[3-3]: '%='
   ✗ augassign[3-3]: '%=' failed!
   > augassign[3-3]: '&='
   ✗ augassign[3-3]: '&=' failed!
   > augassign[3-3]: '|='
   ✗ augassign[3-3]: '|=' failed!
   > augassign[3-3]: '^='
   ✗ augassign[3-3]: '^=' failed!
   > augassign[3-3]: '<<='
   ✗ augassign[3-3]: '<<=' failed!
   > augassign[3-3]: '>>='
   ✗ augassign[3-3]: '>>=' failed!
   > augassign[3-3]: '**='
   ✗ augassign[3-3]: '**=' failed!
   > augassign[3-3]: '//='
   ✗ augassign[3-3]: '//=' failed!
  ✗ invalid_assignment[0-0]: star_expressions augassign (yield_expr | 
star_expressions) failed!
 ✗ assignment[0-0]: invalid_assignment failed!
✗ small_stmt[0-0]: assignment failed!
> small_stmt[0-0]: star_expressions
 > star_expressions[0-0]: star_expression ((',' star_expression))+ ','?
  > _loop1_71[3-3]: (',' star_expression)
   > _tmp_139[3-3]: ',' star_expression
   ✗ _tmp_139[3-3]: ',' star_expression failed!
  ✗ _loop1_71[3-3]: (',' star_expression) failed!
 ✗ star_expressions[0-0]: star_expression ((',' star_expression))+ ','? 
failed!
 > star_expressions[0-0]: star_expression ','
 ✗ star_expressions[0-0]: star_expression ',' failed!
 > star_expressions[0-0]: star_expression
 ✓ star_expressions[0-3]: star_expression
✓ small_stmt[0-3]: star_expressions
   ✓ simple_stmt[0-4]: small_stmt !';' NEWLINE
  ✓ statement_newline[0-4]: simple_stmt
 ✓ interactive[0-4]: statement_newline
2
 > interactive[0-0]: statement_newline

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
pull_requests: +19608
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/20340

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40750] Support -d flag in the new parser

2020-05-23 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

Python has a (mostly unknown) -d flag that can only be used in debug builds 
that emit some debug output for the old parser. The new parser does not support 
such flag. This is very useful when playing with the grammar as it helps 
enormously to inspect how the parser has behaved and what rules have 
accepted/rejected in its path.

--
components: Interpreter Core
messages: 369763
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Support -d flag in the new parser
type: behavior
versions: Python 3.10, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com