       name: null
       conditions: [{
         name:'$or'
-        config:[{
-          name: null
-          conditions: []
-          leafs: [{
-            name:'a'
-            conditions:[]
-            leafs: [{
-              name: 'b'
-              conditions:[{ name:'$lt', config:{value:4} }]
-              leafs: []
-            }]
-          },{
-            name:'c'
-            conditions:[{name:'$gt',config:{value:1}}]
-            leafs:[]
-          }]
-        }]
+        config:[{a:{b:{$lt:4}}, c:{$gt:1}}]
       }]
       leafs: []
     actual = compile(spec)

          name: 'b'
          conditions: [{
            name:'$or'
            config: [
              {name:null,conditions:[{name: '$eq', config:{value:2}}],leafs:[]}
              {name:null,conditions:[{name:'$eq', config:{value:5}}],leafs:[]}
            ]
          }]
          leafs: []
        },{




describe 'compile()', ->
  spec0 = { a: { b: $eq: 2 } }
  spec1 = { a: { b: $eq: 2 }, c: { $lt: 4 } }
  spec2 = { a: { b: { $gt:50, $lt:60 } } }
