lib/tokenizer/processor.js
function tryInit() {
    if(!processors.length) {
        var processorsPath = path.resolve(__dirname, "processor");
        var files = fs.readdirSync(processorsPath);
        for (var i = 0; i < files.length; ++i) {
            var processor = require(path.resolve(processorsPath, files[i]));
            //processor.name = processor.name || files[i];
            if(processor.priority) processors.unshift(processor);
            else processors.push(processor);
            processorIndex[processor.name] = processor;
        }
    }
}
function tryInit() {
    if(!processors.length) {
        var processorsPath = path.resolve(__dirname, "processor");
        var files = fs.readdirSync(processorsPath);
        for (var i = 0; i < files.length; ++i) {
            var processor = require(path.resolve(processorsPath, files[i]));
            //processor.name = processor.name || files[i];
            if(processor.priority) processors.unshift(processor);
            else processors.push(processor);
            processorIndex[processor.name] = processor;
        }
    }
}
function tryInit ( ) { if ( ! processors . length ) { var processorsPath = path . resolve ( __dirname , "processor" ) ; var files = fs . readdirSync ( processorsPath ) ; for ( var i = 0 ; i < files . length ; ++ i ) { var processor = require ( path . resolve ( processorsPath , files [ i ] ) ) ; //processor.name = processor.name || files[i]; if ( processor . priority ) processors . unshift ( processor ) ; else processors . push ( processor ) ; processorIndex [ processor . name ] = processor ; } } }
/ private methods ///
/ private methods ///