gutomaia / pyNES

Python programming for Nintendo 8 bits
BSD 3-Clause "New" or "Revised" License
1.21k stars 109 forks source link

Change analyser.py to use iterators #11

Closed gutomaia closed 10 years ago

gutomaia commented 10 years ago

Actually pyNES deal with the process of compiling (lexical, syntax, semantic) in a serial form. I mean, I think, we will increase the performance and also the readable intention of the code if we use iterators.

That is an outstanding task, you will deal with the main spine of pyNES, however, there is nothing to be worried about that, the test coverage will guide you before any detour. Use them, "use the force Luke". Any doubt just ask.

If you are not sure how iterators work on python take a look on @ramalho presentation about it

https://speakerdeck.com/ramalho/iterators-and-generators-the-python-way http://pyvideo.org/video/1709/iteration-generators-the-python-way

Goal:

ATTENTION: