X-Git-Url: http://git.pjr.cc/?p=nodejsws.git;a=blobdiff_plain;f=tokeniser.js;fp=tokeniser.js;h=749b95fdc47d8c1fea5846c9df59b85f4cfe238f;hp=0000000000000000000000000000000000000000;hb=890af6013a76a72fe8849c99f69ed876e7239322;hpb=10c102d8aa00c65bdc23ac0b8c713bc23e8190f4 diff --git a/tokeniser.js b/tokeniser.js new file mode 100644 index 0000000..749b95f --- /dev/null +++ b/tokeniser.js @@ -0,0 +1,48 @@ +var mys = "1 this is for \n\n\n the second one its end here "; + + +//var tool = mys.split("")[0].trim(); + console.log("calling: '%s'", calling); +} +*/ + +function splitandcall(thisstring) { + var tool = thisstring.split(""); + dummy_call(calling[0].trim(), function() { + thisoffset++; + if(thisoffset < tool.length) { + console.log("output: '%s'", calling[1]); + calloffset(); + } else { + console.log("output: '%s'", calling[1]); + console.log("at end"); + return; + } + }); + } + + calloffset(); +} + +function dummy_call(name, callback) +{ + console.log("in '%s' for name", name); + callback(); +} + +console.log("mys: '%s'", mys); +splitandcall("start:" + mys + ":end");