def expressions(source):
    "Separate expressions and yield each individually."
    lines = source.replace('\r\n', '\n').replace('\r', '\n').split('\n')
    uncommented = map(lambda line: line.split('#', 1)[0], lines)
    for line in uncommented:
        if line and not line.isspace():
            for expression in line.split(';'):
                yield expression
Separate expressions and yield each individually.
recipes/Python/577469_Evaluator_20/recipe-577469.py