import{Dimension as t}from"../../tokenizer/types.mjs";import"../../tokenizer/char-code-definitions.mjs";import"../../tokenizer/TokenStream.mjs";const n="Dimension",i={value:String,unit:String};function e(){const n=this.tokenStart,i=this.consumeNumber(t);return{type:"Dimension",loc:this.getLocation(n,this.tokenStart),value:i,unit:this.substring(n+i.length,this.tokenStart)}}function o(n){this.token(t,n.value+n.unit)}export{o as generate,n as name,e as parse,i as structure};