This commit also allows to pass flags to the new parser in all interfaces and fixes a bug in the parser generator that was causing to inline rules with actions, making them disappear.
The changes in this commit are all related to @vstinner's original review comments of the initial PEP 617 implementation PR.