3 ms·
Take the current + next node i.e: parse_node + parse_peek When parse_node is an operator you know it is the "-2" in "-2^-2(2+2)" and when parse_peek is the op
by thysultan 6y ago
Take the current + next node
i.e: parse_node + parse_peek
When parse_node is an operator you know it is the "-2" in "-2^-2(2+2)" and when parse_peek is the operator it is "-(2+2)" in the same. An example of this:
- https://github.com/thysultan/Ally/blob/8ba0b4de7ab104ceae54d810fced69f43ca852cc/src/Parser.js#L140-L197 https://github.com/thysultan/Ally/blob/8ba0b4de7ab104ceae54d...
- musicale 6y ago1) This reference is cryptic 2) I was asking the original author for a simple extension to the presented appraoch