import{strlen as r,charat as n,trim as e,substr as t,from as c}from"./Utility.js";var u=1,a=1,o=0,s=0,i=0,f="";function p(r,n,e,t,c,o,s){return{value:r,root:n,parent:e,type:t,props:c,children:o,line:u,column:a,length:s,return:""}}function l(r,n,e){return p(r,n.root,n.parent,e,n.props,n.children,0)}function h(){return i}function m(){return i=s>0?n(f,--s):0,a--,10===i&&(a=1,u--),i}function d(){return i=s<o?n(f,s++):0,a++,10===i&&(a=1,u++),i}function v(){return n(f,s)}function w(){return s}function y(r,n){return t(f,r,n)}function b(r){switch(r){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 g(n){return u=a=1,o=r(f=n),s=0,[]}function j(r){return f="",r}function k(r){return e(y(s-1,q(91===r?r+2:40===r?r+1:r)))}function x(r){for(;(i=v())&&i<33;)d();return b(r)>2||b(i)>3?"":" "}function U(r,n){for(;--n&&d()&&!(i<48||i>102||i>57&&i<65||i>70&&i<97););return y(r,w()+(n<6&&32==v()&&32==d()))}function q(r){for(;d();)switch(i){case r:return s;case 34:case 39:return q(34===r||39===r?r:i);case 40:41===r&&q(r);break;case 92:d()}return s}function z(r,n){for(;d()&&r+i!==57&&(r+i!==84||47!==v()););return"/*"+y(n,s-1)+"*"+c(47===r?r:d())}function A(r){for(;!b(v());)d();return y(r,s)}export{g as alloc,w as caret,h as char,i as character,f as characters,a as column,z as commenter,l as copy,j as dealloc,k as delimit,q as delimiter,U as escaping,A as identifier,o as length,u as line,d as next,p as node,v as peek,s as position,m as prev,y as slice,b as token,x as whitespace};
//# sourceMappingURL=Tokenizer.js.map
