Re:Let’s Build a Compiler (1995)
by panzi on Wednesday October 30, 2013 @08:34PM
(#6644555)
> a working Python -> C translator
Including generator functions? That would be impressive. Well, one could solve it by putting all locals into an heap allocated object and use the "switch over the whole function body"-trick to continue execution at the correct position.
Including generator functions? That would be impressive. Well, one could solve it by putting all locals into an heap allocated object and use the "switch over the whole function body"-trick to continue execution at the correct position.