import{Delim as t,LeftSquareBracket as e,RightSquareBracket as i}from"../../tokenizer/types.mjs";import"../../tokenizer/char-code-definitions.mjs";import"../../tokenizer/TokenStream.mjs";const o="Brackets",n={children:[[]]};function r(t,o){const n=this.tokenStart;let r=null;return this.eat(e),r=t.call(this,o),this.eof||this.eat(i),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function s(e){this.token(t,"["),this.children(e),this.token(t,"]")}export{s as generate,o as name,r as parse,n as structure};