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
[ ] change analyser.py to use iterators. For doing that, you will definitely perform a huge refactoring on the that file, and some slight changes on the syntax method.
ATTENTION:
I know that I should use iterator on syntax and semantic also. But let's do one step at the time. Focus only on changing the lexical analyzer.
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: