[Kst] Equation parser decisions to make

George Staikos staikos at kde.org
Mon Nov 22 20:39:47 CET 2004


1)
Test of ()[1.0000000000000000] == 0.0000000000000000 failed.

  Do we allow empty equations?  If so what do they evaluate to? 0?  NOPOINT?

2)
Result: 0.7540103247897930
Test of (asin(sin(x)))[2.3875823288000002] == 2.3875823288000002 failed.

   Still haven't figured out what's up with this one.

3)
Result: 0.0000000000000000
Test of (!x)[nan] == 1.0000000000000000 failed.

   What should the result of !NOPOINT be?  I think it should be true, but 
right now it's false.

4)
Result: -1.0000000000000000
Test of (-1|257)[0.0000000000000000] == 257.0000000000000000 failed.
Result: -1.0000000000000000
Test of (257|-1)[0.0000000000000000] == 257.0000000000000000 failed.

   What do we want the result of bitwise ops with negative numbers to be?

5)
Test of (foo(3,)) parsing passed, but should have failed.
Test of (foo(3,,5)) parsing passed, but should have failed.

   Should we allow empty arguments to functions and plugins?  If so, what do 
we put there?

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/



More information about the Kst mailing list