def tokens(string):
    "Build an expression tree by tokenizing expression."
    evaluator = _tokens(string)
    if isinstance(evaluator, Operation) and \
       evaluator._Operation__symbol == Operation.ASSIGNMENT:
        return evaluator
    return Print(evaluator)
Build an expression tree by tokenizing expression.
recipes/Python/577469_Evaluator_20/recipe-577469.py