Uh oh!
There was an error while loading. Please reload this page.
GH-111485: Factor out tier 2 code generation from the rest of the interpreter code generator - #112968
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
gvanrossum
left a comment
There was a problem hiding this comment.
Just a few nits. Please also use black on all files you touched.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| out.emit(f"{type}{var.name};\n") | ||
| def emit_to(out: CWriter, tkn_iter: Iterator[Token], end: str) -> None: |
There was a problem hiding this comment.
Did you make any changes to the code that you moved to generators_common.py or stack.py? Or is it strictly a move?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| ) | ||
| def emit_to(out: CWriter, tkn_iter: Iterator[Token], end: str) -> None: |
There was a problem hiding this comment.
This could be a method on CWriter.
There was a problem hiding this comment.
I thought about that, but it tracks the parentheses in the tkn_iter input, which seems out of scope for a writer.
Uh oh!
There was an error while loading. Please reload this page.
…he interpreter code generator (pythonGH-112968)
…he interpreter code generator (pythonGH-112968)
Uh oh!
There was an error while loading. Please reload this page.