def calc(n2, n1, operator):
if operator == '<STR_LIT:->': return n1 - n2<EOL>elif operator == '<STR_LIT:+>': return n1 + n2<EOL>elif operator == '<STR_LIT:*>': return n1 * n2<EOL>elif operator == '<STR_LIT:/>': return n1 / n2<EOL>elif operator == '<STR_LIT>': return n1 ** n2<EOL>return <NUM_LIT:0><EOL>
Calculate operation result

n2 Number: Number 2
n1 Number: Number 1
operator Char: Operation to calculate