Using the logical_line and checker_state, I should be able to unravel a lot of the previous complexity. So far the ugly code for detecting the import is pretty good but the return value in not exactly what I want it to be (seems to be working) and the way I'm using it is interfering with how the second one is functioning. I need to decide on a structure for the return value and checker state.
Using the
logical_line
andchecker_state
, I should be able to unravel a lot of the previous complexity. So far the ugly code for detecting the import is pretty good but the return value in not exactly what I want it to be (seems to be working) and the way I'm using it is interfering with how the second one is functioning. I need to decide on a structure for the return value and checker state.