Challenge (2) Simple Equation Parser 12-19-2015, 11:04 PM
#1
Welcome! and Merry Christmas! 
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Today you will be challenged to create a simple parser.
So, your parser should take in a "simple equation" (e.g. 3+3) and output a map (Python terminology) (e.g. (in Python syntax):
A "simple equation" -- an equation having only one operator and two operands. (e.g. 5*2 ... not 5*2+1) <- (JUST MY DEFINITION FOR THIS ARTICLE)
MORE ADVANCED VERSION:
Create the same parser... but, instead, it should be able to handle an arbitrary number of operators and operands. So, for example, if you input 5+3*8 into the parser, it should output something like:
Order of operations is not required.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
I will complete this challenge when I get some time!
... (away from the xBox)

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Today you will be challenged to create a simple parser.
So, your parser should take in a "simple equation" (e.g. 3+3) and output a map (Python terminology) (e.g. (in Python syntax):
Code:
{"+": ["3", "3"]}MORE ADVANCED VERSION:
Create the same parser... but, instead, it should be able to handle an arbitrary number of operators and operands. So, for example, if you input 5+3*8 into the parser, it should output something like:
Code:
{"+": {"5", "*": {"3", "8"}}}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
I will complete this challenge when I get some time!
... (away from the xBox)





![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)










