2 ms·
The basic idea is that a generator yields one potential parse of a section of input-string. The caller continues checking the rest of the string but if it fails
by galaxyLogic 7y ago
The basic idea is that a generator yields one potential parse of a section of input-string. The caller continues checking the rest of the string but if it fails to find all expected syntactic elements it will go back to the generator basically asking it: Your previous suggestion did not work out, can you give me another possibility?