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