[system] Repository:
ViewVC logotype

Revision 3477

Jump to revision: Previous Next
Author: dpvc
Date: Thu Aug 11 20:57:18 2005 UTC (14 years, 3 months ago)
Log Message:
Added ability to subtract intervals, sets and unions.  Adjusted the
precedence of the union 'U' to be above _ and + so that things like
(1,5) U (7,10) - {8} U (2,3) will do ((1,5) U (7,10)) - ({8} U (2,3))
rather than the previous (1,5) U ((7,10) - {8}) U (2,3).  Finally,
added a constant 'R' to the Interval context that is equivalent to
(-inf,inf), so you can do things like R-{0} now.

Still need to work out reducing unions so that things like (1,3)U(2,4)
can become (1,4).

Changed paths:

Path Details
Directorytrunk/pg/lib/Parser/BOP/subtract.pm modified , text changed
Directorytrunk/pg/lib/Parser/BOP/union.pm modified , text changed
Directorytrunk/pg/lib/Parser/Constant.pm modified , text changed
Directorytrunk/pg/lib/Parser/Context/Default.pm modified , text changed
Directorytrunk/pg/lib/Value/Interval.pm modified , text changed
Directorytrunk/pg/lib/Value/Set.pm modified , text changed
Directorytrunk/pg/lib/Value/Union.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9