import{tokenize as e}from"../tokenizer/index.mjs";const t={decorator(e){const t=[];let n=null;return{...e,node(t){const o=n;n=t,e.node.call(this,t),n=o},emit(e,o,r){t.push({type:o,value:e,node:r?null:n})},result:()=>t}}};function n(n,o){return"string"==typeof n?function(t){const n=[];return e(t,(e,o,r)=>n.push({type:e,value:t.slice(o,r),node:null})),n}(n):o.generate(n,t)}export{n as default};