Open marknuzz opened 8 years ago
Just noticed issues with this, based on the unit testing. Will have a fix.
Looks like the quick and dirty parser is not able to handle both Math functions and attached properties, due to the parenthesis needing to be handled differently. Context-dependent parsing would need to be employed, which make it more difficult. Still going to work on it.
The tests now pass, and the parser is more sophisticated now. Should pave the way for more complex calculations if those features should be needed at a later time
Might need to be cleaned up a bit, I didn't have time to really polish it, but added comments where I could
Thanks, good job! I review this soon, sorry, haven't enough time now
Any news?
There is some refactoring in here as well, to encapsulate some of the complexity.