Pman.SearchTokenizer.js
[Pman.Core] / Pman.SearchTokenizer.js
index 1a3686d..49f7284 100644 (file)
@@ -117,23 +117,27 @@ Pman.SearchTokenizer.prototype =  {
             }
         }
         this.tokens.push( { type : 's' , v : s });
-    }
+    },
     
-    function getChar()
+    getChar : function ()
     {
+        
         if (this.i >= this.strlen) {
             return false;
         }
         c = this.str[this.i];
         this.i++;
         return c;
-    }
-    function ungetChar()
+    },
+    ungetChar : function ()
     {
         this.i--;
     }
-    
-    
-    
+     
+};
+
+Pman.SearchTokenizer.parse = function(v) {
+    var x = new Pman.SearchTokenizer();
+    return x.parse();
     
 }
\ No newline at end of file