Open nus-pe-bot opened 3 years ago
The two different loops are intentional here. In the code there are actually 2 different loops, the first executes the parsing all at once, then the second executes the commands one by one. This is so we can catch any parse errors in the first loop, before running the second loop.
The paragraph right above describes these two seperate steps:
--
Note from the teaching team: This bug was reported during the Part II (Evaluating Documents) stage of the PE. You may reject this bug if it is not related to the quality of documentation.
I think the two loops should be combined? Since only after first loop the command object parsed is then used for second loop Also the condition being "for each macro line" may be could be rephrased
[original: nus-cs2103-AY2021S1/pe-interim#5940]