| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…verwrite tokenizer errors Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
|
Maybe scope creep, but is there an opportunity for an improvement here? _PyPegen_raise_error always returns NULL - maybe it should be void. |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @sunmy2019 for commit cef5ae9 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good
Sorry, something went wrong.
We need a placeholder here. If you track the caller, it's like void *a;
if (all_good)
a = ...;
else
a = _PyPegen_raise_error(...); |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
Sorry, something went wrong.
Most of the time we assign the return value of _PyPegen_raise_error to the variable returned by the rule. This is a "hack" to set a specific error from a grammar action, but still signify to the parser that the rule has failed and it should backtrack all the way. |
Sorry, something went wrong.
|
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
…verwrite tokenizer errors (pythonGH-112410) (cherry picked from commit 2c8b191) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
|
GH-112466 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
…verwrite tokenizer errors (pythonGH-112410) (cherry picked from commit 2c8b191) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
|
GH-112467 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
…verwrite tokenizer errors (python#112410) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
…verwrite tokenizer errors (python#112410) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.