def parse(expression):
result = []<EOL>current = "<STR_LIT>"<EOL>for i in expression:<EOL><INDENT>if i.isdigit() or i == '<STR_LIT:.>':<EOL><INDENT>current += i<EOL><DEDENT>else:<EOL><INDENT>if len(current) > <NUM_LIT:0>:<EOL><INDENT>result.append(current)<EOL>current = "<STR_LIT>"<EOL><DEDENT>if i in __operators__ or i in __parenthesis__:<EOL><INDENT>result.append(i)<EOL><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>" + i)<EOL><DEDENT><DEDENT><DEDENT>if len(current) > <NUM_LIT:0>:<EOL><INDENT>result.append(current)<EOL><DEDENT>return result<EOL>
Return array of parsed tokens in the expression

expression String: Math expression to parse in infix notation