import{String as t}from"../../tokenizer/types.mjs";import"../../tokenizer/char-code-definitions.mjs";import"../../tokenizer/TokenStream.mjs";import{encode as i,decode as n}from"../../utils/string.mjs";const o="String",e={value:String};function r(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:n(this.consume(t))}}function s(n){this.token(t,i(n.value))}export{s as generate,o as name,r as parse,e as structure};