def operatorOperands(tokenlist):
it = iter(tokenlist)<EOL>while <NUM_LIT:1>:<EOL><INDENT>try:<EOL><INDENT>yield (next(it), next(it))<EOL><DEDENT>except StopIteration:<EOL><INDENT>break<EOL><DEDENT><DEDENT>
generator to extract operators and operands in pairs