diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-07-22 01:40:53 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-07-22 01:40:53 +0200 |
commit | efa862d4f89401c5148746a5aba4d88ed6b6cbaa (patch) | |
tree | 22afe953b54b4b0fc6f80f0aef80c4ae45b8f3be /src/spawn.cpp | |
parent | 91f29f5b146453e67e15f8e91571b0f806526d1f (diff) | |
download | sciteco-efa862d4f89401c5148746a5aba4d88ed6b6cbaa.tar.gz |
fixed operator precedence list
* necessary since in SciTECO every operator has a different
precedence. E.g. successive additions/subtractions cannot
be evaluated from left to right (by their associativity).
Perhaps this should be changed.
* subtraction must have a higher precedence than addition,
since (a+b)-c == a+(b-c)
* division must have a higher precedence than multiplication
since (a*b)/c == a*(b/c).
This is not quite true for integer arithmetics.
* this fixes expressions like 5-1+1 which were counterintuitively
evaluated like 5-(1+1)
Diffstat (limited to 'src/spawn.cpp')
0 files changed, 0 insertions, 0 deletions