==================
Now handling precedence ( ie 4+5*2 works -> gave 14)
TREE
+
\
4
\
*
\
5
\
2
14
Newest issue- not handling:
CPAR closing Low Level
Added CLL (need to close low level ) state. Worked it out on paper. Check implementation?
==================
20 Min Coding Block #2
==================
Can handle both a + b * c AND ( a + b ) * c. Added CLL_STATE case in MUL token switch statement. Next, functions?
Pesky issues - case statements need {} if they have variable declarations, but don't forget "BREAK"!!!!
==================
20 Min Coding Block #2
==================
Can handle both a + b * c AND ( a + b ) * c. Added CLL_STATE case in MUL token switch statement. Next, functions?
Pesky issues - case statements need {} if they have variable declarations, but don't forget "BREAK"!!!!
No comments:
Post a Comment