Mathos-Parser icon indicating copy to clipboard operation
Mathos-Parser copied to clipboard

Use Shunting-Yard

Open napen123 opened this issue 5 years ago • 0 comments

I believe rewriting the parser to use the shunting-yard algorithm is something we should look into.

The current way we parse input can do so reasonably well, but it's lacking in several areas (see #21, #17, #2, and possibly #4). Because of this, I think beefing up the parser and using something like shunting-yard would make things easier to follow and would provide us with many improvements pretty much immediately (e.g. unary operators).

I'd imagine this would warrant a major release and may result in a slight performance hit, but I think it's worth it.

napen123 avatar Jun 02 '19 23:06 napen123