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: Escape `value` to fit in the place of this variable into the grammar.
docstr_tok: ["Escape","`","value","`","to","fit","in","the","place","of","this","variable","into","the","grammar","."]
code: def escape(self, varname: str, value: str) -> str:
      """
      Escape `value` to fit in the place of this variable into the grammar.
      """
      f = self.escape_funcs.get(varname)
      return f(value) if f else value
  
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 2 for calling the _CompiledGrammar obj's underlying member method code with example usage: obj.escape(varname, value) and returns: unknown