Skip to content

Rewrite run_parser* functions to always return a mod_ty#17

Merged
lysnikolaou merged 6 commits intopegenfrom
rewrite-run-parser
Mar 24, 2020
Merged

Rewrite run_parser* functions to always return a mod_ty#17
lysnikolaou merged 6 commits intopegenfrom
rewrite-run-parser

Conversation

@lysnikolaou
Copy link
Copy Markdown
Member

@lysnikolaou lysnikolaou commented Mar 23, 2020

Closes #15.

    * The caller is responsible for transforming the mod_ty to
      a code object or an AST object
Copy link
Copy Markdown

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think we should switch EXTENSION_SUFFIX to be much smaller and move most of that code to a separate file.

Comment thread Python/pythonrun.c Outdated
Comment thread Parser/pegen/peg_api.c Outdated
Comment thread Parser/pegen/peg_api.c Outdated
Comment thread Parser/pegen/peg_api.c Outdated
Comment thread Parser/pegen/pegen.c
@lysnikolaou
Copy link
Copy Markdown
Member Author

lysnikolaou commented Mar 23, 2020

I still think we should switch EXTENSION_SUFFIX to be much smaller and move most of that code to a separate file.

I have this almost ready and was thinking of opening a new PR for it. What do you think?

Okay, a separate PR is fine!

Copy link
Copy Markdown

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better, but I'd still like to see if we can easily drop the filename_ob parameters.

@lysnikolaou
Copy link
Copy Markdown
Member Author

Better, but I'd still like to see if we can easily drop the filename_ob parameters.

Just pushed a fix for this.

Copy link
Copy Markdown

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bang!

@lysnikolaou
Copy link
Copy Markdown
Member Author

Bang!

Yes!

@lysnikolaou lysnikolaou merged commit 14ae717 into pegen Mar 24, 2020
@lysnikolaou lysnikolaou deleted the rewrite-run-parser branch March 24, 2020 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rewrite of run_parser* functions

3 participants