"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./Utility.js");exports.line=1;exports.column=1;exports.length=0;exports.position=0;exports.character=0;exports.characters="";function s(e,r,l,h,f,m,p){return{value:e,root:r,parent:l,type:h,props:f,children:m,line:exports.line,column:exports.column,length:p,return:""}}function d(e,r){return a.assign(s("",null,null,"",null,null,0),e,{length:-e.length},r)}function g(){return exports.character}function k(){return exports.character=exports.position>0?a.charat(exports.characters,--exports.position):0,exports.column--,exports.character===10&&(exports.column=1,exports.line--),exports.character}function c(){return exports.character=exports.position<exports.length?a.charat(exports.characters,exports.position++):0,exports.column++,exports.character===10&&(exports.column=1,exports.line++),exports.character}function t(){return a.charat(exports.characters,exports.position)}function u(){return exports.position}function n(e,r){return a.substr(exports.characters,e,r)}function i(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b(e){return exports.line=exports.column=1,exports.length=a.strlen(exports.characters=e),exports.position=0,[]}function w(e){return exports.characters="",e}function v(e){return a.trim(n(exports.position-1,o(e===91?e+2:e===40?e+1:e)))}function j(e){for(;(exports.character=t())&&exports.character<33;)c();return i(e)>2||i(exports.character)>3?"":" "}function x(e,r){for(;--r&&c()&&!(exports.character<48||exports.character>102||exports.character>57&&exports.character<65||exports.character>70&&exports.character<97););return n(e,u()+(r<6&&t()==32&&c()==32))}function o(e){for(;c();)switch(exports.character){case e:return exports.position;case 34:case 39:e!==34&&e!==39&&o(exports.character);break;case 40:e===41&&o(e);break;case 92:c();break}return exports.position}function M(e,r){for(;c()&&e+exports.character!==47+10;)if(e+exports.character===42+42&&t()===47)break;return"/*"+n(r,exports.position-1)+"*"+a.from(e===47?e:c())}function S(e){for(;!i(t());)c();return n(e,exports.position)}exports.alloc=b;exports.caret=u;exports.char=g;exports.commenter=M;exports.copy=d;exports.dealloc=w;exports.delimit=v;exports.delimiter=o;exports.escaping=x;exports.identifier=S;exports.next=c;exports.node=s;exports.peek=t;exports.prev=k;exports.slice=n;exports.token=i;exports.whitespace=j;
//# sourceMappingURL=Tokenizer.js.map
