logic.js | |
bbop. | BBOP object to try and take some of the pain out of managing the boolean logic that seems to show up periodically. |
Functions | |
logic | Contructor for the bbop.logic object. |
add | Add to the current stored logic bundle. |
negate | Negate the current stored logic. |
to_string | Dump the current data out to a string. |
url | TODO |
empty | Empty/reset self. |
parse | TODO: I think I can grab the shunting yard algorithm for a similar problem in the old AmiGO 1.x codebase. |
BBOP object to try and take some of the pain out of managing the boolean logic that seems to show up periodically. Right now mostly aimed at dealing with Solr/GOlr.
Anatomy of a core data bundle.
data_bundle => {op: arg} op => '__AND__', '__OR__', '__NOT__' arg => <string>, array, data_bundle array => [array_item*] array_item => <string>, data
{and: [{or: ...}, {or: ...}, {and: ...} ]} var filters = {'and': []};
TODO: parens between levels
Functions | |
logic | Contructor for the bbop.logic object. |
add | Add to the current stored logic bundle. |
negate | Negate the current stored logic. |
to_string | Dump the current data out to a string. |
url | TODO |
empty | Empty/reset self. |
parse | TODO: I think I can grab the shunting yard algorithm for a similar problem in the old AmiGO 1.x codebase. |
Contructor for the bbop.logic object.
bbop.logic = function( default_conjunction )
Negate the current stored logic.
this.negate = function()
Dump the current data out to a string.
this.to_string = function()
TODO
this.url = function()
TODO: I think I can grab the shunting yard algorithm for a similar problem in the old AmiGO 1.x codebase.
this.parse = function( in_str )