class_docstr: Compiles a grammar. This will take the parse tree of a regular expression
  and compile the grammar.
  
  :param root_node: :class~`.regex_parser.Node` instance.
  :param escape_funcs: `dict` mapping variable names to escape callables.
  :param unescape_funcs: `dict` mapping variable names to unescape callables.
class_docstr_tok: ["Compiles","a","grammar",".","This","will","take","the","parse","tree","of","a","regular","expression","and","compile","the","grammar",".",":","param","root_node",":",":","class~","`",".regex_parser.Node","`","instance",".",":","param","escape_funcs",":","`","dict","`","mapping","variable","names","to","escape","callables",".",":","param","unescape_funcs",":","`","dict","`","mapping","variable","names","to","unescape","callables","."]
docstr: Match the string with the grammar.
  Returns a :class:`Match` instance or `None` when the input doesn't match the grammar.
  
  :param string: The input string.
docstr_tok: ["Match","the","string","with","the","grammar",".","Returns","a",":","class",":","`","Match","`","instance","or","`","None","`","when","the","input","does","n't","match","the","grammar",".",":","param","string",":","The","input","string","."]
code: def match(self, string: str) -> Match | None:
      """
      Match the string with the grammar.
      Returns a :class:`Match` instance or `None` when the input doesn't match the grammar.
  
      :param string: The input string.
      """
      m = self._re.match(string)
  
      if m:
          return Match(
              string,
              [(self._re, m)],
              self._group_names_to_nodes,
              self.unescape_funcs,
          )
      return None
  
imports: from __future__ import annotations
  import re
  from typing import Callable, Dict, Iterable, Iterator, Pattern
  from typing import Match
  from .regex_parser import AnyNode, Lookahead, Node, NodeSequence, Regex, Repeat, Variable, parse_regex, tokenize_regex
label_desc: Use image node_id 6 for calling the _CompiledGrammar obj's underlying member method code with example usage: obj.match(string) and returns: None, Match